Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-46395

CRITICAL 9.3EPSS 14%

HAX CMS Vulnerable to Private Key Disclosure via Broken HMAC Implementation

Also known as GHSA-6c8g-9hfh-pq5h

Mitigation

  • Upgrade @haxtheweb/haxcms-nodejs to 26.0.0 or later.

Who should check

  • Projects that depend on npm package @haxtheweb/haxcms-nodejs (< 26.0.0)
  • Anyone running haxtheweb haxcms-nodejs < 26.0.0

Vulnerability facts

Affected
@haxtheweb/haxcms-nodejs < 26.0.0
Fixed in
26.0.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
9.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
CWE
CWE-200, CWE-321, CWE-327
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm @haxtheweb/haxcms-nodejs< 26.0.026.0.0osv
haxtheweb haxcms-nodejs< 26.0.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-46395. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-46395.md
Affected: @haxtheweb/haxcms-nodejs < 26.0.0
Fixed in: 26.0.0

Steps:
1. Search this machine and project for @haxtheweb/haxcms-nodejs (npm), haxtheweb haxcms-nodejs: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-46395 being exploited?

There is no confirmed exploitation: CVE-2026-46395 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-46395?

Critical: CVSS 9.3 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-46395?

@haxtheweb/haxcms-nodejs < 26.0.0.

Is there a fix for CVE-2026-46395?

Yes. Fixed in 26.0.0. Upgrade @haxtheweb/haxcms-nodejs to 26.0.0 or later.

How do I check if I'm affected by CVE-2026-46395?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors