{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-46871","id":"CVE-2021-46871","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.","descriptionLong":"tag.ex in Phoenix Phoenix.HTML (aka phoenix_html) before 3.0.4 allows XSS in HEEx class attributes.","published":"2023-01-10T00:00:00.000Z","updated":"2026-10-20T10:55:11.818072971Z","reserved":"2023-01-10T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"phoenix_html","purl":"pkg:npm/phoenix_html","ranges":["<3.0.4"],"fixed":["3.0.4"],"advisory":"GHSA-5g2h-9x5v-5h3x"},{"ecosystem":"Hex","name":"phoenix_html","purl":"pkg:hex/phoenix_html","ranges":["<3.0.4"],"fixed":["3.0.4"],"advisory":"GHSA-5g2h-9x5v-5h3x"}],"cwes":["CWE-79"],"aliases":["GHSA-5g2h-9x5v-5h3x","GHSA-j3gg-r6gp-95q2"],"references":[{"url":"https://github.com/advisories/GHSA-j3gg-r6gp-95q2","tags":["x_transferred","Patch","Third Party Advisory","fix","advisory"]},{"url":"https://github.com/phoenixframework/phoenix_html/commit/62a0139fb716bcdce697f6221244bd81d321d620","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46871","tags":["advisory"]},{"url":"https://github.com/phoenixframework/phoenix_html","tags":["web","package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0045,"epssPercentile":0.39855,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-46871","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46871","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-46871","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5g2h-9x5v-5h3x","ok":true,"note":"GHSA-5g2h-9x5v-5h3x"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-j3gg-r6gp-95q2","ok":true,"note":"GHSA-j3gg-r6gp-95q2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-46871","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}