NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #500 most downloaded on Packagist
Convert a webpage to an image or pdf using headless Chrome
Latest stable
5.5.1
Last release today
23 Nov 2026
Release timing varies
gaps range from 9 days to 5 months
Nearly every release is documented
notes for 57 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
176 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Security fix: constructor URL validation bypass
Non-empty URLs passed to new Browsershot($url) now use the same validation as Browsershot::url($url) and setUrl(). This rejects local-file URLs, view-source: URLs, and malformed URLs before browser navigation.
Previously, the constructor assigned its URL without validation. Applications that passed attacker-controlled URLs to the constructor and returned rendered output could expose local files readable by the Chrome process.
Applications using the validated Browsershot::url() entry point were not affected by this constructor bypass. Empty construction and valid HTTP(S) URLs remain supported. Intentional local rendering through htmlFromFilePath() is unchanged. Browsershot is not a sandbox for untrusted content; applications must still isolate browser filesystem and network access.
Upgrade to 5.5.1 if your application accepts untrusted constructor URLs.
Thanks to Dickson at SEAL & CertiK for privately reporting the issue and proposing the fix.
The seven rejection cases fail on the previous implementation and pass with the fix. The local suite passes all 167 tests with 241 assertions, including browser-backed PDF and screenshot tests.
Full changelog: 5.5.0...5.5.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
5.5.1 Latest
Latest
Compare
Local file access controls for supplied HTML
Browsershot now blocks local file requests by default when rendering HTML passed to html() or setHtml(). The restriction is enforced on resolved browser requests, covering absolute filesystem paths, literal file URLs and file URLs constructed by JavaScript.
For trusted HTML that intentionally loads local assets, explicitly opt in:
Browsershot::html($html)
->allowLocalFileAccess()
->savePdf("invoice.pdf");Use allowLocalFileAccess(false) to restore the default restriction.
html() may now be missing from generated output unless local file access is explicitly enabled.html(), allowing the fluent opt-in and plain text mentioning file URLs.htmlFromFilePath() retains its existing local-resource behavior. HTTP(S) resources and explicit content URLs retain their behavior.Includes regression tests for local-file disclosure payloads, plain-text file URLs, the one-time initial-document permission, local assets, opt-in revocation and HTTP resources. The local suite passed 157 tests with 228 assertions, and all PHP 8.2–8.6 CI matrix jobs passed before merge.
Full Changelog: 5.4.2...5.5.0
Fix loading ESM-only Puppeteer when Node cannot load it with require() , including processes using --no-experimental-require-module .
Fix loading ESM-only Puppeteer when Node cannot load it with require(), including processes using --no-experimental-require-module.
Browsershot still prefers CommonJS loading, preserves global installations resolved through NODE_PATH, and retains named exports used by device emulation. PHP and Node requirements are unchanged.
The regression generates a real PDF and verifies its rendered text and emulated iPhone user agent. CI also refreshes apt package lists before installing poppler-utils.
Full Changelog: 5.4.1...5.4.2
Fix temporary HTML and options cleanup when browser execution or process setup fails, and clean up intermediate screenshots after failed image manipul
Fix temporary HTML and options cleanup when browser execution or process setup fails, and clean up intermediate screenshots after failed image manipulations.
Browser integration tests now use deterministic local HTTP fixtures. CI adds Pest 5 on PHP 8.4–8.5 while retaining compatible test tooling for PHP 8.2–8.3; runtime PHP requirements are unchanged.
Full Changelog: 5.4.0...5.4.1
Fix temporary HTML and options cleanup when browser execution or process setup fails, and clean up intermediate screenshots after failed image manipulations.
Browser integration tests now use deterministic local HTTP fixtures. CI adds Pest 5 on PHP 8.4–8.5 while retaining compatible test tooling for PHP 8.2–8.3; runtime PHP requirements are unchanged.
Full Changelog: https://github.com/spatie/browsershot/compare/5.4.0...5.4.1
feat: Add evaluateOnNewDocument support by @vinitkadam03 in #978
Full Changelog: 5.3.0...5.4.0
Full Changelog: https://github.com/spatie/browsershot/compare/5.3.0...5.4.0
Update requirements.md by @colinmackinlay in #973
Full Changelog: 5.2.3...5.3.0
Full Changelog: https://github.com/spatie/browsershot/compare/5.2.3...5.3.0
Allow http(s) URLs to localhost in HTML — fixes false positive with Vite dev server URLs like http://[::1]:5173
Allow http(s) URLs to localhost in HTML — fixes false positive with Vite dev server URLs like http://[::1]:5173
Full Changelog: https://github.com/spatie/browsershot/compare/5.2.2...5.2.3
Full Changelog : 5.2.1...5.2.2
Full Changelog: 5.2.1...5.2.2
Full Changelog: https://github.com/spatie/browsershot/compare/5.2.1...5.2.2
Bump dependabot/fetch-metadata from 2.4.0 to 2.5.0 by @dependabot [bot] in #968
Full Changelog: 5.2.0...5.2.1
Full Changelog: https://github.com/spatie/browsershot/compare/5.2.0...5.2.1
Fix installation command for Forge dependencies in requirements.md by @ndeblauw in #962
Full Changelog: 5.1.1...5.2.0
Full Changelog: https://github.com/spatie/browsershot/compare/5.1.1...5.2.0
Added Symfony 8 support to all symfony/* packages. by @thecaliskan in #959
Full Changelog: 5.1.0...5.1.1
Full Changelog: https://github.com/spatie/browsershot/compare/5.1.0...5.1.1
Fix: Properly escape Node and NPM binary paths (support paths containing spaces) by @salahhusa9 in #958
Full Changelog: 5.0.11...5.1.0
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.11...5.1.0
Bump aglipanci/laravel-pint-action from 2.5 to 2.6 by @dependabot [bot] in #942
Full Changelog: 5.0.10...5.0.11
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.10...5.0.11
Fix | Check that response().frame() is not null by @Dan-Hike in #924
null by @rado-h in #935Full Changelog: 5.0.9...5.0.10
null by @rado-h in https://github.com/spatie/browsershot/pull/935Full Changelog: https://github.com/spatie/browsershot/compare/5.0.9...5.0.10
run-tests: disable app armor restrictions by @vintagesucks in https://github.com/spatie/browsershot/pull/923
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.8...5.0.9
support chrome-headless-shell (old headless mode) by @vintagesucks in https://github.com/spatie/browsershot/pull/918
chrome-headless-shell (old headless mode) by @vintagesucks in https://github.com/spatie/browsershot/pull/918Full Changelog: https://github.com/spatie/browsershot/compare/5.0.7...5.0.8
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.6...5.0.7
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.6...5.0.7
Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in https://github.com/spatie/browsershot/pull/917
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.5...5.0.6
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.4...5.0.5
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.4...5.0.5
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.3...5.0.4
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.3...5.0.4
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.2...5.0.3
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.2...5.0.3
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.1...5.0.2
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.1...5.0.2
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.0...5.0.1
Full Changelog: https://github.com/spatie/browsershot/compare/5.0.0...5.0.1
Requires Puppeteer version 23.0 or higher!
Full Changelog: https://github.com/spatie/browsershot/compare/4.4.0...5.0.0
ignoreHttpsErrors() method by @PHLAK in https://github.com/spatie/browsershot/pull/899Full Changelog: https://github.com/spatie/browsershot/compare/4.3.1...5.0.0
Nothing published for this version
Update setting-the-timeout.md by @koernchen02 in https://github.com/spatie/browsershot/pull/889
file:/ URL fetching by @JaredPage in https://github.com/spatie/browsershot/pull/881disableRedirects method by @JaredPage in https://github.com/spatie/browsershot/pull/881Full Changelog: https://github.com/spatie/browsershot/compare/4.3.0...4.3.1
Fix empty PDF issue with Puppeteer ^23.0.0 by @JeppeKnockaert in https://github.com/spatie/browsershot/pull/876
Full Changelog: https://github.com/spatie/browsershot/compare/4.2.1...4.3.0
Revert changes of 4.2.1 because PDFs do not render correctly anymore (see https://github.com/spatie/laravel-pdf/issues/175)
Revert changes of 4.2.1 because PDFs do not render correctly anymore (see https://github.com/spatie/laravel-pdf/issues/175)
Full Changelog: https://github.com/spatie/browsershot/compare/4.2.0...4.2.1
Add options to set protocol timeout by @zarulizham in https://github.com/spatie/browsershot/pull/865
Full Changelog: https://github.com/spatie/browsershot/compare/4.1.3...4.2.0
option to disable the capturing request by @ziaratban in https://github.com/spatie/browsershot/pull/861
Full Changelog: https://github.com/spatie/browsershot/compare/4.1.2...4.1.3
Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot in https://github.com/spatie/browsershot/pull/860
Full Changelog: https://github.com/spatie/browsershot/compare/4.1.1...4.1.2
Issue with Windows temp path fixed by @SyedMuradAliShah in https://github.com/spatie/browsershot/pull/858
Full Changelog: https://github.com/spatie/browsershot/compare/4.1.0...4.1.1
Prevent taking screenshots twice by @clementmas in https://github.com/spatie/browsershot/pull/849
Full Changelog: https://github.com/spatie/browsershot/compare/4.0.5...4.1.0
Fix save method if there are no image manipulations by @moisish in https://github.com/spatie/browsershot/pull/847
Full Changelog: https://github.com/spatie/browsershot/compare/4.0.4...4.0.5
Fixing spatie/image's dependant bot alerts issues in composer.lock by @thanosalexandris in https://github.com/spatie/browsershot/pull/846
spatie/image's dependant bot alerts issues in composer.lock by @thanosalexandris in https://github.com/spatie/browsershot/pull/846Full Changelog: https://github.com/spatie/browsershot/compare/4.0.3...4.0.4
Fix redirect history test by @niclas-timm in https://github.com/spatie/browsershot/pull/836
Full Changelog: https://github.com/spatie/browsershot/compare/4.0.2...4.0.3
Update node version by @alnutile in https://github.com/spatie/browsershot/pull/830
Full Changelog: https://github.com/spatie/browsershot/compare/4.0.1...4.0.2
Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 by @dependabot in https://github.com/spatie/browsershot/pull/809
screenshotQuality property type to integer by @orkhanahmadov in https://github.com/spatie/browsershot/pull/810Full Changelog: https://github.com/spatie/browsershot/compare/4.0.0...4.0.1
made dependency on spatie/image optional
Adding a taggedPdf option by @ntaylor-86 in https://github.com/spatie/browsershot/pull/804
Full Changelog: https://github.com/spatie/browsershot/compare/3.60.2...3.61.0
Allow symfony/process 7.x by @thecaliskan in https://github.com/spatie/browsershot/pull/803
Full Changelog: https://github.com/spatie/browsershot/compare/3.60.1...3.60.2
fixing ?? syntax with ternary by @Chetanp23 in https://github.com/spatie/browsershot/pull/795
Full Changelog: https://github.com/spatie/browsershot/compare/3.60.0...3.60.1
Added getOutput method for full output data access on any request by @vitorsemeano in https://github.com/spatie/browsershot/pull/780
Full Changelog: https://github.com/spatie/browsershot/compare/3.59.0...3.60.0
Update return types by @lamberttraccard in https://github.com/spatie/browsershot/pull/766
Full Changelog: https://github.com/spatie/browsershot/compare/3.58.2...3.59.0
Let Symfony/process handle the command escape on Windows by @EmanueleCoppola in https://github.com/spatie/browsershot/pull/757
Full Changelog: https://github.com/spatie/browsershot/compare/3.58.1...3.58.2
Redirect History: Update docs by @bessone in https://github.com/spatie/browsershot/pull/748
Full Changelog: https://github.com/spatie/browsershot/compare/3.58.0...3.58.1
Read redirect history by @bessone in https://github.com/spatie/browsershot/pull/747
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.8...3.58.0
Fix node command error caused by type: module in package.json by @osbre in https://github.com/spatie/browsershot/pull/740
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.7...3.57.8
A word was missing by @sdebacker in https://github.com/spatie/browsershot/pull/704
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.6...3.57.7
Docs: Use setEnvironmentOptions to set Browser Language by @stefanzweifel in https://github.com/spatie/browsershot/pull/701
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.5...3.57.6
Add PHP 8.2 Tests Support by @patinthehat in https://github.com/spatie/browsershot/pull/688
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.4...3.57.5
Allow user to explicitly use a local file for html content. by @daum in https://github.com/spatie/browsershot/pull/687
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.3...3.57.4
Do not allow file:// to be used
file:// to be usedPrevent double request interception on POST by @JeppeKnockaert in https://github.com/spatie/browsershot/pull/664
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.1...3.57.2
Enable writeOptionsToFile for Windows by @moisish in https://github.com/spatie/browsershot/pull/660
Full Changelog: https://github.com/spatie/browsershot/compare/3.57.0...3.57.1
Set custom temp path by @mtawil in https://github.com/spatie/browsershot/pull/648
Full Changelog: https://github.com/spatie/browsershot/compare/3.56.0...3.57.0
- add failedRequests method
failedRequests methodAdd console messages method by @freekmurze in https://github.com/spatie/browsershot/pull/641
Full Changelog: https://github.com/spatie/browsershot/compare/3.54.0...3.55.0
Nothing published for this version
Nothing published for this version
One column per quarter.