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; 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: n/a
Action: n/a
AI Analysis

Impact

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross‑site Scripting') vulnerability in hexpm hexpm/hexpm's 'Elixir.HexpmWeb.SharedAuthorizationView' modules permits injection of unsanitized data into the OAuth Device Authorization screen via the program files lib/hexpm_web/views/shared_authorization_view.ex and the routine 'Elixir.HexpmWeb.SharedAuthorizationView':render_grouped_scopes/3. When a user views the affected screen, malicious content can execute client‑side scripts in the victim’s browser, potentially leading to arbitrary JavaScript execution and enabling the theft of session cookies, tokens, or 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.

Generated by OpenCVE AI on August 3, 2026 at 08:21 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 August 3, 2026 at 08:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 24 Jul 2026 18:30: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. 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; hex.pm: from 2025-10-01 before 2026-01-19.

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-07-24T14:16:04.791Z

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-07-24T15:17:13.543

Link: CVE-2026-21618

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T08:30:17Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')