CVE-2026-46395

CRITICAL

HAX CMS Vulnerable to Private Key Disclosure via Broken HMAC Implementation

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-46395. PoCs published by shreyas-challa.

AI-analyzed exploit summary This repository contains a functional proof-of-concept exploit for CVE-2026-46395, demonstrating how a broken HMAC implementation in HAXcms Node.js leaks the private key, allowing unauthenticated attackers to extract the key and forge admin-level JWTs.

Description

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.

Exploits (1)

github WORKING POC
by shreyas-challa · javascriptpoc
https://github.com/shreyas-challa/CVE-2026-46395-haxcms-hmac-key-leak

This repository contains a functional proof-of-concept exploit for CVE-2026-46395, demonstrating how a broken HMAC implementation in HAXcms Node.js leaks the private key, allowing unauthenticated attackers to extract the key and forge admin-level JWTs.

Classification
Working Poc 100%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: HAXcms Node.js (versions prior to the patch)
No auth needed
Prerequisites: A running instance of HAXcms Node.js with the vulnerable version
devstral-2 · analyzed Jun 09, 2026 Full analysis →

References (1)

Core 1
Core References

Scores

CVSS v4 9.3
EPSS 0.0003
EPSS Percentile 9.1%
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-200 CWE-321 CWE-327
Status published
Products (2)
haxtheweb/haxcms-nodejs 0 - 26.0.0npm
haxtheweb/haxcms-nodejs < 26.0.0
Published Jun 05, 2026
Tracked Since Jun 06, 2026