Improper input validation in spatie/browsershot
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
Versions of the package spatie/browsershot before 5.0.5 are vulnerable to Improper Input Validation in the setHtml function, invoked by Browsershot::html(), which can be bypassed by omitting the slashes in the file URI (e.g., file:../../../../etc/passwd). This is due to missing validations of the user input that should be blocking file URI schemes (e.g., file:// and file:/) in the HTML content. **Note:** Further analysis has identified additional proof-of-concept exploits leveraging the vulnerable function. Developers using this package should ensure proper input validation to mitigate potential risks, as the issue remains unaddressed.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | spatie/browsershot | before 5.0.5 | 5.0.5 | Patch available | CNA |
| — | spatie/browsershot (Packagist) | before 5.0.5 | 5.0.5 | Patch available | GHSA-j2gw-r24m-j2qw |
- spatie/browsershot Vendor— Affected before 5.0.5 Fixed in 5.0.5 Patch available CNA
- spatie/browsershot (Packagist) Vendor— Affected before 5.0.5 Fixed in 5.0.5 Patch available GHSA-j2gw-r24m-j2qw
Remediation
- Fix · CNA spatie/browsershot Fixed in 5.0.5
- Fix · GHSA-j2gw-r24m-j2qw spatie/browsershot (Packagist) Fixed in 5.0.5 Advisory →
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
spatie/browsershot 5.0.5
2 records Highest priority Priority HIGH 2 HIGH
Other records, highest priority first
- TI-2025-00868 Improper input validation in spatie/browsershotPriority HIGH 75
Timeline
- 2026-10-02 Threatist record created from CVE-2025-1022
- 2026-10-03 Alias added: GHSA-j2gw-r24m-j2qw
References
Sources
- CVE-2025-1022 · CVE Program
- CVE-2025-1022 · NVD
- FIRST EPSS
- GHSA-j2gw-r24m-j2qw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences