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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.55% (percentile 39, 2026-11-26)
- **CWE:** CWE-79
- **Published:** 2026-10-30T20:25:06.758Z
- **Modified:** 2026-11-20T06:17:18.850Z

## 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, \< \*

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

- phoenixframework phoenix\_html: \>= 1.0.0, \< 3.3.5; \>= 4.0.0, \< 4.4.0 (cvelist)
- phoenixframework phoenix\_html: \>= 6ad3a1d7960891a468d54636054a98e11dfb5111, \< \* (cvelist)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- patch: <https://github.com/phoenixframework/phoenix_html/commit/6ad3a1d7960891a468d54636054a98e11dfb5111>
- patch: <https://github.com/phoenixframework/phoenix_html/commit/a47dc8944a773b7e9273d9691dc6744ec793f1de>
- patch: <https://github.com/phoenixframework/phoenix_html/commit/d9e4e6b2d9be49e25fb6d6b4fdbb2008174f01a6>
- other: <https://cna.erlef.org/cves/CVE-2026-117645.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-117645>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-117645>

HTML: <https://flawdb.com/CVE-2026-117645> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-117645>
