XSS in HEEx class attributesGHSA-j3gg-r6gp-95q2
Fix: phoenixframework/phoenix_html@62a0139GHSA-j3gg-r6gp-95q2 is a Cross-site Scripting (XSS) vulnerability in phoenix_html. A fix is available for phoenix_html — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-j3gg-r6gp-95q2.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
phoenix_htmlReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Hex packages — download data is not available via public APIs for these ecosystems.
Description
tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 💧Hex | phoenix_html | all versions | 3.0.4mix deps.update phoenix_html |
Affected Products
phoenix htmlphoenixframeworkDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for phoenix_html, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update phoenix_html to 3.0.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-j3gg-r6gp-95q2 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is GHSA-j3gg-r6gp-95q2 in your dependencies?
Find it across Hex, including transitive dependencies.