# CVE-2026-117645: Phoenix.HTML vulnerable to attribute injection via unvalidated attribute names in attributes_escape/1

- Severity: Medium 5.3 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Published: 2026-10-30T20:25:06.758Z
- Modified: 2026-11-25T06:30:17.903Z
- Also known as: EEF-CVE-2026-117645
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

## 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.

attributes_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.

This issue affects phoenix_html: from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0.

(As written by CVE List.)

## Affected

- phoenix_html: from 1.0.0 before 3.3.5; from 4.0.0 before 4.4.0
- phoenixframework/phoenix_html: from 6ad3a1d7960891a468d54636054a98e11dfb5111 before *
- phoenix_html (Hex): from 1.0.0 before 3.3.5; from 4.0.0 before 4.4.0
- https://github.com/phoenixframework/phoenix_html: from 6ad3a1d7960891a468d54636054a98e11dfb5111 before a47dc8944a773b7e9273d9691dc6744ec793f1de; before d9e4e6b2d9be49e25fb6d6b4fdbb2008174f01a6

## Every score

- EEF: CVSS:4.0 5.3 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://cna.erlef.org/cves/CVE-2026-117645.html> (related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-117645> (related)
- <https://github.com/phoenixframework/phoenix_html/commit/6ad3a1d7960891a468d54636054a98e11dfb5111> (related, web)
- <https://github.com/phoenixframework/phoenix_html/commit/a47dc8944a773b7e9273d9691dc6744ec793f1de> (fix, patch)
- <https://github.com/phoenixframework/phoenix_html/commit/d9e4e6b2d9be49e25fb6d6b4fdbb2008174f01a6> (fix, patch)
- <https://hex.pm/packages/phoenix_html> (package)

## Sources

- CVE List: [CVE-2026-117645](https://www.cve.org/CVERecord?id=CVE-2026-117645), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-117645](https://osv.dev/vulnerability/EEF-CVE-2026-117645), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-117645](https://nvd.nist.gov/vuln/detail/CVE-2026-117645), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-117645 · Whole record: https://cve.day/CVE-2026-117645.json · Rebuilt by cve.day 2026-11-25T22:59:48.022Z
