CVE-2021-46871Phoenixframework Phoenix Html
Medium 6.1 No auth needed
Follow: this CVE · Phoenixframework · Phoenixframework Phoenix Html We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 31
- Auth required
- No
- Published
- Jan 10, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.
What to do
- Apply the vendor's security update for Phoenix Html.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Hex | phoenix_html |
< 3.0.4 |
3.0.4 |
— |
| Hex | phoenix_html |
< 3.0.4 |
3.0.4 |
— |
| npm | phoenix_html |
< 3.0.4 |
3.0.4 |
npm install phoenix_html@3.0.4 |
Per OSV / GitHub Advisories (GHSA-5g2h-9x5v-5h3x, GHSA-j3gg-r6gp-95q2). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| phoenixframework | phoenix_html | < 3.0.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory