Skip to main content
MalwarePublished Updated

@testrelic/playwright-analytics (npm) · Malicious Code

Affects @testrelic/playwright-analyticsSource GCVE Database

0

Malicious package : remove @testrelic/playwright-analytics and rotate any secrets on hosts that installed it.

Data as of 26 Oct 2026, 16:18 UTC

Classification

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

ProductAffectedFixed in
npm@testrelic/playwright-analyticsAffected
  • =2.13.0
  • =2.12.1-next.88
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.

References

Community reviews

Loading reviews…