Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify HAXcms Node.js instance
-
DeliveryGET /system/api/connectionSettings unauthenticated
-
ExploitBase64-decode token and strip first 32 bytes
-
InstallRecover privateKey+salt signing secret
-
C2Forge admin JWT with JWT.sign()
-
ExecuteCall authenticated APIs as admin
-
ImpactModify/delete content and upload files
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions - remote unauthenticated exploitation against default configurations of HAXcms Node.js backend (@haxtheweb/haxcms-nodejs <= 25.0.0). The only prerequisites are network reachability of the /system/api/connectionSettings endpoint (or any other endpoint that returns a hmacBase64()-generated token) and that the deployment uses the Node.js backend rather than the PHP backend, which implements the function correctly and is not exploitable. No authentication, user interaction, or non-default configuration is required; the endpoint is unauthenticated by design and returns key-leaking tokens out of the box. Exploitation is limited only where the Node.js endpoint is firewalled off from the attacker or where the site has already been upgraded to 26.0.0 with secrets rotated. |
| Impact | All available signals point to high real-world priority. The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N with VC:H/VI:H/VA:H confirms unauthenticated network exploitation against confidentiality, integrity, and availability of the vulnerable component, and the GHSA advisory documents a deterministic, single-request PoC - so the SSVC automatable dimension is effectively 'yes' and technical impact is 'total.' No EPSS score or CISA KEV listing was provided in the input, so widespread mass exploitation cannot yet be confirmed, but the trivial mechanics and the existence of working PoC steps make opportunistic scanning highly likely once the advisory is indexed. Detection is also weak by design: the advisory notes that forged tokens generate no login events in logs, so absence of authentication failures should not be interpreted as absence of compromise. |
| Exploit ScenarioDerived | An attacker scans the internet for HAXcms instances, sends a single unauthenticated GET to https://victim/system/api/connectionSettings, base64-decodes any returned token, discards the first 32 bytes, and reads the remaining bytes as the UTF-8 privateKey+salt. They then call JWT.sign({id, user:'admin', iat, exp}, stolenKey) to mint an admin JWT and immediately call authenticated APIs to create, modify, or delete sites, upload files, and replace content - all without triggering login events. The published PoC in GHSA-6c8g-9hfh-pq5h spells out each step. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 05, 2026
Private key disclosure in HAXcms Node.js backend (@haxtheweb/haxcms-nodejs <= 25.0.0) lets unauthenticated remote attackers extract the master JWT signing secret via a single GET to /system/api/connectionSettings and forge admin-level JWTs for complete site takeover. The broken hmacBase64() function appends the raw privateKey+salt to its output, exposing it through any token the server emits. Publicly available exploit code exists in the GHSA advisory PoC, and the CVSS 4.0 score of 9.3 reflects trivial network exploitation with no privileges or user interaction.
Earlier versions of this analysis (2)
Private key disclosure in HAXcms Node.js backend (@haxtheweb/haxcms-nodejs <= 25.0.0) lets unauthenticated remote attackers extract the master signing secret with a single GET to /system/api/connectionSettings and forge admin JWTs, yielding complete site takeover. The flaw stems from a broken hmacBase64() implementation that hardcodes the HMAC key to '0' and appends the real privateKey+salt in plaintext to the returned token. Publicly available exploit code exists in the GHSA advisory, and CVSS 4.0 scores it 9.3; no CISA KEV listing at time of analysis.
Private key disclosure in HAXcms Node.js backend (@haxtheweb/haxcms-nodejs <= 25.0.0) allows any remote unauthenticated attacker to retrieve the system's master signing secret and forge arbitrary admin JWTs via a single GET request to /system/api/connectionSettings. The flaw stems from a broken hmacBase64() implementation that hardcodes the HMAC key to '0' and then appends the real privateKey+salt to the base64-encoded token output. No public exploit identified at time of analysis in CISA KEV, but the GitHub Security Advisory includes a complete, working proof-of-concept making weaponization trivial.
RemediationAI
Vendor-released patch: upgrade @haxtheweb/haxcms-nodejs to 26.0.0 or later (npm install @haxtheweb/haxcms-nodejs@^26.0.0), per GHSA-6c8g-9hfh-pq5h. Because any token the server has ever emitted leaks the signing secret, after patching operators must rotate this.privateKey and this.salt and invalidate all previously issued JWTs and request tokens (user_token, base_token, site_token, form_token) - patching alone leaves the old secret compromised. Where immediate upgrade is not possible, restrict network access to /system/api/connectionSettings via reverse-proxy ACLs or WAF rules so only trusted admin networks can reach it; this is a meaningful workaround but may break legitimate frontend bootstrapping that relies on the endpoint, and any other endpoint that returns a hmacBase64()-produced token will continue to leak the key, so block-listing one path is not a complete fix. As a stopgap consider migrating to the PHP backend, which implements the routine correctly. Audit site content, user lists, and uploaded files for unauthorized changes since the vulnerable version was deployed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 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
HAXcms is a headless CMS distributed as the @haxtheweb/haxcms-nodejs npm package with a parallel PHP implementation. The Node.js backend's hmacBase64() helper (around lines 2160-2163) contains two compounding cryptographic defects: it calls HMAC-SHA256 with the literal string '0' instead of the supplied key argument, and then concatenates the real key material (this.privateKey + this.salt) onto the HMAC output before base64-encoding the buffer as a token. Because JWTs issued by the server are signed with privateKey+salt, recovering that secret allows forging arbitrary signed tokens. The defect is mapped to CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor); notably, the PHP backend at HAXCMS.php:1619-1631 implements the same routine correctly and is not affected, which is why broken Node.js tokens are 139+ characters versus the PHP version's 44 characters - a useful fingerprint for triage.
Know when Node.js gets its next vulnerability
- 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:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Primary rating from Vendor (https://github.com/haxtheweb/issues) · only source for this CVE.
CVSS VectorVendor: https://github.com/haxtheweb/issues
Lifecycle Timeline
3DescriptionCVE.org
Summary
The hmacBase64() function in the HAXcms Node.js backend contains two critical cryptographic implementation errors that together allow any unauthenticated attacker to extract the system’s private signing key and forge arbitrary admin-level JSON Web Tokens (JWTs) allowing them to get full admin access with a single HTTP request.
Details
Bug 1: Hardcoded HMAC Key (line 2160): The function passes the literal string "0" as the HMAC signing key instead of the key parameter, making every HAXcms instance compute identical HMACs for the same input.
Bug 2: Private Key Appended to Output (lines 2161- 2163): After computing the HMAC, the function concatenates the real key parameter which is "this.privateKey + this.salt", the system’s master signing secret is directly onto the output. The combined buffer is base64-encoded and returned as the token.
Every base64url token produced has the same structure: 32 bytes HMAC keyed with "0" and N bytes of privateKey+salt. An attacker base64-decodes any token, discards the first 32 bytes, and reads the private key directly.
The /system/api/connectionSettings endpoint is unauthenticated and returns multiple tokens generated by this function. A single GET request to this endpoint exposes the private key.
The PHP backend (HAXCMS.php:1619-1631) implements this function correctly with the actual key and returns only the hash. The PHP version produces 44-character tokens whereas the broken Node.js version produces 139+ character tokens.
PoC
- GET request to
/system/api/connectionSettingsendpoint and fetch the token. - Extract the private key from the fetched token. The
hmacBase64()function produces 32 bytes with HMAC-SHA256 with hardcoded key "0" and the rest of the bytes areprivateKey+salt(plaintext). Decode the Base64 token, discard the first 32 bytes, read the remaining bytes as UTF-8 (this is your extracted private key). - Since JWT's are signed with
privateKey+salt, use this stolen private key to forge a JWT for admin usingJWT.sign(payload, this.privateKey+this.salt). NOTE: the payload uses {id, user (set this as admin), iat (current timestamp), exp (expiration timestamp)} - The same key can also be used to create other tokens (user_token, base_token, form_token, etc).
- Use these forged tokens to hit all authenticated endpoints (modify/delete/create etc) with admin privileges.
Impact
An unauthenticated attacker can perform the complete attack chain with a single HTTP request:
- Extract private key: GET "/system/api/connectionSettings", base64-decode any token, discard first 32 bytes.
- Forge admin JWT: sign arbitrary JWT payloads with the stolen privateKey+salt.
- Forge all request tokens: compute valid user_token, site_token for any API call.
- Full admin access: create/modify/delete sites, upload files, modify content.
This works even if the admin has changed the default credentials to a strong password. The forged tokens produce no login events in logs.
Executive ViewAI
The HAXcms Node.js backend contains a critical vulnerability that allows unauthenticated attackers to obtain full administrative credentials and take complete control of affected websites with minimal effort. Any organization running HAXcms version 25.0.0 or earlier faces immediate risk of data theft, unauthorized account access, and service disruption. Given the publicly available exploitation tools and trivial attack complexity, patching is essential.
Apply vendor patch.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-34886
GHSA-6c8g-9hfh-pq5h
NVD
CVE.org
EPSS
Exploit-DB