Local file read in Spatie Browsershot via setHtml()
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-73 and the CVSS impact.
Summary
Spatie Browsershot from 2.2.0 before 5.5.0 contains a local file read flaw that lets attackers read files from the server. Attackers can supply root-relative references such as /etc/passwd in HTML passed to setHtml(), which the library resolves to file:// URLs and renders into the returned PDF or screenshot. An unauthenticated remote attacker can read server files without any user interaction. The weakness is classified as CWE-73, external control of file name or path.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
Description from the CNA
Spatie Browsershot 2.2.0 before 5.5.0 contains a local file read vulnerability that allows attackers to read server files by supplying root-relative references in HTML passed to setHtml(). Attackers can embed iframe, img, link or script elements referencing paths like /etc/passwd, which resolve to file:// URLs and render file contents into the returned PDF or screenshot.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- 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
Remediation
Upgrade Spatie Browsershot to version 5.5.0 or later.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
- Fix · CNA browsershot (spatie) Fixed in 5.5.0
Timeline
- 2026-11-11 Threatist record created from CVE-2026-126779
- 2026-11-11 Alias added: GHSA-wp7g-f22j-79fp
- 2026-11-13 CISA SSVC decision points changed
References
More spatie vulnerabilities
- TI-2026-84894 Incorrect type conversion in spatie url-signer URL validation CVSS 4.0MEDIUM 6.9
- TI-2022-21618 Browsershot 3.57.3 - Server Side XSS to LFR via HTML CVSS 3.1HIGH 8.2
- TI-2022-21617 Browsershot 3.57.2 - Server Side XSS to LFR via HTML CVSS 3.1HIGH 8.2
- TI-2022-20098 Browsershot 3.57.2 - Server Side XSS to LFR via URL CVSS 3.1HIGH 8.2
- TI-2026-63016 spatie Scotty Self Update SelfUpdater.php update code download CVSS 4.0MEDIUM 5.3
- TI-2026-63015 spatie Scotty Doctor DoctorCommand.php checkRemoteTools os command injection CVSS 4.0MEDIUM 5.3
Sources
- CVE-2026-126779 · CVE Program
- CVE-2026-126779 · NVD
- FIRST EPSS
- GHSA-wp7g-f22j-79fp · 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