CVE-2024-37169 @jmondi/url-to-png arbitrary file read via Playwright's screenshot feature exploiting file wrapper
Attackers can read arbitrary files by exploiting the screenshot feature's file wrapper, requiring an upgrade to mitigate.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-37169?
CVE-2024-37169 is a medium-severity path traversal vulnerability in jasonraimondi url-to-png, published on 10 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
@jmondi/url-to-png is a self-hosted URL to PNG utility. Versions prior to 2.0.3 are vulnerable to arbitrary file read if a threat actor uses the Playright's screenshot feature to exploit the file wrapper. Version 2.0.3 mitigates this issue by requiring input URLs to be of protocol `http` or `https`. No known workarounds are available aside from upgrading.
Weakness: CWE-22
Which versions are affected by CVE-2024-37169?
2 open source packages ship an affected version, including @jmondi/url-to-png.
| Package | Affected | Fixed in |
|---|---|---|
@jmondi/url-to-png npm | All versions | 2.0.3 |
@jmondi/url-to-png npm | All versions | 2.0.3 |
How do I fix CVE-2024-37169?
Upgrade @jmondi/url-to-png to 2.0.3 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-37169 being exploited?
There is no known exploitation of CVE-2024-37169 in the wild and no public exploit code.
Sources
Also known as GHSA-665w-mwrr-77q3.