{"id":"CVE-2025-54128","aliases":["CVE-2025-54128","GHSA-59g8-h59f-8hjp"],"related":[],"kind":"vulnerability","state":"published","title":"HAX CMS NodeJs's Disabled Content Security Policy Enables Cross-Site Scripting","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"HAX CMS NodeJs permite a los usuarios gestionar su universo de micrositios con un backend NodeJs. En las versiones 11.0.7 y anteriores, la versión NodeJS de HAX CMS tiene desactivada  Content Security Policy (CSP). Esta configuración no es segura para una aplicación de producción, ya que no protege contra ataques de cross-site-scripting. El valor contentSecurityPolicy está desactivado explícitamente en la configuración de Helmet de la aplicación, en app.js. Esto se ha corregido en la versión 11.0.8.","source":"nvd"}],"published":"2025-07-21T19:51:14.000Z","modified":"2026-06-17T09:39:30.050Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 11.0.8","status":"affected"}],"vendor":"haxtheweb","product":"issues","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"11.0.8"}],"ecosystem":"npm","package":"@haxtheweb/haxcms-nodejs","purl":"pkg:npm/%40haxtheweb/haxcms-nodejs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"11.0.8"}],"vendor":"psu","product":"haxcms-nodejs","cpe":"cpe:2.3:a:psu:haxcms-nodejs:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/haxtheweb/issues/security/advisories/GHSA-59g8-h59f-8hjp","tags":["third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/haxtheweb/haxcms-nodejs/commit/ddb9351c6d6418008d4084a5b17fd6d611bc4e30","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54128","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/haxtheweb/haxcms-nodejs","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-07-22T20:43:42.705Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54128","url":"https://www.cve.org/CVERecord?id=CVE-2025-54128","licence":"CVE Terms of Use","modified":"2025-07-22T20:43:50.054Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-59g8-h59f-8hjp","url":"https://github.com/advisories/GHSA-59g8-h59f-8hjp","licence":"CC-BY-4.0","modified":"2025-07-21T22:21:25.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54128","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54128","licence":"Public domain","modified":"2026-06-17T09:39:30.050Z"}],"updatedAt":"2026-11-25T22:59:01.550Z","epss":{"score":0.0023,"percentile":0.14839,"date":"2026-12-01T12:00:22.000Z"}}