{"answers":{"affected":"2 open source packages ship an affected version, including @jmondi/url-to-png.","exploited":"There is no known exploitation of CVE-2024-37169 in the wild and no public exploit code.","fix":"Upgrade @jmondi/url-to-png to 2.0.3 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-37169 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2024-37169 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @jmondi/url-to-png (npm): affected all versions; fixed in 2.0.3\n- @jmondi/url-to-png (npm): affected all versions; fixed in 2.0.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-37169/ (Markdown: https://insights.sbomify.com/CVE-2024-37169/index.md)","id":"CVE-2024-37169","markdown":"https://insights.sbomify.com/CVE-2024-37169/index.md","name":"CVE-2024-37169","record":{"aliases":["GHSA-665w-mwrr-77q3"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"URL to PNG utility","requires_auth":"none","summary":"Attackers can read arbitrary files by exploiting the screenshot feature's file wrapper, requiring an upgrade to mitigate.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"@jmondi/url-to-png arbitrary file read via Playwright's screenshot feature exploiting file wrapper","id":"CVE-2024-37169","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":2,"n_references":5,"next":{"headline":"[CVE-2024-37171] Server-Side Request Forgery (SSRF) in SAP Transportation Management (Collaboration Portal)","id":"CVE-2024-37171"},"packages":[{"ecosystem":"npm","fixed":["2.0.3"],"introduced":["0"],"last_affected":[],"package":"@jmondi/url-to-png","purl":null,"source":"GHSA-665w-mwrr-77q3"},{"ecosystem":"npm","fixed":["2.0.3"],"introduced":["0"],"last_affected":[],"package":"@jmondi/url-to-png","purl":"pkg:npm/%40jmondi/url-to-png","source":"GHSA-665w-mwrr-77q3"}],"prev":{"headline":"@grpc/grpc-js can allocate memory for incoming messages well above configured limits","id":"CVE-2024-37168"},"products":["url-to-png"],"published":"2024-06-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["jasonraimondi"]},"summary":"Attackers can read arbitrary files by exploiting the screenshot feature's file wrapper, requiring an upgrade to mitigate.","url":"https://insights.sbomify.com/CVE-2024-37169/"}