{"answers":{"affected":"2 open source packages ship an affected version, including @netlify/ipx. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-39239 in the wild and no public exploit code.","fix":"Upgrade @netlify/ipx to 1.2.3 or later.","what":"CVE-2022-39239 is a medium-severity server-side request forgery vulnerability in netlify-ipx, published on 23 Sep 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-39239 and fix it if it is affected.\n\nWhat it is: CVE-2022-39239 is a medium-severity server-side request forgery vulnerability in netlify-ipx, published on 23 Sep 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-39239 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @netlify/ipx (npm): affected all versions; fixed in 1.2.3\n- @netlify/ipx (npm): affected all versions; fixed in 1.2.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-2022-39239/ (Markdown: https://insights.sbomify.com/CVE-2022-39239/index.md)","id":"CVE-2022-39239","markdown":"https://insights.sbomify.com/CVE-2022-39239/index.md","name":"CVE-2022-39239","record":{"aliases":["GHSA-9jjv-524m-jm98"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Netlify image optimization","requires_auth":"none","summary":"Attackers can bypass domain allowlists to fetch arbitrary images via SSRF and inject malicious scripts through cached SVGs, leading to XSS.","user_interaction":"required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"netlify-ipx","vendor":"nuxtjs"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"netlify-ipx is an on-Demand image optimization for Netlify using ipx. In versions prior to 1.2.3, an attacker can bypass the source image domain allowlist by sending specially crafted headers, causing the handler to load and return arbitrary images. Because the response is cached globally, this image will then be served to visitors without requiring those headers to be set. XSS can be achieved by requesting a malicious SVG with embedded scripts, which would then be served from the site domain. Note that this does not apply to images loaded in `\u003cimg\u003e` tags, as scripts do not execute in this context. The image URL can be set in the header independently of the request URL, meaning any site images that have not previously been cached can have their cache poisoned. This problem has been fixed in version 1.2.3. As a workaround, cached content can be cleared by re-deploying the site.","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":"@netlify/ipx vulnerable to Full Response SSRF and Stored XSS via Cache Poisoning and Improper Host Validation","id":"CVE-2022-39239","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"ssrf","year":"2022"},"n_packages":2,"n_references":1,"next":{"headline":"Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in MyGraph","id":"CVE-2022-39240"},"packages":[{"ecosystem":"npm","fixed":["1.2.3"],"introduced":["0"],"last_affected":[],"package":"@netlify/ipx","purl":null,"source":"GHSA-9jjv-524m-jm98"},{"ecosystem":"npm","fixed":["1.2.3"],"introduced":["0"],"last_affected":[],"package":"@netlify/ipx","purl":"pkg:npm/%40netlify/ipx","source":"GHSA-9jjv-524m-jm98"}],"prev":{"headline":"Improper Authentication in Arvados when using PAM as identity provider","id":"CVE-2022-39238"},"products":["netlify-ipx"],"published":"2022-09-23","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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["netlify"]},"summary":"Attackers can bypass domain allowlists to fetch arbitrary images via SSRF and inject malicious scripts through cached SVGs, leading to XSS.","url":"https://insights.sbomify.com/CVE-2022-39239/"}