Technical impact
Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in hexpm hexpm/hexpm's 'Elixir.HexpmWeb.SharedAuthorizationView' modules allows arbitrary client‑side script execution through the OAuth Device Authorization screen. The flaw is located in lib/hexpm_web/views/shared_authorization_view.ex and the function 'Elixir.HexpmWeb.SharedAuthorizationView':render_grouped_scopes/3. When a user views the affected screen, malicious content can be injected into the page, enabling an attacker to run scripts in the victim’s browser and potentially steal session cookies, tokens, or perform other client‑side attacks.
Affected Systems
Hex.pm packages and the hex.pm application are impacted. Specifically, versions before the commit c692438684ead90c3bcbfb9ccf4e63c768c668a8 for hexpm:hex.pm and before 2026-01-19 for hex.pm. The affected modules and routines are lib/hexpm_web/views/shared_authorization_view.ex and the function render_grouped_scopes/3 in Elixir.HexpmWeb.SharedAuthorizationView.
Risk and Exploitability
CVSS base score of 8.5 indicates high severity. EPSS less than 1% suggests very low likelihood of widespread exploitation. There is no entry in KEV. Based on the description, the attack vector appears to be through the OAuth Device Authorization screen, requiring a crafted URL or redirect context that invites a user to authenticate with the maliciously crafted device. Being a client‑side flaw, it does not require elevated privileges. Because the flaw allows arbitrary JavaScript in the OAuth redirect context, an attacker could hijack an existing user session or inject malicious content.