Cross-site Scripting (XSS) occurs when an attacker controls attribute names, allowing the injection of attributes and scripts into rendered HTML via the `Phoenix.HTML.attributes escape/1` function. The `key escape/1` function fails to properly neutralize whitespace in binary keys, enabling the creation of new attributes such as event handlers. Additionally, atom keys are only dasherized, allowing characters like quotes and angle brackets to pass through. This issue affects applications that build attribute keys from untrusted input and render them using HEEx `<tag {@attrs}>`, `content tag/3`, or direct calls. Nested `data`, `aria`, and `phx` keys are also susceptible. This can lead to the execution of arbitrary scripts in the browsers of users viewing the affected pages.