CVE-2025-54128: HAX CMS NodeJs's Disabled Content Security Policy Enables Cross-Site Scripting
Summary The NodeJS version of HAX CMS has a disabled Content Security Policy (CSP). This configuration is insecure for a production application because it does not protect against cross-site-scripting attacks.
Details The contentSecurityPolicy value is explicitly disabled in the application's Helmet configuration in app.js.
!permissive-csp-code
Affected Resources - app.js:52
PoC To reproduce this vulnerability, install HAX CMS NodeJS. The application will load without a CSP configured.
Impact In conjunction with an XSS vulnerability, an attacker could execute arbitrary scripts and exfiltrate data, including session tokens and sensitive local data.
Additional Information - OWASP: Content Security Policy
Other sources
HAX CMS NodeJs allows users to manage their microsite universe with a NodeJs backend. In versions 11.0.7 and below, the NodeJS version of HAX CMS has a disabled Content Security Policy (CSP). This configuration is insecure for a production application because it does not protect against cross-site-scripting attacks. The contentSecurityPolicy value is explicitly disabled in the application's Helmet configuration in app.js. This is fixed in version 11.0.8.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-54128?
CVE-2025-54128 is considered a high severity vulnerability due to the potential for cross-site scripting attacks.
How do I fix CVE-2025-54128?
To fix CVE-2025-54128, upgrade to version 11.0.8 or later of the @haxtheweb/haxcms-nodejs package.
What applications are affected by CVE-2025-54128?
CVE-2025-54128 affects all versions of @haxtheweb/haxcms-nodejs prior to 11.0.8.
What types of attacks can CVE-2025-54128 expose my application to?
CVE-2025-54128 can expose your application to cross-site scripting (XSS) attacks due to the disabled Content Security Policy.
Is it safe to use @haxtheweb/haxcms-nodejs without a Content Security Policy?
No, using @haxtheweb/haxcms-nodejs without a Content Security Policy is unsafe and increases the risk of XSS vulnerabilities.