Skip to main content

HAX CMS CVE-2026-46396

| EUVDEUVD-2026-34891 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-05-19 https://github.com/haxtheweb/issues GHSA-jh3h-rpxg-fr36
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 author-level HAX CMS account
  2. Delivery
    Open page HTML source editor
  3. Exploit
    Inject iframe with srcdoc/javascript payload
  4. Install
    Victim authenticated user views page
  5. C2
    Script reads window.appSettings.jwt
  6. Execute
    Exfiltrate JWT to attacker server
  7. Impact
    Hijack session and take over account

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 valid HAX CMS credentials with permission to create or edit page content via the HTML source editor (CVSS PR:L - any authenticated author role suffices, not admin), and a victim user must subsequently view the booby-trapped page in an authenticated browser session (CVSS UI:P, passive user interaction). The deployment must be running @haxtheweb/haxcms-nodejs, @haxtheweb/video-player, or @haxtheweb/iframe-loader at version <= 25.0.0 with the default front-end that places the JWT on window.appSettings; for maximum impact (JWT theft) the session token must be reachable from JavaScript rather than stored in an HttpOnly cookie, which is the default configuration in affected versions. No special server-side configuration toggle is required - the vulnerable sanitizer behavior is the default.

Impact

The CVSS 4.0 base score is 9.3 (Critical) with vector AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N - network-reachable, low complexity, low privileges (any authenticated author), but requiring victim interaction (viewing the malicious page) and yielding high confidentiality and integrity impact on both vulnerable and subsequent (scope) systems. No EPSS score, KEV listing, or SSVC decision was provided in the input, so widespread automated exploitation cannot be inferred; however, a fully working PoC is published in the GHSA advisory, which materially lowers the bar for opportunistic abuse. The realistic risk is high for any multi-tenant HAX CMS deployment where lower-privileged authors interact with higher-privileged reviewers/admins, because exposing the JWT on window.appSettings means a single viewed page yields full account takeover; for single-author or trusted-author deployments the practical risk is lower.

Exploit ScenarioDerived

An attacker with author-level credentials on a HAX CMS instance creates or edits a page and pastes the published PoC <iframe srcdoc=...> payload via the HTML source editor; when an administrator or other authenticated user subsequently views that page, the script reads parent.window.appSettings.jwt and exfiltrates it to an attacker-controlled endpoint. Using the stolen JWT, the attacker assumes the victim's identity over the HAX CMS API and pivots to full content and account control. The attack relies on a published PoC in the GHSA advisory, lowering the skill required to weaponize it.

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 (versions <= 25.0.0) allows authenticated users to inject malicious <iframe> elements with javascript: URIs or srcdoc payloads that execute in viewers' browsers, enabling theft of JWTs exposed via window.appSettings and full account takeover. A working proof-of-concept is published in the GHSA advisory demonstrating JWT exfiltration, and a vendor patch is available in 26.0.0. No public exploit identified at time of analysis beyond the published PoC, and the issue is not listed in CISA KEV.

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

Stored cross-site scripting in HAX CMS (haxcms-nodejs, video-player, and iframe-loader npm packages at versions <= 25.0.0) allows an authenticated content editor to inject a malicious <iframe> whose srcdoc or javascript: URI executes when another user views the page. Because HAX CMS exposes the JWT via window.appSettings, exploitation leads directly to authentication token theft and full account takeover. Publicly available exploit code exists in the GitHub Security Advisory; no public exploit identified at time of analysis as being used in the wild.

v1 May 19, 2026 - 15:31

Stored cross-site scripting in HAX CMS (haxtheweb) allows authenticated users to inject malicious <iframe> elements containing javascript: URIs or srcdoc payloads that execute in other users' browser sessions. The flaw stems from improper sanitization in the page content editor and impacts the npm packages @haxtheweb/haxcms-nodejs, @haxtheweb/video-player, and @haxtheweb/iframe-loader at versions <= 25.0.0. A working proof-of-concept demonstrating JWT theft via window.appSettings.jwt is published in the GitHub Security Advisory GHSA-jh3h-rpxg-fr36, though no public exploit identified at time of analysis indicates mass weaponization.

RemediationAI

Vendor-released patch: upgrade @haxtheweb/haxcms-nodejs, @haxtheweb/video-player, and @haxtheweb/iframe-loader to 26.0.0 or later per GHSA-jh3h-rpxg-fr36 (https://github.com/haxtheweb/issues/security/advisories/GHSA-jh3h-rpxg-fr36). Until the upgrade is deployed, restrict page-editing privileges to fully trusted users and audit existing page content for <iframe> tags containing javascript: URIs or srcdoc attributes; consider temporarily disabling the raw HTML source editor (<>) in the authoring UI, which prevents the injection vector at the cost of removing direct HTML editing for authors. As a defensive hardening step independent of this CVE, stop exposing the JWT on window.appSettings (move it to an HttpOnly cookie) so that future client-side script execution cannot trivially exfiltrate session credentials; this is a substantive architectural change and should be tested against any client code that currently reads the token from the global.

Affected VersionsENISA

iframe-loader < 26.0.0
haxcms-nodejs < 26.0.0
video-player < 26.0.0

Affected Packages

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

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 6 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/decoupled content management system built as a collection of npm packages (notably @haxtheweb/haxcms-nodejs, @haxtheweb/video-player, and @haxtheweb/iframe-loader) that lets authenticated authors edit page HTML directly through a source editor. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation): the HTML sanitizer permits <iframe> elements and does not strip javascript: URIs from src attributes or block dangerous srcdoc content with allow-scripts allow-same-origin sandbox tokens. Because the front-end stores sensitive material such as JWTs on window.appSettings, scripts executing in the same origin can read authentication tokens directly from the DOM rather than relying on cookie theft.

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:28 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 05, 2026 - 19:28 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 <iframe> elements.

The application allows javascript: URIs in the src attribute, which are executed when a malicious page is viewed. This enables attackers to execute arbitrary JavaScript in the context of the victim’s browser and access sensitive data exposed to client-side scripts.

Details

Successful exploitation allows access to any data available in the browser context, including:

  • Authentication tokens (e.g., JWT)
  • Session cookies (if not protected with HttpOnly)
  • Application configuration (e.g., window.appSettings)
  • User-specific data accessible via APIs

This significantly increases the impact beyond simple script execution.

PoC

Steps to reproduce:

  1. Log in to HAX CMS as any authenticated user.
  2. Create a new page or edit an existing page.
  3. Open the HTML source editor (<>).
  4. Insert the following payload:
html
<iframe srcdoc="&lt;script&gt;
    (function(){
        try {
            var jwt = parent.window.appSettings.jwt;
            alert('Stolen JWT:\n' + jwt);
        } catch(e) {
            alert('Error: ' + e.message);
        }
    })();
&lt;/script&gt;" style="display:none" sandbox="allow-scripts allow-same-origin"></iframe>

<img width="2446" height="1319" alt="image" src="https://github.com/user-attachments/assets/daea3b41-8c72-4f6c-ab32-34c688bbd251" />

<img width="2464" height="1397" alt="image" src="https://github.com/user-attachments/assets/911cbd42-db50-454a-b178-51555e0db79c" />

<img width="2466" height="1409" alt="webhook`" src="https://github.com/user-attachments/assets/8a286435-98f4-418c-a596-d0c19556696a" />

Impact

This vulnerability allows stored XSS leading to:

  • Execution of arbitrary JavaScript in victim browsers
  • Access to sensitive client-side data, including authentication tokens and session identifiers
  • Unauthorized API actions performed on behalf of the victim
  • Session hijacking and full account takeover

Because the application exposes authentication data in the client-side environment, exploitation of this vulnerability can lead to complete compromise of user accounts and site content.

Executive ViewAI

Why It Matters

HAX CMS versions 25.0.0 and earlier contain a stored cross-site scripting vulnerability with publicly available exploit code that enables authenticated users to inject malicious code executing in other users' browsers to steal session tokens and achieve account takeover. Organizations using HAX CMS face immediate risk because any user account-including potentially compromised low-privilege accounts-can be weaponized to compromise other users without additional authentication.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

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

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