Intel

AIKIDO-2025-10891

@novu/framework is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

43

Medium Risk

This Affects:

JS@novu/framework
2.5.2 - 2.8.0
Fixed in 2.9.0

TL;DR

Affected versions of this package are vulnerable to Cross-Site Scripting (XSS) via Unsanitized Img Tag Event Handlers, where the HTML sanitizer's previous configuration (allowedAttributes: false) for img elements improperly allowed dangerous event handler attributes like onerror, onload, and onclick. This flaw enables attackers to inject malicious img tags with such event handlers, executing arbitrary JavaScript when triggered, for instance, using onerror to run code upon failed image loading, which can lead to session hijacking, data theft, or other malicious actions in the victim's browser.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@novu/framework is vulnerable to Cross-Site Scripting (XSS) in versions 2.5.2 - 2.8.0.

How to fix this

Upgrade the @novu/framework library to the patch version.