CVE-2022-43984: Browsershot 3.57.3 - Server Side XSS to LFR via HTML

Published Nov 25, 2022
·
Updated

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.

Affected Software

2 affected componentsFixes available
spatie browsershot=3.57.3
composer/spatie/browsershot<3.57.4
3.57.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/spatie/browsershot to a version that resolves this vulnerability.

    Fixed in 3.57.4
  2. Upgrade

    Upgrade browsershot to a version that resolves this vulnerability.

    Fixed in 3.57.3
  3. Configuration

    Update the application logic that calls Browsershot::html so it validates the imported JS content and blocks any URLs using the file:// protocol.

    Browsershot::html Prevent file:// protocol in imported JS content = Disallow file:// URLs in the JS content passed to Browsershot::html

Event History

Nov 25, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:30 PM

Frequently Asked Questions

1

What is the severity of CVE-2022-43984?

CVE-2022-43984 has a critical severity rating due to the potential for remote file access by attackers.

2

How do I fix CVE-2022-43984?

To fix CVE-2022-43984, upgrade to a version of Browsershot that includes validation for the imported JS content.

3

What software is affected by CVE-2022-43984?

CVE-2022-43984 affects Spatie Browsershot version 3.57.3.

4

Can CVE-2022-43984 be exploited remotely?

Yes, CVE-2022-43984 can be exploited by external attackers to access local files remotely.

5

What type of files can an attacker access through CVE-2022-43984?

An attacker can potentially access arbitrary local files due to insufficient validation in the Browsershot application.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203