MAL-2026-20111: Malicious code in playwright-config (npm)

Published Nov 16, 2026
·
Updated

Malicious package. A preinstall (and preupdate) script runs node index.js, which reads /etc/passwd (and attempts the Windows SAM hive and C:\Users), lists the current working directory, runs id/whoami, collects the user name, home directory, UID/GID and OS release, and posts it all to a hardcoded Discord webhook (1471187072869073017). The code labels its messages "Dependency Confusion Executed" and "Bug Bounty Execution", but it runs without consent on any machine that installs it. index.js (sha256 fb8451975ead2a956d3d8092eb2868d1ba9135fb6ef30e75941b1454958f75ae) is shared by canvaswebglminimal and playwright-config; the same webhook is used by google-caja-bower (MAL-2026-10186). Published 2026-02-23 and unpublished from npm on 2026-02-24.

Affected Software

1 affected component
npm/playwright-config=20.20.20

Event History

Nov 16, 2026
Advisory Published
via OSV·04:20 PM
Data Sourced
via OSV·04:20 PM
DescriptionAffected Software

Frequently Asked Questions

1

What event triggers the malicious code?

The code is invoked by both the package's preinstall and preupdate scripts, which run node index.js. Systems that installed or updated the package should be considered exposed.

2

Which environments are targeted by the collection logic?

The script reads /etc/passwd and executes id or whoami, indicating Unix-like systems are targeted. It also attempts to access the Windows SAM hive and C:\Users, so Windows hosts are included in its collection attempts.

3

What indicators can be used to hunt for related activity?

The collected data is posted to Discord webhook 1471187072869073017. The index.js file has SHA-256 fb8451975ead2a956d3d8092eb2868d1ba9135fb6ef30e75941b1454958f75ae.

4

Are there related packages worth reviewing?

canvas_webgl_minimal shares the same index.js file, and google-caja-bower uses the same Discord webhook. These packages may warrant review alongside playwright-config.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203