{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-46871","published":"2023-01-10T06:15:09.870000Z","last_modified":"2026-06-17T04:15:41.650000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*","part":"a","vendor":"phoenixframework","product":"phoenix_html","version_end_excluding":"3.0.4"}],"cpes_truncated":false,"vendors":["phoenixframework"],"products":["phoenixframework/phoenix_html"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.0045,"percentile":0.31029,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-5g2h-9x5v-5h3x","ecosystem":"Hex","name":"phoenix_html","purl":"pkg:hex/phoenix_html","ranges":[{"introduced":"0","fixed":"3.0.4"}],"versions":["1.0.0","1.0.1","1.1.0","1.2.0","1.2.1","1.3.0","1.4.0","2.0.0","2.0.0-dev","2.0.1","2.1.0","2.1.1","2.1.2","2.10.0","2.10.1","2.10.2","2.10.3","2.10.4","2.10.5","2.11.0","2.11.1","2.11.2","2.12.0","2.13.0","2.13.1","2.13.2","2.13.3","2.13.4","2.14.0","2.14.1","2.14.2","2.14.3","2.2.0","2.3.0","2.3.1","2.4.0","2.4.0-dev","2.5.0","2.5.1","2.6.0","2.6.1","2.6.2","2.7.0","2.7.0-dev","2.8.0","2.9.0","2.9.1","2.9.2","2.9.3","3.0.0","3.0.1","3.0.2","3.0.3"],"versions_truncated":false},{"advisory":"GHSA-j3gg-r6gp-95q2","ecosystem":"Hex","name":"phoenix_html","purl":"pkg:hex/phoenix_html","ranges":[{"introduced":"0","fixed":"3.0.4"}],"versions":["1.0.0","1.0.1","1.1.0","1.2.0","1.2.1","1.3.0","1.4.0","2.0.0","2.0.0-dev","2.0.1","2.1.0","2.1.1","2.1.2","2.10.0","2.10.1","2.10.2","2.10.3","2.10.4","2.10.5","2.11.0","2.11.1","2.11.2","2.12.0","2.13.0","2.13.1","2.13.2","2.13.3","2.13.4","2.14.0","2.14.1","2.14.2","2.14.3","2.2.0","2.3.0","2.3.1","2.4.0","2.4.0-dev","2.5.0","2.5.1","2.6.0","2.6.1","2.6.2","2.7.0","2.7.0-dev","2.8.0","2.9.0","2.9.1","2.9.2","2.9.3","3.0.0","3.0.1","3.0.2","3.0.3"],"versions_truncated":false},{"advisory":"GHSA-5g2h-9x5v-5h3x","ecosystem":"npm","name":"phoenix_html","purl":"pkg:npm/phoenix_html","ranges":[{"introduced":"0","fixed":"3.0.4"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2021-46871/","html_en":"/en/cve/CVE-2021-46871/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-46871","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-46871"},"untrusted":{"vendor_name":"Phoenixframework","product_name":"Phoenix Html","desc_en":"tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.","affected":[],"references":[{"url":"https://github.com/advisories/GHSA-j3gg-r6gp-95q2","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620","tags":["Patch","Third Party Advisory"]}]}}