Intel

AIKIDO-2026-880038

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

Cross-Site Scripting (XSS)GHSA-8gr3-5j6f-25gp Published 4 days ago

37

Low Risk

This Affects:

JS@novu/js
0.0.1 - 3.17.0
Fixed in 3.18.0
Are you affected? Scan for Free

TL;DR

The In-App Inbox renderer in @novu/js passes a notification redirect.url to window.open() without validating the URL scheme. A call-to-action stored through the v1 in-app workflow path can carry a javascript: URL together with a _self target, which the server maps into the notification redirect object and returns to recipients unchanged. When a recipient clicks the notification in a Chromium browser, the javascript: URL runs as stored cross-site scripting in the document origin hosting the inbox, allowing theft of session tokens and authenticated actions in that origin. The fix validates redirect URLs and targets in both the inbox API mapper and the client renderer so unsafe schemes and targets are rejected.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you render the In-App Inbox with notification redirect call-to-actions in a Chromium-based browser.

Background info

@novu/js is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 3.17.0.

How to fix this

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