CVE-2025-1026 Browsershot Local File Inclusion

High 7.7 Published Updated

Attackers can read sensitive files via improper URL validation in the setUrl method, bypassing previous security fixes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-1026?

CVE-2025-1026 is a high-severity path traversal vulnerability in spatie/browsershot, published on 5 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method, which results in a Local File Inclusion allowing the attacker to read sensitive files. **Note:** This is a bypass of the fix for [CVE-2024-21549](https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533023).

Weakness: CWE-20

Which versions are affected by CVE-2025-1026?

2 open source packages ship an affected version, including spatie/browsershot.

PackageAffectedFixed in
spatie/browsershot PackagistAll versions5.0.5
spatie/browsershot PackagistAll versions5.0.5

How do I fix CVE-2025-1026?

Upgrade spatie/browsershot to 5.0.5 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-1026 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1026 exists.

Sources

Also known as GHSA-f2q5-6mx7-q9qq.

Is CVE-2025-1026 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free