{"id":"CVE-2026-48527","aliases":["CVE-2026-48527","GHSA-g2g8-95qg-v35h"],"related":[],"kind":"vulnerability","state":"published","title":"HaxCMS has a stored Cross-Site Scripting (XSS) bypass in saveNode endpoint","summary":"HAX CMS helps manage microsite universe with PHP or NodeJs backends. Versions up to and including 26.0.0 are affected by a stored cross-site scripting (XSS) vulnerability in the `/system/api/saveNode` endpoint. An authenticated user with a permission to edit pages can bypass the HTML sanitizer by injecting an event handler attribute without whitespace before the attribute name. @haxtheweb/haxcms-nodejs 26.0.1 and haxcms-php 26.0.2 patch the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"HAX CMS helps manage microsite universe with PHP or NodeJs backends. Versions up to and including 26.0.0 are affected by a stored cross-site scripting (XSS) vulnerability in the `/system/api/saveNode` endpoint. An authenticated user with a permission to edit pages can bypass the HTML sanitizer by injecting an event handler attribute without whitespace before the attribute name. @haxtheweb/haxcms-nodejs 26.0.1 and haxcms-php 26.0.2 patch the issue.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nHaxCMS is affected by a stored cross-site scripting (XSS) vulnerability in the `/system/api/saveNode` endpoint. An authenticated user with a permission to edit pages can bypass the HTML sanitizer by injecting an event handler attribute without whitespace before the attribute name.\n\nFor example, the sanitizer misses:\n\n```html\n<a href=\"#\"onclick=\"alert('kn1ph')\">click me</a>\n```\n\nThe important bypass is:\n\n```html\nhref=\"#\"onclick=\n```\n\nThe payload is stored in the generated page files and executes when a user clicks the injected link.\n\n## Details\n\nThe issue is caused by regex-based HTML sanitization that expects whitespace before event handler attributes. Because the sanitizer expects a pattern like:\n\n```html\nhref=\"#\" onclick=\"...\"\n```\n\nIt fails to remove an event handler when it is written without whitespace:\n\n```html\nhref=\"#\"onclick=\"...\"\n```\n\nBrowsers still parse `onclick` as a valid event handler attribute, so the JavaScript executes when the element is clicked.\n\nAffected endpoint:\n\n```text\nPOST /system/api/saveNode?site_token=[VALID_SITE_TOKEN]\n```\n\nAffected parameter:\n\n```text\nnode.body\n```\n\n## PoC\n\n1. Log in to HaxCMS and edit any existing page.\n\n2. Capture the page save request in Burp Suite:\n\n```text\nPOST /system/api/saveNode?site_token=[VALID_SITE_TOKEN]\n```\n3. In the JSON request body, modify only the `node.body` value.\n\nChange:\n```json\n\"body\":\"...existing page content...\\n\"\n```\nTo:\n```json\n\"body\":\"...existing page content...\\n<a href=\\\"#\\\"onclick=\\\"alert('kn1ph')\\\">click me</a>\\n\"\n```\n\n5. Forward the request.\n\n6. Open the edited page and click `click me`.\n\nResult:\n\nThe JavaScript will execute and the alert will pop up. \n\nIt was confirmed that the payload is stored in the generated page files, including `index.html`.\n\n## Impact\n\nAn authenticated user with permissions to edit the page can inject stored JavaScript into the page content. If a privileged user interacts with the injected element while authenticated, the attacker controlled JavaScript will execute in that user’s browser.\n\nBased on local testing, the XSS can access browser-exposed HaxCMS data such as `localStorage.jwt` and `window.appSettings`, including API paths and tokens available to the authenticated user.\n\nThis may allow an attacker to perform actions as the victim within the limits of the exposed tokens and the victim’s permissions and possibly chain more vulnerabilities.","format":"markdown","source":"ghsa"},{"lang":"es","text":"HAX CMS ayuda a gestionar el universo de micrositios con backends de PHP o NodeJs. Las versiones hasta la 26.0.0 inclusive están afectadas por una vulnerabilidad de cross-site scripting (XSS) almacenado en el endpoint `/system/api/saveNode`. Un usuario autenticado con permiso para editar páginas puede eludir el saneador HTML inyectando un atributo de gestor de eventos sin espacios en blanco antes del nombre del atributo. @haxtheweb/haxcms-nodejs 26.0.1 y haxcms-php 26.0.2 parchean el problema.","source":"nvd"}],"published":"2026-05-29T12:26:07.972Z","modified":"2026-09-10T03:50:46.852Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 26.0.1","status":"affected"}],"vendor":"haxtheweb","product":"haxcms-nodejs","source":"cvelist"},{"ranges":[{"version":"< 26.0.2","status":"affected"}],"vendor":"haxtheweb","product":"haxcms-php","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"26.0.1"}],"ecosystem":"npm","package":"@haxtheweb/haxcms-nodejs","purl":"pkg:npm/%40haxtheweb/haxcms-nodejs","source":"ghsa"}],"references":[{"url":"https://github.com/haxtheweb/issues/security/advisories/GHSA-g2g8-95qg-v35h","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48527","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/haxtheweb/issues","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-05-29T13:02:45.553Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48527","url":"https://www.cve.org/CVERecord?id=CVE-2026-48527","licence":"CVE Terms of Use","modified":"2026-05-29T13:02:50.194Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g2g8-95qg-v35h","url":"https://github.com/advisories/GHSA-g2g8-95qg-v35h","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:46.852Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48527","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48527","licence":"Public domain","modified":"2026-07-21T12:10:00.090Z"}],"updatedAt":"2026-11-25T22:59:23.306Z","epss":{"score":0.00228,"percentile":0.14501,"date":"2026-12-01T12:00:22.000Z"}}