CVE-2026-117645
Phoenix.HTML vulnerable to attribute injection via unvalidated attribute names in attributes_escape/1
Mitigation
- Upgrade phoenix_html to 4.4.0 or later.
- Vendor workaround: Do not derive attribute names from untrusted input. Where dynamic attribute keys are needed, check each key against an allow list, or against a pattern such as ^[a-zA-Z][a-zA-Z0-9:._-]*$, before passing the map to attributes_escape/1 or a HEEx {@attrs} expression. Do not create atoms from request data.
Who should check
- Anyone running phoenixframework phoenix_html >= 1.0.0, < 3.3.5; >= 4.0.0, < 4.4.0
- Anyone running phoenixframework phoenix_html >= 6ad3a1d7960891a468d54636054a98e11dfb5111, < *
Vulnerability facts
- Affected
- phoenixframework phoenix_html >= 1.0.0, < 3.3.5; >= 4.0.0, < 4.4.0; phoenixframework phoenix_html >= 6ad3a1d7960891a468d54636054a98e11dfb5111, < *
- Fixed in
- phoenixframework phoenix_html 3.3.5, phoenixframework phoenix_html 4.4.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.55% chance of exploitation in 30 days (percentile 39, 2026-11-26)
- CWE
- CWE-79
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| phoenixframework phoenix_html | >= 1.0.0, < 3.3.5; >= 4.0.0, < 4.4.0 | — | cvelist |
| phoenixframework phoenix_html | >= 6ad3a1d7960891a468d54636054a98e11dfb5111, < * | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-117645. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-117645.md Affected: phoenixframework phoenix_html >= 1.0.0, < 3.3.5; >= 4.0.0, < 4.4.0; phoenixframework phoenix_html >= 6ad3a1d7960891a468d54636054a98e11dfb5111, < * Fixed in: phoenixframework phoenix_html 3.3.5, phoenixframework phoenix_html 4.4.0 Steps: 1. Search this machine and project for phoenixframework phoenix_html: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-117645 being exploited?
There is no confirmed exploitation: CVE-2026-117645 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.55% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-117645?
Medium: CVSS 5.3 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-117645?
phoenixframework phoenix_html >= 1.0.0, < 3.3.5; >= 4.0.0, < 4.4.0; phoenixframework phoenix_html >= 6ad3a1d7960891a468d54636054a98e11dfb5111, < *.
Is there a fix for CVE-2026-117645?
Yes. Fixed in phoenixframework phoenix_html 3.3.5, phoenixframework phoenix_html 4.4.0. Upgrade phoenix_html to 4.4.0 or later. Vendor workaround: Do not derive attribute names from untrusted input. Where dynamic attribute keys are needed, check each key against an allow list, or against a pattern such as ^[a-zA-Z][a-zA-Z0-9:._-]*$, before passing the map to attributes_escape/1 or a HEEx {@attrs} expression. Do not create atoms from request data.
How do I check if I'm affected by CVE-2026-117645?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.