@testrelic/playwright-analytics (npm) · Malicious Code
Affects @testrelic/playwright-analyticsSource GCVE Database
Malicious package : remove @testrelic/playwright-analytics and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 16:18 UTC
Malicious package
Published to npm · OSV MAL-2026-15565
What to do
Remove @testrelic/playwright-analytics 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 |
|---|---|---|
| npm@testrelic/playwright-analytics | 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 @testrelic/playwright-analytics version 2.13.0 contains malicious code embedded in its postinstall script. This script uses obfuscation techniques including whitespace padding and a custom shuffle to hide a payload that dynamically executes arbitrary code. The payload gains access to Node.js built-ins by assigning key globals to the global object, enabling potentially harmful operations. Additional bundled files in the package invoke child processes and make outbound HTTP POST requests, inconsistent with the package's declared purpose as a Playwright analytics reporter.