Skip to main content

HAXcms CVE-2026-46395

| EUVDEUVD-2026-34886 CRITICAL
Information Exposure (CWE-200)
2026-05-19 https://github.com/haxtheweb/issues GHSA-6c8g-9hfh-pq5h
9.3
CVSS 4.0 · Vendor: https://github.com/haxtheweb/issues
View

Attack ChainAIDerived

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

  1. Recon
    Identify HAXcms Node.js instance
  2. Delivery
    GET /system/api/connectionSettings unauthenticated
  3. Exploit
    Base64-decode token and strip first 32 bytes
  4. Install
    Recover privateKey+salt signing secret
  5. C2
    Forge admin JWT with JWT.sign()
  6. Execute
    Call authenticated APIs as admin
  7. Impact
    Modify/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.

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

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)
v2 Jun 05, 2026 - 19:29 cvss changed CVSS 9.3

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.

v1 May 19, 2026 - 15:30

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

haxcms-nodejs < 26.0.0

Affected Packages

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

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

Vendor (https://github.com/haxtheweb/issues) PRIMARY 9.3 CRITICAL
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

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

Lifecycle Timeline

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

DescriptionCVE.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

  1. GET request to /system/api/connectionSettings endpoint and fetch the token.
  2. 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 are privateKey+salt (plaintext). Decode the Base64 token, discard the first 32 bytes, read the remaining bytes as UTF-8 (this is your extracted private key).
  3. Since JWT's are signed with privateKey+salt, use this stolen private key to forge a JWT for admin using JWT.sign(payload, this.privateKey+this.salt). NOTE: the payload uses {id, user (set this as admin), iat (current timestamp), exp (expiration timestamp)}
  4. The same key can also be used to create other tokens (user_token, base_token, form_token, etc).
  5. 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:

  1. Extract private key: GET "/system/api/connectionSettings", base64-decode any token, discard first 32 bytes.
  2. Forge admin JWT: sign arbitrary JWT payloads with the stolen privateKey+salt.
  3. Forge all request tokens: compute valid user_token, site_token for any API call.
  4. 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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% 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
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
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

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

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

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