Browsershot vulnerable to Cross-Site Scripting (XSS)
Date: 2022-11
Affected: composer/spatie/browsershot
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2022-43983
CVE-2022-43984
CWE: CWE-20
CWE-79
CVSS: 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):