Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain low-privilege CMS author account
-
DeliveryOpen HTML source editor on a page
-
ExploitInject `<video-player source="javascript:...">` payload
-
InstallSave page so payload is stored
-
C2Victim (ideally admin) loads page
-
ExecuteJavaScript executes in CMS origin
-
ImpactExfiltrate 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 ( |
| 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 ( |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – 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)
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.
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
Affected Packages
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
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
Lifecycle Timeline
3DescriptionGitHub 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:
sourcesource-data
These attributes accept arbitrary URI schemes, including javascript:, which leads to execution of attacker-controlled JavaScript in the browser.
Example vulnerable usage:
<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:
- Log in to HAX CMS as user.
- Create a website or any page and switch to the HTML source editor (
<>). - Insert the following payload:
<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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-34892
GHSA-2m6p-hm3w-6jm3
NVD
CVE.org
EPSS
Exploit-DB