| Package | Affected versions | Patched versions |
|---|---|---|
| @haxtheweb/haxcms-nodejs | < 26.0.0 | 26.0.0 |
| @haxtheweb/iframe-loader | < 26.0.0 | 26.0.0 |
| @haxtheweb/video-player | < 26.0.0 | 26.0.0 |
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.
Successful exploitation allows access to any data available in the browser context, including:
This significantly increases the impact beyond simple script execution.
Steps to reproduce:
<>).<iframe srcdoc="<script>
(function(){
try {
var jwt = parent.window.appSettings.jwt;
alert('Stolen JWT:\n' + jwt);
} catch(e) {
alert('Error: ' + e.message);
}
})();
</script>" style="display:none" sandbox="allow-scripts allow-same-origin"></iframe>
<img width="2446" height="1319" alt="image" src="https://github.com/user-attachments/assets/daea3b41-8c72-4f6c-ab32-34c688bbd251" />
<img width="2464" height="1397" alt="image" src="https://github.com/user-attachments/assets/911cbd42-db50-454a-b178-51555e0db79c" />
<img width="2466" height="1409" alt="webhook`" src="https://github.com/user-attachments/assets/8a286435-98f4-418c-a596-d0c19556696a" />
This vulnerability allows stored XSS leading to:
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.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free