CVE-2025-49137 Hax CMS Stored Cross-Site Scripting vulnerability
Attackers can inject arbitrary JavaScript via unsanitized input in Hax CMS, leading to potential session hijacking or site defacement.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-49137?
CVE-2025-49137 is a high-severity cross-site scripting vulnerability in haxtheweb issues, published on 9 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
HAX CMS PHP allows users to manage their microsite universe with a PHP backend. Prior to version 11.0.0, the 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. Although the application does not allow users to supply a `script` tag, it does allow the use of other HTML tags to run JavaScript. Version 11.0.0 fixes the issue.
Which versions are affected by CVE-2025-49137?
2 open source packages ship an affected version, including elmsln/haxcms. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
elmsln/haxcms Packagist | All versions | 11.0.0 |
elmsln/haxcms Packagist | All versions | 11.0.0 |
Products include Psu Haxcms-Nodejs, Psu Haxcms-Php.
How do I fix CVE-2025-49137?
Upgrade elmsln/haxcms to 11.0.0 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-49137 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-49137 exists.
Other vulnerabilities in haxtheweb issues
- CVE-2025-54127 HAXcms's Insecure Default Configuration Leads to Unauthenticated Access
- CVE-2025-49141 HaxCMS-PHP Command Injection Vulnerability
- CVE-2025-54378 HAX CMS Backend Lacks Comprehensive Authorization Checks
- CVE-2026-22704 HAXcms Has Stored XSS Vulnerability that May Lead to Account Takeover
- CVE-2025-54137 NodeJS version of the HAX CMS application is distributed with Default Secrets
Sources
Also known as GHSA-2vc4-3hx7-v7v7.