Skip to main content
MalwarePublished

@nestjs-passport/jwt (npm) · Malicious Code

Affects @nestjs-passport/jwtSource GCVE Database

0

Malicious package : remove @nestjs-passport/jwt and rotate any secrets on hosts that installed it.

Data as of 8 Aug 2026, 15:19 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13627

What to do

Remove @nestjs-passport/jwt from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npm@nestjs-passport/jwtAffected
  • =1.0.7
  • =1.0.4
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package @nestjs-passport/jwt contains malicious code disguised as a minimal HS256 JWT helper. It uses heavy JSFuck obfuscation and dynamic code evaluation at import time, executing hidden payloads in the installer's Node.js process. The package is a typosquat of legitimate @nestjs packages and exposes obfuscated private fields inconsistent with normal build outputs. This concealment technique allows arbitrary code execution during module load without readable code paths.

References

Community reviews

Loading reviews…