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

CVE-2022-43983: Browsershot vulnerable to Cross-Site Scripting (XSS)

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 that the HTML content passed to the Browsershot::html method does not contain URL’s that use the file:// protocol.

References

  • fluidattacks.com/advisories/khalid
  • github.com/advisories/GHSA-82h9-v8vh-mfpq
  • github.com/spatie/browsershot
  • github.com/spatie/browsershot/commit/92cf16fc098211731f80d21687abeafbe2c457ad
  • nvd.nist.gov/vuln/detail/CVE-2022-43983

Code Behaviors & Features

Detect and mitigate CVE-2022-43983 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/spatie/browsershot/CVE-2022-43983.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:59 +0000.