{"answers":{"affected":"2 open source packages ship an affected version, including @jmondi/url-to-png.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39919 exists.","fix":"Upgrade @jmondi/url-to-png to 2.1.2 or later.","what":"CVE-2024-39919 is a low-severity server-side request forgery vulnerability in jasonraimondi url-to-png, published on 15 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-39919 and fix it if it is affected.\n\nWhat it is: CVE-2024-39919 is a low-severity server-side request forgery vulnerability in jasonraimondi url-to-png, published on 15 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39919 exists.\n\nAffected packages and fixed versions:\n- @jmondi/url-to-png (npm): affected all versions; fixed in 2.1.2\n- @jmondi/url-to-png (npm): affected all versions; fixed in 2.1.2\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-39919/ (Markdown: https://insights.sbomify.com/CVE-2024-39919/index.md)","id":"CVE-2024-39919","markdown":"https://insights.sbomify.com/CVE-2024-39919/index.md","name":"CVE-2024-39919","record":{"aliases":["GHSA-342q-2mc2-5gmp"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js screenshot library","requires_auth":"low_privilege","summary":"Attackers can capture screenshots of internal localhost services via the url-to-png library, exposing sensitive internal data.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":3.1,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"@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. The package includes an `ALLOW_LIST` where the host can specify which services the user is permitted to capture screenshots of. By default, capturing screenshots of web services running on localhost, 127.0.0.1, or the [::] is allowed. If someone hosts this project on a server, users could then capture screenshots of other web services running locally. This issue has been addressed in version 2.1.1 with the addition of a blocklist. Users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Capture screenshot of localhost web services (unauthenticated pages) in @jmondi/url-to-png","id":"CVE-2024-39919","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"ssrf","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"Information disclosure in n/a","id":"CVE-2024-39920"},"packages":[{"ecosystem":"npm","fixed":["2.1.2"],"introduced":["0"],"last_affected":[],"package":"@jmondi/url-to-png","purl":null,"source":"GHSA-342q-2mc2-5gmp"},{"ecosystem":"npm","fixed":["2.1.2"],"introduced":["0"],"last_affected":[],"package":"@jmondi/url-to-png","purl":"pkg:npm/%40jmondi/url-to-png","source":"GHSA-342q-2mc2-5gmp"}],"prev":{"headline":"Path Traveral in @jmondi/url-to-png","id":"CVE-2024-39918"},"products":["url-to-png"],"published":"2024-07-15","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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["jasonraimondi"]},"summary":"Attackers can capture screenshots of internal localhost services via the url-to-png library, exposing sensitive internal data.","url":"https://insights.sbomify.com/CVE-2024-39919/"}