CVE-2025-49137: Elmsln/haxcms Cross-Site Scripting Vulnerability
HIGHCVE-2025-49137 is a HIGH (CVSS 8.5) cross-site scripting vulnerability (CWE-87: Improper Neutralization of Alternate XSS Syntax) affecting Elmsln/haxcms libraries in the Packagist ecosystem. The issue involves hax cms stored cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 11.0.0.
CVE-2025-49137 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:L/PR:L/UI:N/S:C/C:H/I:L/A:N).
How to Fix CVE-2025-49137
To remediate this vulnerability, upgrade all affected Elmsln/haxcms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade elmsln/haxcms to 11.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for elmsln/haxcms
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-49137, inspect your project dependencies for Elmsln/haxcms:
inspect dependencies for elmsln/haxcms
Analyze the terminal output to locate any version of Elmsln/haxcms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 11.0.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-87: Improper Neutralization of Alternate XSS Syntax, where the product does not neutralize or incorrectly neutralizes user-controlled input for alternate script syntax. In Elmsln/haxcms, 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-49137 Affected Elmsln/haxcms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
elmsln/haxcms
|
Packagist |
< 11.0.0
|
11.0.0
|
References
Frequently Asked Questions
What is CVE-2025-49137?
Which Elmsln/haxcms versions are affected?
What version fixes CVE-2025-49137?
Is elmsln/haxcms affected?
What is the CVSS score of CVE-2025-49137?
What CWE is associated with CVE-2025-49137?
How can I check Packagist dependencies for CVE-2025-49137?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2vc4-3hx7-v7v7",
"modified" : "2025-06-09T21:43:59Z",
"published" : "2025-06-09T17:43:37Z",
"aliases" : [ "CVE-2025-49137" ],
"summary" : "Hax CMS Stored Cross-Site Scripting vulnerability",
"details" : "### Summary\n\nThe application does not sufficiently sanitize user input, allowing for the execution of arbitrary JavaScript code. The 'saveNode' and 'saveManifest' endpoints take user input and store it in the JSON schema for the site. This content is then rendered in the generated HAX site.\n\nAlthough the application does not allow users to supply a 'script' tag, it does allow the use of other HTML tags to run JavaScript.\n\n### Affected Resources\n\n- [Operations.php:258](https://github.com/haxtheweb/haxcms-php/blob/master/system/backend/php/lib/Operations.php#L258) `saveManifest()`\n- [Operations.php:868](https://github.com/haxtheweb/haxcms-php/blob/master/system/backend/php/lib/Operations.php#L868) `saveNode()`\n- `https://<site>/<user>/system/api/saveNode`\n- `https://<site>/<user>/system/api/saveManifest`\n\n### Impact\n\nAn authenticated attacker can use the site editor and settings editor to store malicious payloads in a HAX site which execute arbitrary JavaScript when a user visits the site. This can be used to steal a user's session cookie or other sensitive data.\n\n### PoCs\n\n#### saveNode\n\nTo replicate this vulnerability, an attacker can use the \"View Source\" functionality within the site editor to enter a malicious payload.\n\n1. Select \"View Source\" within the HAX site editor and enter an XSS payload that does not use the \"script\" HTML tag.\n\n\n\n3. Select \"Update HTML\" and observe the resulting alert.\n\n\n\n\n\n#### saveManifest\n\nTo exploit the 'SaveManifest' endpoint, an attacker can insert executable code into the URL field of the site settings editor: any payload added this way will execute when the site is loaded.\n\n1. Open the site settings editor.\n\n\n\n3. Add JavaScript code to the URL field under the \"Theme\" header.\n\n\n\n5. Reload the page to run the script.\n\n\n\n7. The resulting page source will contain the script.\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "elmsln/haxcms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "11.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/haxtheweb/issues/security/advisories/GHSA-2vc4-3hx7-v7v7"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49137"
}, {
"type" : "WEB",
"url" : "https://github.com/haxtheweb/haxcms-php/commit/0dd3e98fe2fadd0793b667d4af2aac230980e0f8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/haxtheweb/issues"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79", "CWE-80", "CWE-87" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-09T17:43:37Z",
"nvd_published_at" : "2025-06-09T21:15:46Z"
}
}