{"id":"CVE-2024-37169","published":"2024-06-10T21:35:38Z","modified":"2024-08-02T03:50:55Z","title":"@jmondi/url-to-png arbitrary file read via Playwright's screenshot feature exploiting file wrapper","vendor":"jasonraimondi","product":"url-to-png","tier":"tail","description":{"text":"@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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00529,"percentile":0.45668,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/jasonraimondi/url-to-png/security/advisories/GHSA-665w-mwrr-77q3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jasonraimondi/url-to-png/issues/47","tags":["x_refsource_MISC"]},{"url":"https://github.com/jasonraimondi/url-to-png/commit/9336020c5e603323f5cf4a2ac3bb9a7735cf61f7","tags":["x_refsource_MISC"]},{"url":"https://github.com/jasonraimondi/url-to-png/releases/tag/v2.0.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/user-attachments/files/15536336/Arbitrary.File.Read.via.Playwright.s.Screenshot.Feature.Exploiting.File.Wrapper.pdf","tags":["x_refsource_MISC"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":9.13},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"jasonraimondi","affectedVersions":[{"vendor":"jasonraimondi","product":"url-to-png","versions":["< 2.0.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-06-11T17:56:01.581318Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@jmondi/url-to-png","vulnerableRanges":["<2.0.3"],"patched":["2.0.3"],"from":["GHSA-665w-mwrr-77q3"],"provenance":"source"}],"summary":{"text":"The @jmondi/url-to-png self-hosted URL-to-PNG utility, in versions before 2.0.3, contains a path traversal flaw that lets its Playwright screenshot feature read arbitrary local files through the file wrapper. An attacker who can submit URLs to the service can read files from the host, with no authentication or user interaction required; the fix in 2.0.3 restricts input URLs to http and https, and upgrading is the only known mitigation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:49:32Z"},"euvd":{"id":"EUVD-2024-1941","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jasonraimondi-url-to-png-cve-2024-37169","children":[{"from":"CVE-2024-37169","to":"CVE-2024-39918","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@jmondi/url-to-png","fromFixed":"2.0.3","toFixed":"2.1.2","daysApart":35},{"kind":"same-code","provenance":"machine","files":["src/middlewares/extract_query_params.ts"],"commits":["https://github.com/jasonraimondi/url-to-png/commit/9336020c5e603323f5cf4a2ac3bb9a7735cf61f7","https://github.com/jasonraimondi/url-to-png/commit/e4eaeca6493b21cd515b582fd6c0af09ede54507"],"basis":"shared function","functions":["handleExtractQueryParamsMiddleware"]}]}],"packageHistory":[{"cve":"CVE-2024-37169","published":"2024-06-10","fixed":"2.0.3","kev":false},{"cve":"CVE-2024-39918","published":"2024-07-15","fixed":"2.1.2","kev":false},{"cve":"CVE-2024-39919","published":"2024-07-15","fixed":"2.1.2","kev":false,"link":{"from":"CVE-2024-37169","to":"CVE-2024-39919","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@jmondi/url-to-png","fromFixed":"2.0.3","toFixed":"2.1.2","daysApart":35}]}}],"package":"npm:@jmondi/url-to-png"}}