{"id":"CVE-2021-46871","published":"2023-01-10T00:00:00Z","modified":"2025-04-09T17:21:41Z","title":"tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes","vendor":null,"product":null,"tier":"tail","description":{"text":"tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0045,"percentile":0.39992,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/advisories/GHSA-j3gg-r6gp-95q2","tags":[]},{"url":"https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620","tags":[]}],"priority":{"score":12.3,"factors":[{"name":"EPSS percentile","points":8.0},{"name":"CVSS severity","points":4.27}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-09T17:20:34.911859Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"phoenix_html","vulnerableRanges":["<3.0.4"],"patched":["3.0.4"],"from":["GHSA-5g2h-9x5v-5h3x"],"provenance":"source"},{"ecosystem":"Hex","package":"phoenix_html","vulnerableRanges":["<3.0.4"],"patched":["3.0.4"],"from":["GHSA-5g2h-9x5v-5h3x"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting issue in the tag.ex module of Phoenix.HTML (phoenix_html) before version 3.0.4, affecting how it handles HEEx class attributes. An attacker can inject script into a page by getting a victim to interact with crafted content, requiring no authentication or prior network access beyond reaching the vulnerable application, but user interaction is needed for the attack to succeed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:53:18Z"},"euvd":{"id":"EUVD-2023-0339","exploited":false,"provenance":"source"}}