Read the docs

Local file read in Spatie Browsershot via setHtml()

Priority MEDIUM 44CWE-73Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00381 32nd percentileScored 2026-11-16
Fix Fixed browsershot (spatie): 5.5.0

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

VendorProductAffected versionsFixed inStatusSource
spatiebrowsershot2.2.0 to before 5.5.05.5.0Patch availableCNA
  • browsershot Vendorspatie Affected 2.2.0 to before 5.5.0 Fixed in 5.5.0 Patch available CNA

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

  1. 2026-11-11 Threatist record created from CVE-2026-126779
  2. 2026-11-11 Alias added: GHSA-wp7g-f22j-79fp
  3. 2026-11-13 CISA SSVC decision points changed

References

  • 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
See all 10 →

Sources