supertokens-web (npm) · Malicious Code
Affects supertokens-webSource GCVE Database
Malicious package : remove supertokens-web and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 15:56 UTC
Malicious package
Published to npm · OSV MAL-2026-10423
What to do
Remove supertokens-web 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
| Product | Affected | Fixed in |
|---|---|---|
| npmsupertokens-web | Affected
| 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 'supertokens-web' version 1.16.0 is a malicious package impersonating the legitimate 'supertokens-web-js' authentication SDK. Upon being required, it downloads and executes an unverified binary from a non-publisher Vercel-hosted URL, placing it in hidden user directories and running it silently. The package uses obfuscation techniques to hide the malicious payload's URL and filenames, deceiving users who mistype the dependency name. This behavior results in unauthorized code execution on the affected system.