GHSA-jh3h-rpxg-fr36

Suggest an improvement
Source
https://github.com/advisories/GHSA-jh3h-rpxg-fr36
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-jh3h-rpxg-fr36/GHSA-jh3h-rpxg-fr36.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jh3h-rpxg-fr36
Aliases
  • CVE-2026-46396
Published
2026-05-19T14:46:47Z
Modified
2026-09-10T03:51:06Z
Severity
  • 8.6 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Stored XSS via <iframe> in HAX CMS allows access to sensitive client-side data and account takeover
Details

Summary

A stored cross-site scripting (XSS) vulnerability exists in HAX CMS 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.

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:
<iframe srcdoc="&lt;script&gt;
    (function(){
        try {
            var jwt = parent.window.appSettings.jwt;
            alert('Stolen JWT:\n' + jwt);
        } catch(e) {
            alert('Error: ' + e.message);
        }
    })();
&lt;/script&gt;" style="display:none" sandbox="allow-scripts allow-same-origin"></iframe>
image image

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.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-05-19T14:46:47Z",
    "nvd_published_at":  "2026-06-05T19:16:33Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / @haxtheweb/haxcms-nodejs

Package

Name
@haxtheweb/haxcms-nodejs
View open source insights on deps.dev
Purl
pkg:npm/%40haxtheweb/haxcms-nodejs

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
26.0.0

Database specific

last_known_affected_version_range
"<= 25.0.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-jh3h-rpxg-fr36/GHSA-jh3h-rpxg-fr36.json"

npm / @haxtheweb/video-player

Package

Name
@haxtheweb/video-player
View open source insights on deps.dev
Purl
pkg:npm/%40haxtheweb/video-player

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
26.0.0

Database specific

last_known_affected_version_range
"<= 25.0.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-jh3h-rpxg-fr36/GHSA-jh3h-rpxg-fr36.json"

npm / @haxtheweb/iframe-loader

Package

Name
@haxtheweb/iframe-loader
View open source insights on deps.dev
Purl
pkg:npm/%40haxtheweb/iframe-loader

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
26.0.0

Database specific

last_known_affected_version_range
"<= 25.0.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-jh3h-rpxg-fr36/GHSA-jh3h-rpxg-fr36.json"