CVE-2026-126779: Spatie Browsershot 2.2.0 before 5.5.0 Local File Read via setHtml()

Published Nov 11, 2026
·
Updated

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.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Spatie Browsershot to a version that resolves this vulnerability.

    Fixed in 5.5.0

Event History

Nov 11, 2026
CVE Published
via MITRE·06:41 PM
Data Sourced
via MITRE·06:41 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using Spatie Browsershot versions from 2.2.0 before 5.5.0 are exposed when untrusted users can influence HTML supplied to setHtml() and can obtain the resulting PDF or screenshot.

2

What does an attacker need to exploit it?

An attacker needs to supply HTML to setHtml() containing a root-relative resource reference. iframe, img, link, and script elements can reference paths such as /etc/passwd, which are resolved as file:// URLs during rendering.

3

What information can be exposed?

The vulnerability can expose files readable by the server-side rendering process. Their contents can be incorporated into the generated PDF or screenshot returned by the application.

4

How can exposure be reduced before upgrading?

Do not allow untrusted input to control HTML passed to setHtml(), or strictly sanitize and reject root-relative resource URLs in iframe, img, link, and script elements.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203