npmscript_tesstalert_unpkg (npm) · Malicious Code
Affects npmscript_tesstalert_unpkgSource GCVE Database
Malicious package : remove npmscript_tesstalert_unpkg and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:20 UTC
Malicious package
Published to npm · OSV MAL-2026-16309
What to do
Remove npmscript_tesstalert_unpkg 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 |
|---|---|---|
| npmnpmscript_tesstalert_unpkg | 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 npmscript_tesstalert_unpkg contains malicious code that exfiltrates browser cookies. When its script is loaded in a web page via the unpkg CDN, it reads the document's cookies and redirects the browser to an attacker-controlled URL with the cookies appended. This behavior is obfuscated by splitting sensitive property names to evade detection by string-based scanners. Any site loading this package version risks leaking user cookies to the attacker.
References
- npmjs.com/package/npmscript_tesstalert_unpkg/v/1.0.2 (opens in a new tab)
- npmjs.com/package/npmscript_tesstalert_unpkg/v/1.0.1 (opens in a new tab)
- npmjs.com/package/npmscript_tesstalert_unpkg/v/1.1.8 (opens in a new tab)
- npmjs.com/package/npmscript_tesstalert_unpkg/v/1.1.7 (opens in a new tab)
- github.com/advisories/GHSA-xvj9-j5xj-9f5p (opens in a new tab)