CVE-2021-46871
6.1medium
phoenix_html allows Cross-site Scripting in HEEx class attributes
- Severity
- 6.1medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.45% (higher than 31% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-5g2h-9x5v-5h3xGHSA-j3gg-r6gp-95q2
Description
tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| phoenix_html (npm) | before 3.0.4 | GitHub Advisory Database |
| phoenix_html (Hex) | before 3.0.4 | GitHub Advisory Database |
| phoenixframework phoenix_html | before 3.0.4 | NVD |
All scores
| CISA-ADP | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | medium rating | |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.
GitHub Advisory Database
tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes
GitHub Advisory Database
The class attribute was not protected against XSS attacks when using HEEx.
NVD (es)
tag.ex en Phoenix Phoenix.HTML (también conocido como phoenix_html) anterior a 3.0.4 permite XSS en atributos de clase HEEx.
References
| https://github.com/advisories/GHSA-j3gg-r6gp-95q2 | advisory, patch, third-party-advisory | |
| https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-46871 | advisory | |
| https://github.com/phoenixframework/phoenix_html | package, web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-46871 changed 2025-04-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5g2h-9x5v-5h3x changed 2026-09-10 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-j3gg-r6gp-95q2 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2021-46871 changed 2026-06-17 | Public domain |