Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-46395— HAX CMS Vulnerable to Private Key Disclosure via Broken HMAC Implementation

Quick assessment

Affected
haxtheweb haxcms-nodejs
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

HAXCMS是HAX The Web开源的一个内容管理系统。 HAX CMS Node.js 26.0.0之前版本存在安全漏洞,该漏洞源于hmacBase64函数存在两个加密实现错误,可能导致未认证攻击者提取系统私钥并伪造任意管理员级JWT令牌,通过单个HTTP请求获取完全管理员访问权限。

AI Predicted 9.8 Difficulty: Trivial EPSS 0.29% · P19

Affected Version Matrix 1

VendorProduct Version RangeStatus
haxtheweb haxcms-nodejs < 26.0.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-46395

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
HAX CMS Vulnerable to Private Key Disclosure via Broken HMAC Implementation
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
信息暴露
Source: CVE Program / CVE List V5
Vulnerability Title
HAXCMS 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
HAXCMS是HAX The Web开源的一个内容管理系统。 HAX CMS Node.js 26.0.0之前版本存在安全漏洞,该漏洞源于hmacBase64函数存在两个加密实现错误,可能导致未认证攻击者提取系统私钥并伪造任意管理员级JWT令牌,通过单个HTTP请求获取完全管理员访问权限。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
haxtheweb haxcms-nodejs < 26.0.0 -

II. Public POCs for CVE-2026-46395

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-46395

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-46395 (1)

Same Patch Batch · haxtheweb · 2026-06-05 · 16 CVEs total

CVE-2026-46392 8.7 HIGH HAX CMS PHP Has a Stored XSS via Case-Sensitivity Mismatch in HTML Upload Validation
CVE-2026-46493 7.5 HIGH haxtheweb/haxcms-php uses insecure method for generating salt
CVE-2026-46357 6.5 MEDIUM HAX CMS NodeJS application Vulnerable to Denial of Service using Malicious Import Request
CVE-2026-46397 6.5 MEDIUM haxcms-php Local File Inclusion via saveOutline API Location Parameter v2.0
CVE-2026-46396 HAX CMS has a stored XSS via <iframe> that allows access to sensitive client-side data and
CVE-2026-46401 HAX CMS PHP has Insufficient Session Expiration
CVE-2026-46390 HAX CMS has Unauthenticated Git Access via User-Controlled Key
CVE-2026-46394 HAX CMS Vulnerable to Command Injection using Git.php
CVE-2026-46496 HAX CMS: Stored XSS via '<video-player>' component allows arbitrary JavaScript execution a
CVE-2026-46398 HAX CMS Missing Secure Flag on Cookie
CVE-2026-46511 HAXcms: Mass Token Exfiltration and Cross-Tenant Hijack
CVE-2026-46400 HAXCMS PHP has a File Upload Validation Bypass
CVE-2026-46391 HAX open-apis: Credential Theft via Server-Side Request Forgery (SSRF) in open-apis
CVE-2026-46393 HAXcms createSite SSRF Enables Arbitrary File Read
CVE-2026-46399 Authenticated Remote Code Execution via File Overwrite

IV. Related Vulnerabilities

V. Comments for CVE-2026-46395

No comments yet


Leave a comment