{"id":"CVE-2026-46396","aliases":["CVE-2026-46396","GHSA-jh3h-rpxg-fr36"],"related":[],"kind":"vulnerability","state":"published","title":"HAX CMS has a stored XSS via <iframe> that allows access to sensitive client-side data and account takeover","summary":"HAX CMS helps manage microsite universe with PHP or NodeJs backends. A stored cross-site scripting (XSS) vulnerability exists in versions prior to 26.0.0 due to improper sanitization of `<iframe>` elements. The application allows `javascript:` URIs in the `src` attribute, which are executed when a malicious page is viewed. This enables attackers to execute arbitrary JavaScript in the context of the victim’s browser and access sensitive data exposed to client-side scripts. Version 26.0.0 fixes the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"HAX CMS helps manage microsite universe with PHP or NodeJs backends. A stored cross-site scripting (XSS) vulnerability exists in versions prior to 26.0.0 due to improper sanitization of `<iframe>` elements. The application allows `javascript:` URIs in the `src` attribute, which are executed when a malicious page is viewed. This enables attackers to execute arbitrary JavaScript in the context of the victim’s browser and access sensitive data exposed to client-side scripts. Version 26.0.0 fixes the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\nA stored cross-site scripting (XSS) vulnerability exists in HAX CMS due to improper sanitization of `<iframe>` elements.\n\nThe application allows `javascript:` URIs in the `src` attribute, which are executed when a malicious page is viewed. This enables attackers to execute arbitrary JavaScript in the context of the victim’s browser and access sensitive data exposed to client-side scripts.\n\n### Details\nSuccessful exploitation allows access to any data available in the browser context, including:\n\n- Authentication tokens (e.g., JWT)\n- Session cookies (if not protected with HttpOnly)\n- Application configuration (e.g., window.appSettings)\n- User-specific data accessible via APIs\n\nThis significantly increases the impact beyond simple script execution.\n\n### PoC\nSteps to reproduce:\n\n1. Log in to HAX CMS as any authenticated user.\n2. Create a new page or edit an existing page.\n3. Open the HTML source editor (`<>`).\n4. Insert the following payload:\n\n```html\n<iframe srcdoc=\"&lt;script&gt;\n    (function(){\n        try {\n            var jwt = parent.window.appSettings.jwt;\n            alert('Stolen JWT:\\n' + jwt);\n        } catch(e) {\n            alert('Error: ' + e.message);\n        }\n    })();\n&lt;/script&gt;\" style=\"display:none\" sandbox=\"allow-scripts allow-same-origin\"></iframe>\n```\n<img width=\"2446\" height=\"1319\" alt=\"image\" src=\"https://github.com/user-attachments/assets/daea3b41-8c72-4f6c-ab32-34c688bbd251\" />\n\n\n<img width=\"2464\" height=\"1397\" alt=\"image\" src=\"https://github.com/user-attachments/assets/911cbd42-db50-454a-b178-51555e0db79c\" />\n\n\n\n<img width=\"2466\" height=\"1409\" alt=\"webhook`\" src=\"https://github.com/user-attachments/assets/8a286435-98f4-418c-a596-d0c19556696a\" />\n\n### Impact\nThis vulnerability allows stored XSS leading to:\n\n- Execution of arbitrary JavaScript in victim browsers\n- Access to sensitive client-side data, including authentication tokens and session identifiers\n- Unauthorized API actions performed on behalf of the victim\n- Session hijacking and full account takeover\n\nBecause the application exposes authentication data in the client-side environment, exploitation of this vulnerability can lead to complete compromise of user accounts and site content.","format":"markdown","source":"ghsa"}],"published":"2026-05-19T14:46:47.000Z","modified":"2026-09-10T03:51:06.237Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 26.0.0","status":"affected"}],"vendor":"haxtheweb","product":"haxcms-nodejs","source":"cvelist"},{"ranges":[{"version":"< 26.0.0","status":"affected"}],"vendor":"haxtheweb","product":"video-player","source":"cvelist"},{"ranges":[{"version":"< 26.0.0","status":"affected"}],"vendor":"haxtheweb","product":"iframe-loader","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"26.0.0"}],"ecosystem":"npm","package":"@haxtheweb/haxcms-nodejs","purl":"pkg:npm/%40haxtheweb/haxcms-nodejs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"26.0.0"}],"ecosystem":"npm","package":"@haxtheweb/video-player","purl":"pkg:npm/%40haxtheweb/video-player","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"26.0.0"}],"ecosystem":"npm","package":"@haxtheweb/iframe-loader","purl":"pkg:npm/%40haxtheweb/iframe-loader","source":"ghsa"}],"references":[{"url":"https://github.com/haxtheweb/issues/security/advisories/GHSA-jh3h-rpxg-fr36","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46396","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-06-09T14:19:03.482Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46396","url":"https://www.cve.org/CVERecord?id=CVE-2026-46396","licence":"CVE Terms of Use","modified":"2026-06-09T14:36:27.436Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jh3h-rpxg-fr36","url":"https://github.com/advisories/GHSA-jh3h-rpxg-fr36","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:06.237Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46396","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46396","licence":"Public domain","modified":"2026-06-17T10:53:38.283Z"}],"updatedAt":"2026-11-25T22:59:23.900Z","epss":{"score":0.00286,"percentile":0.22696,"date":"2026-12-02T12:00:21.000Z"}}