Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@novu/js

Latest version: v3.21.1

Overview

Last scanned
2 Dec 2026
Published
2 Dec 2026
npm package Publisher: chmarax, himanshu-novu, letitrock, scopsy
40,454 Stars
4,577 Forks
11 Versions
1.4M Downloads
TypeScript Repo language

Scan summary

@novu/js was last scanned on 2 Dec 2026 at version 3.21.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 11 versions; the latest was published on 2 Dec 2026.
  • Findings: No rules fired in version 3.21.1.
  • Downloads: 1,372,259 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.21.1 LATEST 2 Dec 2026 No rules fired
3.21.0 23 Nov 2026 No rules fired
3.21.0-rc.e5d50580db 23 Nov 2026 No rules fired
3.20.0 16 Nov 2026 Not shown
3.20.0-rc.569d407fd0 24 Sep 2026 Not shown

No rules fired in 3.21.1

Findings

Findings for v3.21.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.21.1; other versions have their own rules, not their own score.

Known vulnerabilities

1 CVE · last 22 Sep 2026

0 CRITICAL 0 HIGH 1 MEDIUM 0 LOW

Versions

  • ≥ 3.18.0
  • < 3.18.0 1 MEDIUM

Vulnerabilities

  • CVE-2026-75510 Medium 22 Sep 2026 Novu: Stored XSS in In-App Inbox via notification redirect.url javascript: scheme Fixed in 3.18.0

README

The publisher’s own README, as collected from the registry.

Novu's JavaScript SDK

The @novu/js package provides a JavaScript SDK for building custom inbox notification experiences. The package provides a low-level API for interacting with the Novu platform In-App notifications.

Installation

Install @novu/js npm package in your app

npm install @novu/js

Getting Started

Add the below code in your application

import { Novu } from '@novu/js';

const novu = new Novu({
  applicationIdentifier: 'YOUR_NOVU_APPLICATION_IDENTIFIER',
  subscriber: 'YOUR_INTERNAL_SUBSCRIBER_ID',
});

const { data: notifications, error } = await novu.notifications.list();

|| Info: you can find the applicationIdentifier in the Novu dashboard under the API keys page.

HMAC Encryption

When HMAC encryption is enabled in your Novu environment, you need to provide both subscriberHash and optionally contextHash to secure your requests.

Subscriber HMAC

Generate a subscriber hash on your backend:

import { createHmac } from 'crypto';

const subscriberHash = createHmac('sha256', process.env.NOVU_API_KEY)
  .update(subscriberId)
  .digest('hex');

Pass it to the Novu instance:

const novu = new Novu({
  applicationIdentifier: 'YOUR_NOVU_APPLICATION_IDENTIFIER',
  subscriber: 'SUBSCRIBER_ID',
  subscriberHash: 'SUBSCRIBER_HASH_VALUE',
});
Context HMAC (Optional)

If you're using the context option to pass additional data, generate a context hash on your backend:

import { createHmac } from 'crypto';
import { canonicalize } from '@tufjs/canonical-json';

const context = { tenant: 'acme', app: 'dashboard' };
const contextHash = createHmac('sha256', process.env.NOVU_API_KEY)
  .update(canonicalize(context))
  .digest('hex');

Pass both context and contextHash to the Novu instance:

const novu = new Novu({
  applicationIdentifier: 'YOUR_NOVU_APPLICATION_IDENTIFIER',
  subscriber: 'SUBSCRIBER_ID',
  subscriberHash: 'SUBSCRIBER_HASH_VALUE',
  context: { tenant: 'acme', app: 'dashboard' },
  contextHash: 'CONTEXT_HASH_VALUE',
});

Note: When HMAC encryption is enabled and context is provided, the contextHash is required. The hash is order-independent, so {a:1, b:2} produces the same hash as {b:2, a:1}.

Socket Options

You can provide custom socket configuration options using the socketOptions parameter. These options will be merged with the default socket configuration when initializing the WebSocket connection.

Socket Type

By default, the socket type is determined automatically based on the socketUrl. You can explicitly set the socket type using the socketType option:

  • 'cloud' — uses PartySocket (default for Novu Cloud URLs)
  • 'self-hosted' — uses socket.io (default for custom/self-hosted URLs)

This is useful when proxying Novu Cloud through your own domain, where the URL no longer matches a known Novu Cloud URL but PartySocket is still required, or conversely when you need socket.io behavior with a custom URL.

const novu = new Novu({
  applicationIdentifier: 'YOUR_NOVU_APPLICATION_IDENTIFIER',
  subscriber: 'YOUR_INTERNAL_SUBSCRIBER_ID',
  socketUrl: 'wss://your-proxy.example.com/novu-socket',
  socketOptions: {
    socketType: 'cloud',
  },
});
Custom socket.io Options

When using socket.io (socketType: 'self-hosted' or a non-Cloud URL), you can pass any socket.io-client options:

const novu = new Novu({
  applicationIdentifier: 'YOUR_NOVU_APPLICATION_IDENTIFIER',
  subscriber: 'YOUR_INTERNAL_SUBSCRIBER_ID',
  socketOptions: {
    reconnectionDelay: 5000,
    timeout: 20000,
    path: '/my-custom-path',
    // ... other socket.io-client options
  },
});

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @novu/js

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229