CVE-2025-54134: @haxtheweb/haxcms nodejs Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-pjj3-j5j6-qj27
CWE-703 CWE-20 CWE-248
Published
Advisory Summary

CVE-2025-54134 is a HIGH denial of service vulnerability (CWE-703: Improper Check or Handling of Exceptional Conditions) affecting @haxtheweb/haxcms nodejs libraries in the npm ecosystem. The issue involves hax cms nodejs application has improper error handling that leads to denial of service. Remediation is available by upgrading affected packages to version 11.0.9.

CVE-2025-54134 at a Glance

CVE Identifier CVE-2025-54134
GHSA Identifier GHSA-pjj3-j5j6-qj27
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-703: Improper Check or Handling of Exceptional Conditions
Affected Product @haxtheweb/haxcms nodejs
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-54134

To remediate this vulnerability, upgrade all affected @haxtheweb/haxcms nodejs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@haxtheweb/haxcms-nodejs fixed: 11.0.9
npm install @haxtheweb/haxcms-nodejs@11.0.9
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @haxtheweb/haxcms-nodejs

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-54134, inspect your project dependencies using npm:

npm ls @haxtheweb/haxcms-nodejs

Analyze the terminal output to locate any version of @haxtheweb/haxcms nodejs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 11.0.9), your application is affected.

Note: The npm ls @haxtheweb/haxcms-nodejs command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-703: Improper Check or Handling of Exceptional Conditions, where the product does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the product. In @haxtheweb/haxcms nodejs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The HAX CMS NodeJS application crashes when an authenticated attacker provides an API request lacking required URL parameters. This vulnerability affects the `listFiles` and `saveFiles` endpoints. ### Details This vulnerability exists because the application does not properly handle exceptions which occur as a result of changes to user-modifiable URL parameters. #### Affected Resources • [listFiles.js:22](https://github.com/haxtheweb/haxcms-nodejs/blob/main/src/routes/listFiles.js#L22) listFiles() • [saveFile.js:52](https://github.com/haxtheweb/haxcms-nodejs/blob/main/src/routes/saveFile.js#L52) saveFile() • system/api/listFiles • system/api/saveFile ### PoC 1. Targeting an instance of instance of [HAX CMS NodeJS](https://github.com/haxtheweb/haxcms-nodejs), send a request without parameters to `listFiles` or `saveFiles`. The following screenshot shows the request in Burp Suite. ![listfilesrequest](https://github.com/user-attachments/assets/477ea4e0-5707-4948-b53c-7f042a0475fb) 2. The server will crash with `ERR_INVALID_ARG_TYPE`. ![listfilescrash](https://github.com/user-attachments/assets/85424c12-1619-41d3-9bf5-9e029cdaa8c1) ### Impact An authenticated attacker can deny access to the HAX CMS NodeJS application by crashing the backend server. This prevents all users from accessing the backend system. If the backend system is hosting websites, those websites will be unavailable.

CVE-2025-54134 Affected @haxtheweb/haxcms nodejs Versions

1 component(s)
Fixed Versions:
11.0.9
Product / Package Ecosystem Affected Versions Fixed Version
@haxtheweb/haxcms-nodejs
npm
< 11.0.9
11.0.9

References

Frequently Asked Questions

What is CVE-2025-54134?
CVE-2025-54134 is a security vulnerability in @haxtheweb/haxcms nodejs involving HAX CMS NodeJS Application Has Improper Error Handling That Leads to Denial of Service under CWE-703: Improper Check or Handling of Exceptional Conditions.
Which @haxtheweb/haxcms nodejs versions are affected?
Affected versions include releases prior to 11.0.9 across affected packages: @haxtheweb/haxcms-nodejs.
What version fixes CVE-2025-54134?
Upgrading to 11.0.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @haxtheweb/haxcms-nodejs affected?
Yes, @haxtheweb/haxcms-nodejs is affected in releases prior to 11.0.9. Upgrade your dependency to 11.0.9 or later.
What CWE is associated with CVE-2025-54134?
CVE-2025-54134 is classified under CWE-703: Improper Check or Handling of Exceptional Conditions (The product does not properly anticipate or handle exceptional conditions that rarely occur during normal operation of the product.).
How can I check npm dependencies for CVE-2025-54134?
Run the dependency tree command: 'npm ls @haxtheweb/haxcms-nodejs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pjj3-j5j6-qj27",
  "modified" : "2025-07-21T22:21:29Z",
  "published" : "2025-07-21T19:52:53Z",
  "aliases" : [ "CVE-2025-54134" ],
  "summary" : "HAX CMS NodeJS Application Has Improper Error Handling That Leads to Denial of Service",
  "details" : "### Summary\nThe HAX CMS NodeJS application crashes when an authenticated attacker provides an API request lacking required URL parameters. This vulnerability affects the `listFiles` and `saveFiles` endpoints.\n\n### Details\nThis vulnerability exists because the application does not properly handle exceptions which occur as a result of changes to user-modifiable URL parameters.\n\n#### Affected Resources\n• [listFiles.js:22](https://github.com/haxtheweb/haxcms-nodejs/blob/main/src/routes/listFiles.js#L22) listFiles()\n• [saveFile.js:52](https://github.com/haxtheweb/haxcms-nodejs/blob/main/src/routes/saveFile.js#L52) saveFile()\n• system/api/listFiles\n• system/api/saveFile\n\n### PoC\n1. Targeting an instance of instance of [HAX CMS NodeJS](https://github.com/haxtheweb/haxcms-nodejs), send a request without parameters to `listFiles` or `saveFiles`. The following screenshot shows the request in Burp Suite.\n![listfilesrequest](https://github.com/user-attachments/assets/477ea4e0-5707-4948-b53c-7f042a0475fb)\n\n2. The server will crash with `ERR_INVALID_ARG_TYPE`.\n![listfilescrash](https://github.com/user-attachments/assets/85424c12-1619-41d3-9bf5-9e029cdaa8c1)\n\n### Impact\nAn authenticated attacker can deny access to the HAX CMS NodeJS application by crashing the backend server. This prevents all users from accessing the backend system. If the backend system is hosting websites, those websites will be unavailable.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@haxtheweb/haxcms-nodejs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "11.0.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/haxtheweb/issues/security/advisories/GHSA-pjj3-j5j6-qj27"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-54134"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/haxtheweb/haxcms-nodejs/commit/e9773d1996233f9bafb06832b8220ec2a98bab34"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/haxtheweb/haxcms-nodejs"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/haxtheweb/haxcms-nodejs/blob/main/src/routes/listFiles.js#L22"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/haxtheweb/haxcms-nodejs/blob/main/src/routes/saveFile.js#L52"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20", "CWE-248", "CWE-703" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-21T19:52:53Z",
    "nvd_published_at" : "2025-07-21T21:15:26Z"
  }
}