Skip to main content

@beproduct/nestjs-auth CVE-2026-46412

| EUVDEUVD-2026-45992 CRITICAL
Embedded Malicious Code (CWE-506)
2026-05-19 https://github.com/BeProduct/beproduct-org-nestjs-auth GHSA-6xwp-cp5h-q856
10.0
CVSS 3.1 · Vendor: https://github.com/BeProduct/beproduct-org-nestjs-auth
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker steals NPM_TOKEN via prior worm infection
  2. Delivery
    Publish malicious 0.1.2-0.1.19 to npm registry
  3. Exploit
    Victim runs npm install resolving affected version
  4. Install
    postinstall script executes Node.js payload
  5. C2
    Harvest npm/GitHub/AWS/Vault credentials and probe metadata endpoint
  6. Execute
    Write .claude and .vscode IDE-hook persistence
  7. Impact
    Exfiltrate secrets to filev2.getsession.org and propagate worm

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Code review, malicious code detection
Exploitation Conditions

Exploitation required the victim to run npm install (or any command that triggers package installation, including yarn add, pnpm add, or a CI pipeline restoring dependencies) such that semver resolution selected a version in the range >= 0.1.2, <= 0.1.19 during the active publication window of 2026-05-11 20:19 to 2026-05-12 ~14:12 UTC. Installs with --ignore-scripts set would not have executed the postinstall payload. Hosts that never resolved a malicious version (e.g., locked to 0.1.1 in package-lock.json, or first install occurring after npm Security's removal) are not affected. Maximum impact required the install host to also contain harvestable secrets in standard locations (~/.npmrc, ~/.aws/credentials, env vars) or access to the AWS metadata endpoint or in-cluster Vault - clean, ephemeral developer machines with no credentials would execute the payload but yield little to the attacker.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H is appropriate for a supply-chain RCE: any unauthenticated network actor (the attacker, via npm) can trigger code execution on a victim host with low complexity and no user interaction beyond a routine install, and the scope changes from the package process to the host's broader credential store. Real-world risk is bounded by time-of-window exposure: the malicious versions were live for only ~18 hours before npm Security removed them on 2026-05-12, so the population at risk is anyone whose npm install resolved into the 0.1.2-0.1.19 range during that window (including CI runs with cached lockfiles that pinned a malicious version). No EPSS, KEV, or SSVC data is provided in the input; however, this is confirmed actively exploited (the malicious publish itself was the exploitation event, witnessed and documented by Aikido and BeProduct). The risk is high but largely retrospective - secondary risk continues for any host that installed during the window and has not yet rotated credentials or removed persistence artefacts in .claude/ and .vscode/.

Exploit ScenarioDerived

A developer or CI job runs npm install @beproduct/nestjs-auth (directly or as a transitive dependency) during the 2026-05-11 publish window and resolves to a version in 0.1.2-0.1.19; npm executes the malicious postinstall script, which reads ~/.npmrc, ~/.aws/credentials, environment variables, and probes the cloud instance-metadata endpoint and Vault, then exfiltrates the collected secrets to filev2.getsession.org. Persistence hooks under .claude/ and .vscode/ re-execute the payload the next time the developer opens the project, and harvested npm tokens enable the worm to publish further malicious versions under the victim's publisher account (the wormable behaviour that gives Mini Shai-Hulud its name). Confirmed actively exploited via the live malicious publish event documented by Aikido Security and BeProduct.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 19, 2026

Supply-chain compromise of the npm package @beproduct/nestjs-auth (versions 0.1.2 through 0.1.19) delivered the Mini Shai-Hulud worm payload via a malicious postinstall script, harvesting npm, GitHub, AWS, and HashiCorp Vault credentials from any developer or CI host that ran npm install during a 2h37m publication window on 2026-05-11. Confirmed actively exploited during that window via an attacker-controlled npm publish token; clean version 0.1.20 republishes the original 0.1.1 source tree. CVSS 10.0 reflects the unauthenticated, network-driven supply-chain delivery and scope change into the install environment.

RemediationAI

Vendor-released patch: @beproduct/nestjs-auth 0.1.20 - uninstall any version in the affected range (npm uninstall @beproduct/nestjs-auth), purge the npm cache (npm cache clean --force), then install 0.1.20 explicitly. Treat any host that installed a malicious version as compromised: rotate every credential that was reachable from the install environment, including npm publish tokens at https://www.npmjs.com/settings/<you>/tokens, GitHub PATs and OAuth tokens at https://github.com/settings/tokens and https://github.com/settings/applications, AWS access keys (and revoke any IAM role credentials the EC2 metadata endpoint could have leaked), and HashiCorp Vault tokens. Scan filesystems and committed repository history for the IoC files tanstack_runner.js, router_init.js, router_runtime.js, setup.mjs, and unexpected additions under .claude/ or .vscode/ - the worm is known to commit these into PR branches via automated agent runtimes. If any IoCs are found, reimage rather than clean in place because IDE-hook persistence can re-execute on the next folder open. Compensating controls for environments that cannot immediately patch: pin lockfiles to 0.1.1 or 0.1.20, set npm install --ignore-scripts in CI to suppress postinstall execution (side effect: legitimate native-module builds may fail and need manual rebuild), and segregate publish tokens so a single compromised runtime cannot publish across the whole publisher namespace. See https://github.com/advisories/GHSA-6xwp-cp5h-q856 and https://www.aikido.dev/blog/mini-shai-hulud-is-back-tanstack-compromised.

Affected VersionsENISA

beproduct-org-nestjs-auth 0.1.2, ≤ 0.1.19

Affected Packages

npm @beproduct/nestjs-auth no fix
euvd beproduct_org_nestjs_auth_0_1_2 no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a malicious code insertion (CWE-506, Embedded Malicious Code) into a Node.js library distributed via the public npm registry under pkg:npm/@beproduct_nestjs-auth. The attack abuses npm's lifecycle hooks - specifically the postinstall script - which executes arbitrary Node.js code on the install host before the developer has loaded any of the package's API. The payload is part of the Mini Shai-Hulud worm family documented by Aikido Security, which probes the AWS instance metadata endpoint (169.254.169.254), the npm tokens API (registry.npmjs.org/-/npm/v1/tokens), and Vault cluster endpoints (vault.svc.cluster.local:8200), then exfiltrates to filev2.getsession.org. It also writes persistence artefacts (tanstack_runner.js, router_init.js, setup.mjs) and hooks into developer IDE configurations via .claude/settings.json SessionStart hooks and .vscode/tasks.json folderOpen tasks to re-execute on subsequent IDE sessions.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/BeProduct/beproduct-org-nestjs-auth) PRIMARY 10.0 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Primary rating from Vendor (https://github.com/BeProduct/beproduct-org-nestjs-auth) · only source for this CVE.

CVSS VectorVendor: https://github.com/BeProduct/beproduct-org-nestjs-auth

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

Summary

Between 2026-05-11 20:19 UTC and 22:56 UTC, an attacker used a compromised npm publish token to publish 18 malicious versions of @beproduct/nestjs-auth (0.1.2 through 0.1.19). The packages contained payloads from the Mini Shai-Hulud npm supply-chain worm campaign described by Aikido Security.

npm Security removed the malicious versions from the registry shortly after publication, but anyone who ran npm install @beproduct/nestjs-auth resolving to any version in the affected range during that window executed the malicious postinstall script and is potentially compromised.

Version 0.1.20 is a clean republish from the original 0.1.1 source tree.

Impact

The postinstall payload attempted to harvest:

  • npm tokens (from ~/.npmrc)
  • GitHub personal access tokens, OAuth tokens (gho_*), and Actions OIDC tokens
  • AWS credentials (from environment variables and ~/.aws/credentials)
  • HashiCorp Vault tokens
  • Other secrets present in environment variables

Exfiltration target: https://filev2.getsession.org. The worm also wrote persistence artefacts (tanstack_runner.js, router_init.js, setup.mjs, plus IDE-hook configurations in .claude/ and .vscode/) into the developer's working tree where the malicious install ran.

Indicators of compromise

TypeValue
File name (payload)tanstack_runner.js, router_init.js, router_runtime.js
SHA-256 (tanstack_runner.js)2ec78d556d696e208927cc503d48e4b5eb56b31abc2870c2ed2e98d6be27fc96
SHA-256 (router_init.js)ab4fcadaec49c03278063dd269ea5eef82d24f2124a8e15d7b90f2fa8601266c
Exfil endpointfilev2.getsession.org
Cloud metadata probe169.254.169.254/latest/meta-data/iam/security-credentials/
npm token endpointregistry.npmjs.org/-/npm/v1/tokens
Vault probevault.svc.cluster.local:8200
IDE hook pattern.claude/settings.json SessionStart hook + .vscode/tasks.json runOn: "folderOpen" running node .claude/setup.mjs or node .vscode/setup.mjs

Mitigation

If you installed any version in the range >=0.1.2 <=0.1.19:

  1. Remove the package and clean the npm cache:
bash
   npm uninstall @beproduct/nestjs-auth
   npm cache clean --force
  1. Install the clean version:
bash
   npm install @beproduct/nestjs-auth@0.1.20
  1. Rotate every credential present in the install environment, including:
  • All npm publish tokens (https://www.npmjs.com/settings/<you>/tokens)
  • All GitHub PATs and OAuth tokens (https://github.com/settings/applications + https://github.com/settings/tokens)
  • AWS access keys
  • HashiCorp Vault tokens
  • Any other secret that was in env vars or config files at install time
  1. Scan affected hosts for the indicators of compromise above. If any are found, treat the host as compromised and reimage.
  2. Check committed repository history for unexpected additions in .claude/ or .vscode/ directories - the worm is known to commit setup.mjs + hook configs to PR branches via automated agent runtimes.

Timeline (UTC)

TimeEvent
2026-05-11 20:19:43First malicious version (0.1.2) published
2026-05-11 22:56:39Final malicious version (0.1.19) published - 18 versions in 2h37m
2026-05-12 ~14:12npm Security removes the malicious versions from the registry
2026-05-13BeProduct discovers the incident via Aikido's public disclosure
2026-05-14Compromised npm publish token revoked; BeProduct GitHub OAuth credentials rotated
2026-05-14Clean release 0.1.20 published; this advisory filed

Root cause

The compromised npm publish token was harvested by a Mini-Shai-Hulud-infected transitive dependency in an automated GitHub coding-agent runtime that had read access to the NPM_TOKEN GitHub Actions secret for an unrelated repository under the same npm publisher account. The publish itself was performed by the attacker against the public npm registry; the source repository for this package was not modified by the attacker.

References

  • https://www.aikido.dev/blog/mini-shai-hulud-is-back-tanstack-compromised
  • https://www.aikido.dev/blog/checklist-github-actions

Executive ViewAI

Why It Matters

The npm package @beproduct/nestjs-auth versions 0.1.2-0.1.19 distributed malicious code via a supply-chain attack on 2026-05-11 that harvested AWS, GitHub, Vault, and npm credentials from any developer or CI system running npm install. Any organization using this package during that window has had complete development environment credentials compromised, granting attackers potential access to source code repositories, cloud infrastructure, and internal secrets. Immediate credential rotation and dependency remediation are required to prevent downstream compromise.

Business Impact: Severe
Compensating Controls

Upgrade to @beproduct/nestjs-auth version 0.1.20 immediately. If immediate upgrade is not feasible, isolate affected systems from network access and rotate all development credentials (AWS, GitHub, Vault, npm tokens) as interim mitigation until version 0.1.20 is deployed.

Threat Intelligence Overview

EPSS Score
0.1%
Top 78% exploitable
Threat Intel
2
1 sources
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy