NodeJS/playwright/1.6.0-next.1604370816246
A high-level API to automate web browsers
https://www.npmjs.com/package/playwright
Apache-2.0
1 Security Vulnerabilities
Playwright downloads and installs browsers without verifying the authenticity of the SSL certificate
- https://nvd.nist.gov/vuln/detail/CVE-2025-59288
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-59288
- https://github.com/SocketDev/security-research/security/advisories/GHSA-qxm8-4v54-964r
- https://github.com/microsoft/playwright/pull/37532
- https://github.com/microsoft/playwright/commit/72c62d840247d9defd87c6beb0344d456794b570
- https://github.com/microsoft/playwright/releases/tag/v1.55.1
- https://github.com/microsoft/playwright/releases/tag/v1.56.0
- https://github.com/advisories/GHSA-7mvr-c777-76hp
Summary
Use of curl with the -k (or --insecure) flag in installer scripts allows attackers to deliver arbitrary executables via Man-in-the-Middle (MitM) attacks. This can lead to full system compromise, as the downloaded files are installed as privileged applications.
Details
The following scripts in the microsoft/playwright repository at commit bee11cbc28f24bd18e726163d0b9b1571b4f26a8 use curl -k to fetch and install executable packages without verifying the authenticity of the SSL certificate:
packages/playwright-core/bin/reinstall_chrome_beta_mac.shpackages/playwright-core/bin/reinstall_chrome_stable_mac.shpackages/playwright-core/bin/reinstall_msedge_dev_mac.shpackages/playwright-core/bin/reinstall_msedge_beta_mac.shpackages/playwright-core/bin/reinstall_msedge_stable_mac.sh
In each case, the shell scripts download a browser installer package using curl -k and immediately install it:
curl --retry 3 -o ./<pkg-file> -k <url>
sudo installer -pkg /tmp/<pkg-file> -target /
Disabling SSL verification (-k) means the download can be intercepted and replaced with malicious content.
PoC
A high-level exploitation scenario:
- An attacker performs a MitM attack on a network where the victim runs one of these scripts.
- The attacker intercepts the HTTPS request and serves a malicious package (for example, a trojaned browser installer).
- Because
curl -kis used, the script downloads and installs the attacker's payload without any certificate validation. - The attacker's code is executed with system privileges, leading to full compromise.
No special configuration is needed: simply running these scripts on any untrusted or hostile network is enough.
Impact
This is a critical Remote Code Execution (RCE) vulnerability due to improper SSL certificate validation (CWE-295: Improper Certificate Validation). Any user or automation running these scripts is at risk of arbitrary code execution as root/admin, system compromise, data theft, or persistent malware installation. The risk is especially severe because browser packages are installed with elevated privileges and the scripts may be used in CI/CD or developer environments.
Fix
- https://github.com/microsoft/playwright/commit/72c62d840247d9defd87c6beb0344d456794b570
- https://github.com/microsoft/playwright/pull/37532
- https://github.com/microsoft/playwright/releases/tag/v1.56.0
Credit
- This vulnerability was uncovered by tooling by Socket
- This vulnerability was confirmed by @evilpacket
- This vulnerability was reported by @JLLeitschuh at Socket
Disclosure
- September 10th, 2025 - Disclosed to Microsoft privately via https://github.com/microsoft/playwright/security/advisories/GHSA-gx27-2j22-qcx8
- September 11th, 2025 - Reported to Microsoft via MSRC Researcher Portal - https://msrc.microsoft.com/report/vulnerability/VULN-162854
- September 11th, 2025 - Microsoft closed report as
Complete - N/A
- September 18th, 2025 - Following a LinkedIn Post
5454 Other Versions
| Version | License | Security | Released | |
|---|---|---|---|---|
| 1.26.0-alpha-aug-25-2022 | Apache-2.0 | 1 | 2022-08-25 - 00:45 | over 3 years |
| 1.26.0-alpha-aug-26-2022 | Apache-2.0 | 1 | 2022-08-26 - 00:31 | over 3 years |
| 1.26.0-alpha-aug-27-2022 | Apache-2.0 | 1 | 2022-08-27 - 00:28 | over 3 years |
| 1.26.0-alpha-aug-28-2022 | Apache-2.0 | 1 | 2022-08-28 - 00:33 | over 3 years |
| 1.26.0-alpha-aug-29-2022 | Apache-2.0 | 1 | 2022-08-29 - 00:32 | over 3 years |
| 1.26.0-alpha-aug-30-2022 | Apache-2.0 | 1 | 2022-08-30 - 00:37 | over 3 years |
| 1.26.0-alpha-aug-31-2022 | Apache-2.0 | 1 | 2022-08-31 - 00:41 | over 3 years |
| 1.26.0-alpha-1661907180000 | Apache-2.0 | 1 | 2022-08-31 - 00:55 | over 3 years |
| 1.26.0-alpha-sep-1-2022 | Apache-2.0 | 1 | 2022-09-01 - 00:29 | over 3 years |
| 1.26.0-alpha-sep-2-2022 | Apache-2.0 | 1 | 2022-09-02 - 00:30 | over 3 years |
| 1.26.0-alpha-sep-3-2022 | Apache-2.0 | 1 | 2022-09-03 - 00:28 | over 3 years |
| 1.26.0-alpha-sep-5-2022 | Apache-2.0 | 1 | 2022-09-05 - 00:37 | over 3 years |
| 1.26.0-alpha-sep-4-2022 | Apache-2.0 | 1 | 2022-09-04 - 00:33 | over 3 years |
| 1.26.0-alpha-1662365984000 | Apache-2.0 | 1 | 2022-09-05 - 08:30 | over 3 years |
| 1.26.0-alpha-sep-6-2022 | Apache-2.0 | 1 | 2022-09-06 - 00:32 | over 3 years |
| 1.26.0-alpha-sep-7-2022 | Apache-2.0 | 1 | 2022-09-07 - 00:33 | over 3 years |
| 1.26.0-alpha-sep-8-2022 | Apache-2.0 | 1 | 2022-09-08 - 00:36 | over 3 years |
| 1.26.0-alpha-sep-9-2022 | Apache-2.0 | 1 | 2022-09-09 - 00:33 | over 3 years |
| 1.26.0-alpha-sep-10-2022 | Apache-2.0 | 1 | 2022-09-10 - 00:33 | over 3 years |
| 1.26.0-alpha-sep-11-2022 | Apache-2.0 | 1 | 2022-09-11 - 00:31 | over 3 years |
| 1.26.0-alpha-sep-12-2022 | Apache-2.0 | 1 | 2022-09-12 - 00:30 | over 3 years |
| 1.25.2 | Apache-2.0 | 1 | 2022-09-07 - 11:32 | over 3 years |
| 1.25.2-beta-1662502001000 | Apache-2.0 | 1 | 2022-09-06 - 22:10 | over 3 years |
| 1.25.1 | Apache-2.0 | 1 | 2022-08-23 - 19:02 | over 3 years |
| 1.25.1-beta-1661279778000 | Apache-2.0 | 1 | 2022-08-23 - 18:39 | over 3 years |
| 1.25.1-beta-1661979417000 | Apache-2.0 | 1 | 2022-08-31 - 21:03 | over 3 years |
| 1.25.1-beta-1661977117000 | Apache-2.0 | 1 | 2022-08-31 - 20:22 | over 3 years |
| 1.25.1-beta-1662161757000 | Apache-2.0 | 1 | 2022-09-02 - 23:38 | over 3 years |
| 1.25.1-beta-1662493798000 | Apache-2.0 | 1 | 2022-09-06 - 20:06 | over 3 years |
| 1.25.1-beta-1662499185000 | Apache-2.0 | 1 | 2022-09-06 - 21:25 | over 3 years |
| 1.25.0 | Apache-2.0 | 1 | 2022-08-11 - 00:05 | over 3 years |
| 1.25.0-beta-1660134302000 | Apache-2.0 | 1 | 2022-08-10 - 12:32 | over 3 years |
| 1.25.0-beta-1660171265000 | Apache-2.0 | 1 | 2022-08-10 - 22:53 | over 3 years |
| 1.25.0-beta-1660136025000 | Apache-2.0 | 1 | 2022-08-10 - 12:55 | over 3 years |
| 1.25.0-beta-1660134229000 | Apache-2.0 | 1 | 2022-08-10 - 12:27 | over 3 years |
| 1.25.0-beta-1660142208000 | Apache-2.0 | 1 | 2022-08-10 - 14:39 | over 3 years |
| 1.25.0-beta-1660156046000 | Apache-2.0 | 1 | 2022-08-10 - 18:30 | over 3 years |
| 1.25.0-beta-1660160263000 | Apache-2.0 | 1 | 2022-08-10 - 19:40 | over 3 years |
| 1.25.0-beta-1660135972000 | Apache-2.0 | 1 | 2022-08-10 - 12:56 | over 3 years |
| 1.25.0-beta-1660166356000 | Apache-2.0 | 1 | 2022-08-10 - 21:21 | over 3 years |
| 1.25.0-beta-1660149140000 | Apache-2.0 | 1 | 2022-08-10 - 16:35 | over 3 years |
| 1.25.0-beta-1660213765000 | Apache-2.0 | 1 | 2022-08-11 - 10:31 | over 3 years |
| 1.25.0-beta-1660549413000 | Apache-2.0 | 1 | 2022-08-15 - 07:46 | over 3 years |
| 1.25.0-beta-1660587344000 | Apache-2.0 | 1 | 2022-08-15 - 18:17 | over 3 years |
| 1.25.0-beta-1660586581000 | Apache-2.0 | 1 | 2022-08-15 - 18:06 | over 3 years |
| 1.25.0-beta-1660603535000 | Apache-2.0 | 1 | 2022-08-15 - 22:48 | over 3 years |
| 1.25.0-beta-1660952656000 | Apache-2.0 | 1 | 2022-08-19 - 23:47 | over 3 years |
| 1.25.0-beta-1660977861000 | Apache-2.0 | 1 | 2022-08-20 - 06:46 | over 3 years |
| 1.25.0-beta-1660912234000 | Apache-2.0 | 1 | 2022-08-19 - 12:32 | over 3 years |
| 1.25.0-beta-1661275579000 | Apache-2.0 | 1 | 2022-08-23 - 17:33 | over 3 years |
