Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. spatie/browsershot
  4. ›
  5. CVE-2022-41706

CVE-2022-41706: Browsershot does not validate URL protocols passed to Browsershot URL method

November 25, 2022 (updated April 29, 2025)

Browsershot version 3.57.2 allows an external attacker to remotely obtain arbitrary local files. This is possible because the application does not validate the URL protocol passed to the Browsershot::url method.

References

  • fluidattacks.com/advisories/eminem
  • github.com/advisories/GHSA-8c2c-jxwj-jqgf
  • github.com/spatie/browsershot
  • github.com/spatie/browsershot/commit/92cf16fc098211731f80d21687abeafbe2c457ad
  • nvd.nist.gov/vuln/detail/CVE-2022-41706

Code Behaviors & Features

Detect and mitigate CVE-2022-41706 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.57.3

Fixed versions

  • 3.57.3

Solution

Upgrade to version 3.57.3 or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/spatie/browsershot/CVE-2022-41706.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:50 +0000.