{"id":"CVE-2024-39918","published":"2024-07-15T19:53:20Z","modified":"2024-08-02T04:33:11Z","title":"Path Traveral in @jmondi/url-to-png","vendor":"jasonraimondi","product":"url-to-png","tier":"tail","description":{"text":"@jmondi/url-to-png is an open source URL to PNG utility featuring parallel rendering using Playwright for screenshots and with storage caching via Local, S3, or CouchDB. Input of the `ImageId` in the code is not sanitized and may lead to path traversal. This allows an attacker to store an image in an arbitrary location that the server has permission to access. This issue has been addressed in version 2.1.2 and all users are advised to upgrade. There are no known workarounds for this vulnerability.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00728,"percentile":0.50085,"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-vvmv-wrvp-9gjr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jasonraimondi/url-to-png/commit/e4eaeca6493b21cd515b582fd6c0af09ede54507","tags":["x_refsource_MISC"]},{"url":"https://github.com/jasonraimondi/url-to-png/blob/e43098e0af3a380ebc044e7f303a83933b94b434/src/middlewares/extract_query_params.ts#L75","tags":["x_refsource_MISC"]}],"priority":{"score":13.0,"factors":[{"name":"EPSS percentile","points":10.02},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"jasonraimondi","affectedVersions":[{"vendor":"jasonraimondi","product":"url-to-png","versions":["< 2.1.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-16T14:51:36.893384Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@jmondi/url-to-png","vulnerableRanges":["<2.1.2"],"patched":["2.1.2"],"from":["GHSA-vvmv-wrvp-9gjr"],"provenance":"source"}],"summary":{"text":"The url-to-png utility from jasonraimondi (@jmondi/url-to-png) fails to sanitize the ImageId input, which allows path traversal when the component stores rendered images. A remote attacker with low-privileged credentials, requiring no user interaction, can write an image to an arbitrary location the server process has permission to access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:48Z"},"euvd":{"id":"EUVD-2024-2427","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jasonraimondi-url-to-png-cve-2024-37169","parents":[{"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}],"package":"npm:@jmondi/url-to-png"}}