playwright
Affected
- introduced
0, fixed1.55.1(semver)
Fixed versions
1.55.1
Fix
- Fixed version
1.55.1npm install [email protected]
Advisory
Also known as: CVE-2025-59288
Playwright downloads and installs browsers without verifying the authenticity of the SSL certificate
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:
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:
curl -k is used, the script downloads and installs the attacker's payload without any certificate validation.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
Credit
Disclosure
High Basis: The source's own band: HIGH
0, fixed 1.55.1 (semver)1.55.1
1.55.1npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0