Spatie Browsershot local file read in setHtml() rendering
spatie browsershot
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| spatie browsershot |
|
|
Original description
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.
From the CVE record · VulnCheck