CVE-2022-43983: Browsershot 3.57.2 - Server Side XSS to LFR via HTML

Published Nov 25, 2022
·
Updated

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.

Affected Software

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

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.3
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.57.2
  3. Configuration

    Update the application code or configuration so that any HTML passed to Browsershot::html is validated to ensure it does not contain URLs using the file:// protocol.

    Browsershot (Browsershot::html input validation) Disallow file:// URLs in HTML passed to Browsershot::html = Reject HTML containing file:// protocol URLs

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-43983?

The severity of CVE-2022-43983 is classified as high due to the potential for remote file access by attackers.

2

How do I fix CVE-2022-43983?

To fix CVE-2022-43983, ensure that any HTML content passed to the Browsershot::html method is sanitized and does not include file:// protocol URLs.

3

What software versions are affected by CVE-2022-43983?

CVE-2022-43983 affects Spatie Browsershot version 3.57.2.

4

What type of vulnerability is CVE-2022-43983?

CVE-2022-43983 is an arbitrary file access vulnerability due to improper validation of HTML input.

5

Can CVE-2022-43983 lead to data exposure?

Yes, CVE-2022-43983 can lead to data exposure by allowing attackers to access arbitrary local files on the server.

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