GitHub Advisoryadvisory · npm
GHSA-jh3h-rpxg-fr36 Stored XSS via <iframe> in HAX CMS allows access to sensitive client-side data and account takeover
HIGH
Official page ↗
- Aliases
- CVE-2026-46396
- Ecosystem
- npm
- Packages
- @haxtheweb/haxcms-nodejs, @haxtheweb/video-player, @haxtheweb/iframe-loader
- Severity
- High
- CVSS 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
- Weaknesses
- CWE-79
- Reviewed
- 2026-05-19
Affected packages
• npm @haxtheweb/haxcms-nodejs: < 26.0.0 → fixed in 26.0.0
• npm @haxtheweb/video-player: < 26.0.0 → fixed in 26.0.0
• npm @haxtheweb/iframe-loader: < 26.0.0 → fixed in 26.0.0
Description
Summary
A stored cross-site scripting (XSS) vulnerability exists in HAX CMS due to improper sanitization of `` 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.
Details
Successful exploitation allows access to any data available in the browser context, including:
• Authentication tokens (e.g., JWT)
• Session cookies (if not protected with HttpOnly)
• Application configuration (e.g., window.appSettings)
• User-specific data accessible via APIs
This significantly increases the impact beyond simple script execution.
PoC
Steps to reproduce:
1. Log in to HAX CMS as any authenticated user.
2. Create a new page or edit an existing page.
3. Open the HTML source editor (`<>`).
4. Insert the following payload:
```html
```
Impact
This vulnerability allows stored XSS leading to:
• Execution of arbitrary JavaScript in victim browsers
• Access to sensitive client-side data, including authentication tokens and session identifiers
• Unauthorized API actions performed on behalf of the victim
• Session hijacking and full account takeover
Because 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.
Related
Alias · CVE (1)
- CVE-2026-46396 HAX CMS helps manage microsite universe with PHP or NodeJs backends. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness