{"id":"GHSA-59g8-h59f-8hjp","summary":"NodeJS version of HAX CMS Has Disabled Content Security Policy That Enables Cross-Site Scripting","details":"### Summary\nThe 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.\n\n### Details\nThe `contentSecurityPolicy` value is explicitly disabled in the application's Helmet configuration in `app.js`.\n\n![permissive-csp-code](https://github.com/user-attachments/assets/8ec6c63c-9f9f-413e-be7e-ed14913da91c)\n\n#### Affected Resources\n- [app.js:52](https://github.com/haxtheweb/haxcms-nodejs/blob/b1f95880b42fea6ed07855b5804b29b182ec5e07/src/app.js#L52)\n\n### PoC\nTo reproduce this vulnerability, [install](https://github.com/haxtheweb/haxcms-nodejs) HAX CMS NodeJS. The application will load without a CSP configured.\n\n### Impact\nIn conjunction with an XSS vulnerability, an attacker could execute arbitrary scripts and exfiltrate data, including session tokens and sensitive local data.\n\n#### Additional Information\n- [OWASP: Content Security Policy](https://cheatsheetseries.owasp.org/cheatsheets/Content_Security_Policy_Cheat_Sheet.html)","aliases":["CVE-2025-54128"],"modified":"2025-07-21T22:21:25Z","published":"2025-07-21T19:51:14Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2025-07-21T19:51:14Z","nvd_published_at":"2025-07-21T21:15:26Z","cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"https://github.com/haxtheweb/issues/security/advisories/GHSA-59g8-h59f-8hjp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54128"},{"type":"WEB","url":"https://github.com/haxtheweb/haxcms-nodejs/commit/ddb9351c6d6418008d4084a5b17fd6d611bc4e30"},{"type":"PACKAGE","url":"https://github.com/haxtheweb/haxcms-nodejs"}],"affected":[{"package":{"name":"@haxtheweb/haxcms-nodejs","ecosystem":"npm","purl":"pkg:npm/%40haxtheweb/haxcms-nodejs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"11.0.8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/07/GHSA-59g8-h59f-8hjp/GHSA-59g8-h59f-8hjp.json","last_known_affected_version_range":"\u003c= 11.0.7"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:L/SI:L/SA:N"}]}