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

@nathapp/nestjs-notification

Latest version: v4.6.1

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: skywills87
16 Versions
1.7K Downloads

Scan summary

@nathapp/nestjs-notification was last scanned on 27 Nov 2026 at version 4.6.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 16 versions; the latest 5 were published within 6 days (22–27 Nov 2026).
  • Findings: No rules fired in version 4.6.1.
  • Downloads: 1,670 downloads.

Versions

16 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.6.1 LATEST 27 Nov 2026 No rules fired
4.6.0 27 Nov 2026 No rules fired
4.5.1 24 Nov 2026 No rules fired
4.5.0 23 Nov 2026 Not shown
4.4.0 22 Nov 2026 Not shown

No rules fired in 4.6.1

Findings

Findings for v4.6.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 4.6.1; other versions have their own rules, not their own score.

README

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

@nathapp/nestjs-notification

Multi-channel notification library for NestJS — Email, SMS, WhatsApp, and Push — with a consistent abstract-provider extension model per channel.

Installation

npm install @nathapp/nestjs-notification

This package is part of the @nathapp/nestjs-* peer-layer stack and builds on @nathapp/nestjs-common.

Channels

Every channel follows the same pattern: an abstract XxxProvider base class that external packages/consumers extend, and an injectable XxxService wrapper that consumers inject and that resolves the provider via its DI token.

Channel Provider base class Service Injection token
email EmailProvider EmailService EMAIL_PROVIDER
sms SmsProvider SmsService SMS_PROVIDER
whatsapp WhatsAppProvider WhatsAppService WHATSAPP_PROVIDER
push PushNotificationProvider PushNotificationService PUSH_NOTIFICATION_PROVIDERS

Push is special-cased: it supports multiple simultaneous providers (e.g. Android + iOS + Huawei) via ProviderManager, and providers additionally implement sendMulticast(tokens, message) for efficient batch sends. Push also has IUserTokenStore / UserTokenStore for mapping users to device tokens (InMemoryUserTokenStore ships as the default).

Providers

SmtpEmailProvider (nodemailer-backed) and FCMPushNotificationProvider (Firebase Cloud Messaging) are built in for convenience. Concrete third-party providers for other services live in separate packages — @nathapp/nestjs-notification-twilio, @nathapp/nestjs-notification-sns, @nathapp/nestjs-notification-brevo, @nathapp/nestjs-notification-ses, @nathapp/nestjs-notification-twilio-whatsapp — each exporting a class that extends the corresponding XxxProvider base class from this package.

A templating system (TemplateService, TemplateLoader, TemplateEngine) is also included, with {{variable}}-style interpolation via StringFormatEngine (not Handlebars/EJS) and a FakeTemplateLoader default.

Usage

import { Module } from '@nestjs/common';
import { NotificationModule, SmtpEmailProvider } from '@nathapp/nestjs-notification';
import { ConfigModule, ConfigService } from '@nestjs/config';

@Module({
  imports: [
    NotificationModule.forRootAsync({
      imports: [ConfigModule],
      inject: [ConfigService],
      useFactory: (config: ConfigService) => ({
        providers: [
          {
            channel: 'email',
            provider: SmtpEmailProvider,
            options: { url: config.get('SMTP_URL'), from: 'noreply@app.com' },
          },
        ],
      }),
    }),
  ],
})
export class AppModule {}

Consuming a channel service elsewhere in the app:

import { Injectable } from '@nestjs/common';
import { EmailService } from '@nathapp/nestjs-notification';

@Injectable()
export class WelcomeMailer {
  constructor(private readonly email: EmailService) {}

  async send(to: string) {
    return this.email.send({
      recipient: to,
      subject: 'Welcome',
      message: '<p>Thanks for signing up!</p>',
    });
  }
}

Extending a channel with a custom provider (or wiring one of the @nathapp/nestjs-notification-* packages):

import { EmailProvider, EmailMessage, SendResult } from '@nathapp/nestjs-notification';

export class MailgunEmailProvider extends EmailProvider {
  get supportsAttachments() { return true; }

  async send(message: EmailMessage): Promise<SendResult> {
    // call the Mailgun API
    return { success: true, requestId: '...' };
  }
}

Templating and HTML escaping

Template interpolation is handled by a TemplateEngine (StringFormatEngine by default). Two hardening rules apply when TemplateLoader.resolve renders a template:

  • The subject field is never HTML-escaped — it is a header line, not HTML content.
  • The content field is HTML-escaped by default. Pass escapeHtml: false in the ResolveOption to render raw (for plain-text channels).

The channel services already pick the right setting for you: sendEmail resolves templates with the default escaping (HTML content), while sendPushNotification, sendPushNotificationMulticast, sendSms and sendWhatsApp always resolve with escapeHtml: false since those channels deliver plain text. Only pass escapeHtml yourself when resolving templates directly (e.g. via TemplateService).

Placeholder lookup reads own data properties only. Inherited properties, accessors, and function values render as empty strings without being invoked, including when render arguments contain class instances. Primitive values, Date, and Map leaves keep their documented display behavior; other objects do not run custom conversion hooks during rendering.

Note: InMemoryUserTokenStore.getUserDeviceToken returns the newest device token saved for a user, so pushes after a re-install target the fresh token.

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 @nathapp/nestjs-notification

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

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229