GitHub Advisoryadvisory · Packagist

GHSA-6q49-35h6-rq2p Browsershot version 3.57.3 vulnerable to improper input validation

MEDIUM Published 2022-11-25 Modified 2025-04-29 Official page ↗
Aliases
CVE-2022-43984
Ecosystem
Packagist
Packages
spatie/browsershot
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-20, CWE-79
Reviewed
2022-12-02

Affected packages

• Packagist spatie/browsershot: < 3.57.4 → fixed in 3.57.4

Description

Browsershot version 3.57.3 allows an external attacker to remotely obtain arbitrary local files. This is possible because the application does not validate that the JS content imported from an external source passed to the Browsershot::html method does not contain URLs that use the file:// protocol.

Related

Alias · CVE (1)

  • CVE-2022-43984 Browsershot version 3.57.3 allows an external attacker to remotely obtain arbitrary local files. vulnerability

Weakness · CWE (2)

  • CWE-20 Improper Input Validation weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References