{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-117645","id":"CVE-2026-117645","title":"Phoenix HTML XSS in attributes_escape attribute names","description":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in phoenixframework phoenix_html allows an attacker who controls attribute names to inject attributes and script into rendered HTML via Phoenix.HTML.attributes_escape/1.\n\nattributes_escape/1 in lib/phoenix_html.ex escapes attribute values but not attribute names. key_escape/1 passes a binary key thro","descriptionLong":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in phoenixframework phoenix_html allows an attacker who controls attribute names to inject attributes and script into rendered HTML via Phoenix.HTML.attributes_escape/1.\n\nattributes_escape/1 in lib/phoenix_html.ex escapes attribute values but not attribute names. key_escape/1 passes a binary key through html_escape, which neutralizes quotes and angle brackets but not whitespace, so a key such as x onmouseover ends the attribute and starts a new one. An atom key is only dasherized, so any character passes, including quotes and >. Nested data, aria and phx keys take the same paths. An application is affected when it builds attribute keys from untrusted input and renders them through HEEx <tag {@attrs}>, content_tag/3, or a direct call. Before 3.0.0 the same code lived in Phoenix.HTML.Tag.\n\nThis issue affects phoenix_html: from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0.","published":"2026-10-30T20:25:06.758Z","updated":"2026-11-19T09:45:20.858420177Z","reserved":"2026-10-30T12:15:02.726Z","status":"Awaiting Analysis","rejected":false,"assigner":"EEF","metric":{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"medium","source":"EEF"},"metrics":[{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"medium","source":"EEF"},{"version":"4.0","score":5.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"unrated","source":"OSV"}],"rating":"medium","products":["phoenixframework phoenix_html"],"affectedProducts":[{"vendor":"phoenixframework","product":"phoenix_html","defaultStatus":"unaffected","versions":[{"lessThan":"3.3.5","status":"affected","version":"1.0.0","versionType":"semver"},{"lessThan":"4.4.0","status":"affected","version":"4.0.0","versionType":"semver"}],"platforms":[]},{"vendor":"phoenixframework","product":"phoenix_html","defaultStatus":"unaffected","versions":[{"changes":[{"at":"d9e4e6b2d9be49e25fb6d6b4fdbb2008174f01a6","status":"unaffected"},{"at":"a47dc8944a773b7e9273d9691dc6744ec793f1de","status":"unaffected"}],"lessThan":"*","status":"affected","version":"6ad3a1d7960891a468d54636054a98e11dfb5111","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-79"],"aliases":["EEF-CVE-2026-117645"],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-117645.html","tags":["related","third-party-advisory","advisory"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-117645","tags":["related","web"]},{"url":"https://github.com/phoenixframework/phoenix_html/commit/6ad3a1d7960891a468d54636054a98e11dfb5111","tags":["related","fix"]},{"url":"https://github.com/phoenixframework/phoenix_html/commit/d9e4e6b2d9be49e25fb6d6b4fdbb2008174f01a6","tags":["patch","fix"]},{"url":"https://github.com/phoenixframework/phoenix_html/commit/a47dc8944a773b7e9273d9691dc6744ec793f1de","tags":["patch","fix"]},{"url":"https://github.com","tags":["web"]},{"url":"https://repo.hex.pm","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/117xxx/CVE-2026-117645.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-117645","tags":["advisory"]},{"url":"https://github.com/phoenixframework/phoenix_html","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00315,"epssPercentile":0.24932,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-117645","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-117645","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-117645","ok":true,"note":"0 packages"},{"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-2026-117645","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}