Vulnerability · Published Jun 10, 2024 · Assigned by GitHub_M

CVE-2024-37169@jmondi/url-to-png arbitrary file read via Playwright's screenshot feature exploiting file wrapper

Medium 5.3

In plain English

A medium-severity path traversal in url-to-png from jasonraimondi. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.5%top 55.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@jmondi/url-to-png2.0.3GHSA-665w-mwrr-77q3

Affected products (as reported)

VendorProductVersions
jasonraimondi url-to-png < 2.0.3

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

References