Description
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in hexpm hexpm/hexpm ('Elixir.HexpmWeb.SharedAuthorizationView' modules) allows Cross-Site Scripting (XSS). This vulnerability is associated with program files lib/hexpm_web/views/shared_authorization_view.ex and program routines 'Elixir.HexpmWeb.SharedAuthorizationView':render_grouped_scopes/3.

This issue affects hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before c692438684ead90c3bcbfb9ccf4e63c768c668a8, from pkg:github/hexpm/hexpm@617e44c71f1dd9043870205f371d375c5c4d886d before pkg:github/hexpm/hexpm@c692438684ead90c3bcbfb9ccf4e63c768c668a8; hex.pm: from 2025-10-01 before 2026-01-19.
Published: 2026-01-19
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑Site Scripting
Action: Patch Immediately
AI Analysis

Impact

Improper Neutralization of Input During Web Page Generation (XSS) in hexpm/hexpm’s SharedAuthorizationView, specifically render_grouped_scopes/3, allows an attacker to inject malicious script. This could run in the victim’s browser, potentially stealing session cookies, tokens, or executing malicious actions in the attacker’s context. The weakness is identified as CWE-79.

Affected Systems

Hex.pm packages and the hex.pm application are impacted. Specifically versions before the commit c692438684ead90c3bcbfb9ccf4e63c768c668a8 or before 2026-01-19 for hex.pm. The affected modules are lib/hexpm_web/views/shared_authorization_view.ex.

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. Attack vector is cross-domain inherited via the OAuth Device Authorization screen; the vulnerability requires a crafted URL or redirect context that invites a user to authenticate with the maliciously crafted device. The flaw is client-side; no additional privileges are required. Because the flaw allows arbitrary JavaScript in the OAuth redirect context, an attacker could hijack an existing user session or inject malicious content.

Generated by OpenCVE AI on April 15, 2026 at 21:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade hexpm to a revision after commit c692438684ead90c3bcbfb9ccf4e63c768c668a8 or to a release newer than 2026-01-19.
  • If an upgrade is not immediately possible, enforce a strict Content‑Security‑Policy header that blocks inline scripts, only allows scripts from trusted sources, and removes unsafe-inline and unsafe-eval.
  • Monitor OAuth Device Authorization traffic for abnormal query parameters or URLs and block or alert on suspicious requests.

Generated by OpenCVE AI on April 15, 2026 at 21:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 06 Apr 2026 16:45:00 +0000


Wed, 25 Mar 2026 14:30:00 +0000

Type Values Removed Values Added
First Time appeared Hex
Hex hexpm
CPEs cpe:2.3:a:hex:hexpm:*:*:*:*:*:*:*:*
Vendors & Products Hex
Hex hexpm
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


Tue, 20 Jan 2026 17:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 19 Jan 2026 14:45:00 +0000

Type Values Removed Values Added
Description Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in hexpm hexpm/hexpm ('Elixir.HexpmWeb.SharedAuthorizationView' modules) allows Cross-Site Scripting (XSS). This vulnerability is associated with program files lib/hexpm_web/views/shared_authorization_view.ex and program routines 'Elixir.HexpmWeb.SharedAuthorizationView':render_grouped_scopes/3. This issue affects hexpm: from 617e44c71f1dd9043870205f371d375c5c4d886d before c692438684ead90c3bcbfb9ccf4e63c768c668a8, from pkg:github/hexpm/hexpm@617e44c71f1dd9043870205f371d375c5c4d886d before pkg:github/hexpm/hexpm@c692438684ead90c3bcbfb9ccf4e63c768c668a8; hex.pm: from 2025-10-01 before 2026-01-19.
Title Cross-site scripting (XSS) in OAuth Device Authorization screen
First Time appeared Hexpm
Hexpm hexpm
Weaknesses CWE-79
CPEs cpe:2.3:a:hexpm:hexpm:*:*:*:*:*:*:*:*
Vendors & Products Hexpm
Hexpm hexpm
References
Metrics cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-04-06T16:44:10.863Z

Reserved: 2026-01-01T03:46:45.933Z

Link: CVE-2026-21618

cve-icon Vulnrichment

Updated: 2026-01-20T16:16:50.302Z

cve-icon NVD

Status : Modified

Published: 2026-01-19T15:15:50.693

Modified: 2026-04-06T17:17:06.820

Link: CVE-2026-21618

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-15T21:45:14Z

Weaknesses