Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-54134 Overview
CVE-2025-54134 is a denial-of-service vulnerability in HAX CMS NodeJS, a content management system that lets users manage microsite universes with a Node.js backend. Versions 11.0.8 and below crash when an authenticated attacker sends an API request missing required URL parameters. The flaw affects the listFiles and saveFiles endpoints and stems from unhandled exceptions on user-modifiable query parameters. The project maintainers released a fix in version 11.0.9. The weakness is classified as [CWE-20] Improper Input Validation.
Critical Impact
An authenticated attacker can crash the HAX CMS NodeJS application by issuing API requests that omit expected query parameters, disrupting availability for all users.
Affected Products
- Psu haxcms-nodejs versions 11.0.8 and below
- listFiles endpoint in src/routes/listFiles.js
- saveFiles endpoint in src/routes/saveFile.js
Discovery Timeline
- 2025-07-21 - CVE-2025-54134 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-54134
Vulnerability Analysis
The vulnerability resides in the HAX CMS NodeJS routing layer. The listFiles and saveFiles handlers read query parameters such as siteName directly from req.query and pass them into downstream functions including HAXCMS.loadSite(). When the parameter is absent or undefined, the subsequent file system and site resolution logic throws an uncaught exception. Because the Node.js process does not trap the error at the route boundary, the entire application process terminates. Any authenticated user with API access can trigger this condition on demand, producing a repeatable denial-of-service against the service and every microsite it hosts.
Root Cause
The underlying defect is improper input validation [CWE-20]. The route handlers assumed that user-controlled query parameters would always be present and well-formed. There was no guard clause verifying req.query['siteName'] before invoking HAXCMS.loadSite(), and no try/catch wrapper to contain downstream exceptions. Node.js propagates unhandled promise rejections and synchronous errors from asynchronous handlers up to the process level, which stops the server.
Attack Vector
Exploitation requires network access to the API and low-privilege authenticated credentials. No user interaction is needed. An attacker issues an HTTP request such as GET /listFiles or POST /saveFiles with the expected query parameters omitted. The handler throws, Node.js exits, and the service becomes unavailable until it is restarted. Automated restart tooling only shortens the outage window; the request can be replayed to crash the process repeatedly.
// Security patch for src/routes/listFiles.js (abbreviated)
async function listFiles(req, res) {
let files = [];
// verify that we have params expected from frontend
if (req.query && req.query['siteName']) {
let site = await HAXCMS.loadSite(req.query['siteName']);
if (site && site.siteDirectory) {
let search = (typeof req.query['filename'] !== 'undefined')
? req.query['filename']
: '';
let siteFilePath = path.join(site.siteDirectory, 'files');
let handle;
if (handle = fs.readdirSync(siteFilePath)) {
handle.forEach(file => {
if (file != "." && file != ".." && file != '.gitkeep' && file != '.DS_Store') {
if (fs.lstatSync(siteFilePath + '/' + file).isFile()) {
// ...
}
}
});
}
}
}
}
// Source: https://github.com/haxtheweb/haxcms-nodejs/commit/e9773d1996233f9bafb06832b8220ec2a98bab34
The patch wraps the route body with a guard that confirms req.query and req.query['siteName'] exist before any downstream work. Missing parameters now produce an empty response instead of an unhandled exception.
Detection Methods for CVE-2025-54134
Indicators of Compromise
- Repeated HTTP requests to /listFiles or /saveFiles that omit the siteName query parameter.
- Node.js process restarts correlated with inbound API traffic from a single authenticated session.
- Application logs showing uncaught TypeError or ReferenceError exceptions originating in src/routes/listFiles.js or src/routes/saveFile.js.
Detection Strategies
- Alert on process supervisors (systemd, pm2, Docker) restarting the haxcms-nodejs service more than once in a short window.
- Deploy web application firewall rules that flag requests to the affected endpoints lacking required parameters.
- Correlate authenticated session identifiers against crash events to identify the originating account.
Monitoring Recommendations
- Enable structured error logging and ship stack traces to a central log store for review.
- Track HTTP 5xx rates and TCP connection resets against the HAX CMS service as availability indicators.
- Monitor commits to the installed version string and alert when the deployed build falls below 11.0.9.
How to Mitigate CVE-2025-54134
Immediate Actions Required
- Upgrade haxcms-nodejs to version 11.0.9 or later from the official repository.
- Audit all authenticated API accounts and revoke credentials that are no longer required.
- Restrict network access to the HAX CMS management API to trusted administrative networks.
Patch Information
The fix is delivered in commit e9773d1996233f9bafb06832b8220ec2a98bab34 and is included in version 11.0.9. Review the GitHub Security Advisory GHSA-pjj3-j5j6-qj27 and the vendor commit for the complete diff covering both listFiles.js and saveFile.js.
Workarounds
- Place a reverse proxy or WAF in front of HAX CMS that rejects requests to /listFiles and /saveFiles without the required siteName parameter.
- Configure the Node.js process manager to auto-restart on crash and rate-limit restarts to detect abusive sessions.
- Temporarily disable the affected routes if the upgrade cannot be deployed immediately.
# Upgrade haxcms-nodejs to the patched release
npm install @haxtheweb/haxcms-nodejs@11.0.9
# Verify the installed version
npm ls @haxtheweb/haxcms-nodejs
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

