{"id":"CVE-2026-117645","sourceIdentifier":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","published":"2026-10-30T21:16:51.170","lastModified":"2026-11-20T06:17:18.850","vulnStatus":"Awaiting Analysis","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","affectedData":[{"vendor":"phoenixframework","product":"phoenix_html","defaultStatus":"unaffected","collectionURL":"https://repo.hex.pm","packageName":"phoenix_html","cpes":["cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*"],"modules":["'Elixir.Phoenix.HTML'","'Elixir.Phoenix.HTML.Tag'"],"programFiles":["lib/phoenix_html.ex","lib/phoenix_html/tag.ex"],"programRoutines":[{"name":"'Elixir.Phoenix.HTML':attributes_escape/1"},{"name":"'Elixir.Phoenix.HTML':build_attrs/1"},{"name":"'Elixir.Phoenix.HTML':nested_attrs/3"},{"name":"'Elixir.Phoenix.HTML':key_escape/1"},{"name":"'Elixir.Phoenix.HTML.Tag':tag/2"},{"name":"'Elixir.Phoenix.HTML.Tag':content_tag/3"},{"name":"'Elixir.Phoenix.HTML.Tag':attributes_escape/1"},{"name":"'Elixir.Phoenix.HTML.Tag':tag_attrs/1"}],"repo":"https://github.com/phoenixframework/phoenix_html","packageURL":"pkg:hex/phoenix_html","versions":[{"version":"1.0.0","lessThan":"3.3.5","versionType":"semver","status":"affected"},{"version":"4.0.0","lessThan":"4.4.0","versionType":"semver","status":"affected"}]},{"vendor":"phoenixframework","product":"phoenix_html","defaultStatus":"unaffected","collectionURL":"https://github.com","packageName":"phoenixframework/phoenix_html","cpes":["cpe:2.3:a:phoenixframework:phoenix_html:*:*:*:*:*:*:*:*"],"modules":["'Elixir.Phoenix.HTML'","'Elixir.Phoenix.HTML.Tag'"],"programFiles":["lib/phoenix_html.ex","lib/phoenix_html/tag.ex"],"programRoutines":[{"name":"'Elixir.Phoenix.HTML':attributes_escape/1"},{"name":"'Elixir.Phoenix.HTML':build_attrs/1"},{"name":"'Elixir.Phoenix.HTML':nested_attrs/3"},{"name":"'Elixir.Phoenix.HTML':key_escape/1"},{"name":"'Elixir.Phoenix.HTML.Tag':tag/2"},{"name":"'Elixir.Phoenix.HTML.Tag':content_tag/3"},{"name":"'Elixir.Phoenix.HTML.Tag':attributes_escape/1"},{"name":"'Elixir.Phoenix.HTML.Tag':tag_attrs/1"}],"repo":"https://github.com/phoenixframework/phoenix_html","packageURL":"pkg:github/phoenixframework/phoenix_html","versions":[{"version":"6ad3a1d7960891a468d54636054a98e11dfb5111","lessThan":"*","versionType":"git","status":"affected","changes":[{"at":"a47dc8944a773b7e9273d9691dc6744ec793f1de","status":"unaffected"},{"at":"d9e4e6b2d9be49e25fb6d6b4fdbb2008174f01a6","status":"unaffected"}]}]}]}],"metrics":{"cvssMetricV40":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","cvssData":{"version":"4.0","vectorString":"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","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-11-06T16:01:55.707158Z","id":"CVE-2026-117645","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","description":[{"lang":"en","value":"CWE-79"}]}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-117645.html","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/phoenixframework/phoenix_html/commit/6ad3a1d7960891a468d54636054a98e11dfb5111","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/phoenixframework/phoenix_html/commit/a47dc8944a773b7e9273d9691dc6744ec793f1de","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/phoenixframework/phoenix_html/commit/d9e4e6b2d9be49e25fb6d6b4fdbb2008174f01a6","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-117645","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"}]}