playwrightr (PyPI) · Malicious Code
Affects playwrightrSource GCVE Database
Malicious package : remove playwrightr and rotate any secrets on hosts that installed it.
Data as of 10 Jul 2026, 10:07 UTC
Malicious package
Published to PyPI · OSV MAL-2026-10020
What to do
Remove playwrightr 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 |
|---|---|---|
| PyPIplaywrightr | 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 'playwrightr' PyPI package is a malicious package impersonating the legitimate 'playwright' package with a one-character difference in its name. On Windows, its setup.py overrides the install command to download and execute a remote binary from a suspicious domain, bypassing security features like Mark-of-the-Web and SmartScreen. The downloaded executable runs hidden and has been observed to download additional executables and start cryptocurrency mining. The package's only legitimate-looking functionality is a stub unrelated to its name, confirming its sole purpose is malicious. Versions 1.0.0 and 1.0.1 are affected.
References
- tria.ge/260708-eg92psat5t (opens in a new tab)
- virustotal.com/gui/file/93be0d295af944feef85c8694f88a50b660f106a5ed18300252a72d8b43b69de/detection (opens in a new tab)
- virustotal.com/gui/file/1f1963b8ccabbb9aaae9ce93b78d91f4f01faf0a21aed8e71b2adece16f8d5e6/detection (opens in a new tab)
- bad-packages.kam193.eu/pypi/package/playwrightr (opens in a new tab)
- pypi.org/project/playwrightr/1.0.1/ (opens in a new tab)