Haxtheweb haxcms-nodejs
HAX CMS Vulnerable to Private Key Disclosure via Broken HMAC Implementation
HAX CMS helps manage microsite universe with PHP or NodeJs backends. Prior to version 26.0.0, 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. First, 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. Then, 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 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. Version 26.0.0 fixes the issue.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 26.0.0
Fixed in 26.0.0
Mitigation
Upgrade haxcms-nodejs to 26.0.0 or later.
References
- Vendor advisory github.com/haxtheweb/issues/security/advisorie…
Timeline
Days relative to CVE publicationFirst public PoC 4 days after publication; not in CISA KEV. First PoC: shreyas-challa/CVE-2026-46395-haxcms-hmac-key-leak (created 9 Jun 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| shreyas-challa/CVE-2026-46395-haxcms-hmac-key-leak | 9 Jun 2026 +4 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /system/api/connectionSettings
GET /system/api/listSites
- Query
user_token=jwt=- Ports
- 3000
- Seen in
- 1 repo: shreyas-challa/CVE-2026-46395-haxcms-hmac-key-leak
- Evidence
- shreyas-challa/CVE-2026-46395-haxcms-hmac-key-leak/poc_hmac_key_leak.js:314
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/system/api/connectionSettings(?:[?#].*)?$
(?i)^/system/api/listSites\?(?:.*&)?user_token=.*jwt=
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-46395 haxtheweb haxcms-nodejs exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/system/api/connectionSettings"; reference:url,poc.griffinguard.io/cve/CVE-2026-46395; classtype:web-application-attack; sid:9386809; rev:1;)
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2026-46395 haxtheweb haxcms-nodejs exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/system/api/listSites"; http.uri; content:"user_token="; http.uri; content:"jwt="; reference:url,poc.griffinguard.io/cve/CVE-2026-46395; classtype:web-application-attack; sid:9810828; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: haxtheweb haxcms-nodejs exploit attempt (CVE-2026-46395)
id: gg-pocmon-cve-2026-46395-9386809
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-46395. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-46395
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/system/api/connectionSettings'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.46395
title: haxtheweb haxcms-nodejs exploit attempt (CVE-2026-46395)
id: gg-pocmon-cve-2026-46395-9810828
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-46395. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-46395
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/system/api/listSites'
cs-uri-query|contains|all:
- 'user_token='
- 'jwt='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.46395