HAX CMS Vulnerable to Private Key Disclosure via Broken HMAC Implementation
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure, Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200 and CWE-321.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| haxtheweb | haxcms-nodejs | before 26.0.0 | 26.0.0 | Patch available | CNA |
| — | @haxtheweb/haxcms-nodejs (npm) | before 26.0.0 | 26.0.0 | Patch available | GHSA-6c8g-9hfh-pq5h |
- haxcms-nodejs Vendorhaxtheweb Affected before 26.0.0 Fixed in 26.0.0 Patch available CNA
- @haxtheweb/haxcms-nodejs (npm) Vendor— Affected before 26.0.0 Fixed in 26.0.0 Patch available GHSA-6c8g-9hfh-pq5h
Remediation
- Fix · CNA haxcms-nodejs (haxtheweb) Fixed in 26.0.0
- Fix · GHSA-6c8g-9hfh-pq5h @haxtheweb/haxcms-nodejs (npm) Fixed in 26.0.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-46395
- 2026-10-03 Alias added: GHSA-6c8g-9hfh-pq5h
References
More haxtheweb vulnerabilities
- TI-2026-34105 HAX open-apis: Credential Theft via Server-Side Request Forgery (SSRF) in open-apis CVSS 4.0HIGH 8.7
- TI-2026-27339 HAX CMS's public /server-status endpoint exposes authentication tokens, user activity, and client IP addresses CVSS 4.0HIGH 8.7
- TI-2026-34113 Authenticated Remote Code Execution via File Overwrite CVSS 4.0CRITICAL 9.4
- TI-2025-23152 HAX CMS PHP allows Insecure File Upload to Lead to Remote Code Execution CVSS 3.1CRITICAL 10.0
- TI-2026-34194 HAX CMS: Stored XSS via '<video-player>' component allows arbitrary JavaScript execution and token theft CVSS 4.0CRITICAL 9.3
- TI-2026-34110 HAX CMS has a stored XSS via <iframe> that allows access to sensitive client-side data and account takeover CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-46395 · CVE Program
- CVE-2026-46395 · NVD
- FIRST EPSS
- GHSA-6c8g-9hfh-pq5h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences