NodeJS/playwright/1.25.0-alpha-1659639526000
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
5458 Other Versions
| Version | License | Security | Released | |
|---|---|---|---|---|
| 1.5.0-next.1603087355662 | Apache-2.0 | 1 | 2020-10-19 - 06:02 | over 5 years |
| 1.5.0-next.1602867974353 | Apache-2.0 | 1 | 2020-10-16 - 17:06 | over 5 years |
| 1.5.0-next.1602861464393 | Apache-2.0 | 1 | 2020-10-16 - 15:17 | over 5 years |
| 1.5.0-next.1602837014187 | Apache-2.0 | 1 | 2020-10-16 - 08:30 | over 5 years |
| 1.5.0-next.1602797475811 | Apache-2.0 | 1 | 2020-10-15 - 21:31 | over 5 years |
| 1.5.0-next.1602795082205 | Apache-2.0 | 1 | 2020-10-15 - 20:51 | over 5 years |
| 1.5.0-next.1602783231957 | Apache-2.0 | 1 | 2020-10-15 - 17:34 | over 5 years |
| 1.5.0-next.1602780837095 | Apache-2.0 | 1 | 2020-10-15 - 16:54 | over 5 years |
| 1.5.0-next.1602777285416 | Apache-2.0 | 1 | 2020-10-15 - 15:55 | over 5 years |
| 1.5.0-next.1602757854270 | Apache-2.0 | 1 | 2020-10-15 - 10:31 | over 5 years |
| 1.5.0-next.1602739732047 | Apache-2.0 | 1 | 2020-10-15 - 05:29 | over 5 years |
| 1.5.0-next.1602717398967 | Apache-2.0 | 1 | 2020-10-14 - 23:16 | over 5 years |
| 1.5.0-next.1602713485778 | Apache-2.0 | 1 | 2020-10-14 - 22:11 | over 5 years |
| 1.5.0-next.1602713090854 | Apache-2.0 | 1 | 2020-10-14 - 22:05 | over 5 years |
| 1.5.0-next.1602709974612 | Apache-2.0 | 1 | 2020-10-14 - 21:13 | over 5 years |
| 1.5.0-next.1602697602857 | Apache-2.0 | 1 | 2020-10-14 - 17:46 | over 5 years |
| 1.5.0-next.1602697077618 | Apache-2.0 | 1 | 2020-10-14 - 17:38 | over 5 years |
| 1.5.0-next.1602693509937 | Apache-2.0 | 1 | 2020-10-14 - 16:38 | over 5 years |
| 1.5.0-next.1602680104325 | Apache-2.0 | 1 | 2020-10-14 - 12:55 | over 5 years |
| 1.5.0-next.1602654218274 | Apache-2.0 | 1 | 2020-10-14 - 05:43 | over 5 years |
| 1.5.0-next.1602652687944 | Apache-2.0 | 1 | 2020-10-14 - 05:18 | over 5 years |
| 1.5.0-next.1602620459835 | Apache-2.0 | 1 | 2020-10-13 - 20:21 | over 5 years |
| 1.5.0-next.1602617198311 | Apache-2.0 | 1 | 2020-10-13 - 19:26 | over 5 years |
| 1.5.0-next.1602616819317 | Apache-2.0 | 1 | 2020-10-13 - 19:20 | over 5 years |
| 1.5.0-next.1602614758875 | Apache-2.0 | 1 | 2020-10-13 - 18:46 | over 5 years |
| 1.5.0-next.1602614121721 | Apache-2.0 | 1 | 2020-10-13 - 18:35 | over 5 years |
| 1.5.0-next.1602606939387 | Apache-2.0 | 1 | 2020-10-13 - 16:35 | over 5 years |
| 1.5.0-next.1602604894123 | Apache-2.0 | 1 | 2020-10-13 - 16:01 | over 5 years |
| 1.5.0-next.1602567394434 | Apache-2.0 | 1 | 2020-10-13 - 05:36 | over 5 years |
| 1.5.0-next.1602564829195 | Apache-2.0 | 1 | 2020-10-13 - 04:54 | over 5 years |
| 1.5.0-next.1602552387242 | Apache-2.0 | 1 | 2020-10-13 - 01:26 | over 5 years |
| 1.5.0-next.1602552164093 | Apache-2.0 | 1 | 2020-10-13 - 01:22 | over 5 years |
| 1.6.2 | Apache-2.0 | 1 | 2020-11-17 - 21:04 | over 5 years |
| 1.6.1 | Apache-2.0 | 1 | 2020-11-13 - 02:55 | over 5 years |
| 1.6.0 | Apache-2.0 | 1 | 2020-11-12 - 22:56 | over 5 years |
| 1.4.2-next.1600904063807 | Apache-2.0 | 1 | 2020-09-23 - 23:34 | over 5 years |
| 1.4.0-next.1602542830200 | Apache-2.0 | 1 | 2020-10-12 - 22:47 | over 5 years |
| 1.4.0-next.1602538162833 | Apache-2.0 | 1 | 2020-10-12 - 21:29 | over 5 years |
| 1.4.0-next.1602535879673 | Apache-2.0 | 1 | 2020-10-12 - 20:51 | over 5 years |
| 1.4.0-next.1602519496667 | Apache-2.0 | 1 | 2020-10-12 - 16:18 | over 5 years |
| 1.4.0-next.1602392011053 | Apache-2.0 | 1 | 2020-10-11 - 04:53 | over 5 years |
| 1.4.0-next.1602285232813 | Apache-2.0 | 1 | 2020-10-09 - 23:14 | over 5 years |
| 1.4.0-next.1602284292050 | Apache-2.0 | 1 | 2020-10-09 - 22:58 | over 5 years |
| 1.4.0-next.1602274092905 | Apache-2.0 | 1 | 2020-10-09 - 20:08 | over 5 years |
| 1.4.0-next.1602269246657 | Apache-2.0 | 1 | 2020-10-09 - 18:47 | over 5 years |
| 1.4.0-next.1602268229295 | Apache-2.0 | 1 | 2020-10-09 - 18:30 | over 5 years |
| 1.4.0-next.1602267320780 | Apache-2.0 | 1 | 2020-10-09 - 18:15 | over 5 years |
| 1.4.0-next.1602261306397 | Apache-2.0 | 1 | 2020-10-09 - 16:35 | over 5 years |
| 1.4.0-next.1602221421021 | Apache-2.0 | 1 | 2020-10-09 - 05:30 | over 5 years |
| 1.4.0-next.1602219946954 | Apache-2.0 | 1 | 2020-10-09 - 05:06 | over 5 years |
