{"id":"GHSA-5g2h-9x5v-5h3x","revision":"a5b585827f1949f3885f170cbf95dacd","records":[{"revision":"a5b585827f1949f3885f170cbf95dacd","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-5g2h-9x5v-5h3x","aliases":["CVE-2021-46871","GHSA-j3gg-r6gp-95q2"],"title":"phoenix_html allows Cross-site Scripting in HEEx class attributes","description":"tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes","state":0,"publishedAt":"2023-01-10T06:30:25+00:00","modifiedAt":"2026-09-10T03:49:56.6036761+00:00","affected":[{"ecosystem":"npm","name":"phoenix_html","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.0.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Hex","name":"phoenix_html","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"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"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-46871","https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620","https://github.com/advisories/GHSA-j3gg-r6gp-95q2","https://github.com/phoenixframework/phoenix_html"],"sourceUrl":"https://github.com/advisories/GHSA-5g2h-9x5v-5h3x","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5g2h-9x5v-5h3x","identifiers":["GHSA-5g2h-9x5v-5h3x","CVE-2021-46871","GHSA-j3gg-r6gp-95q2"]},"retained":false,"historicalAffected":[]}],"coverage":[]}