GitHub Advisoryadvisory · Packagist
GHSA-c9f5-29f6-c35w Browsershot Improper Input Validation vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2024-21549
- Ecosystem
- Packagist
- Packages
- spatie/browsershot
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- Weaknesses
- CWE-125, CWE-20, CWE-200
- Reviewed
- 2024-12-20
Affected packages
• Packagist spatie/browsershot: < 5.0.3 → fixed in 5.0.3
Description
Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation through the setUrl method. An attacker can exploit this vulnerability by utilizing view-source:file://, which allows for arbitrary file reading on a local file.
Note:
This is a bypass of the fix for CVE-2024-21544.
Related
Alias · CVE (1)
- CVE-2024-21549 Versions of the package spatie/browsershot before 5.0.3 are vulnerable to Improper Input Validation due to improper URL validation in the… vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-21549 advisory
- https://github.com/spatie/browsershot/commit/f791ce0ae8dd99367dbfa30588ee31e1196e1728 web
- https://github.com/spatie/browsershot package
- https://github.com/spatie/browsershot/discussions/906 web
- https://security.snyk.io/vuln/SNYK-PHP-SPATIEBROWSERSHOT-8533023 web