CVE-2022-39239 Details
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 `<img>` 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.
A vulnerability in netlify-ipx, an on-demand image optimization tool for Netlify, allows attackers to bypass the source image domain allowlist in versions prior to 1.2.3. By sending specially crafted headers, an attacker can manipulate the handler into loading and returning arbitrary images. These images are globally cached and subsequently served to visitors without the need for the original headers. This vulnerability can be exploited to achieve cross-site scripting (XSS) by requesting a malicious SVG containing embedded scripts, which would then be delivered from the site domain. However, this does not affect images displayed in `<img>` tags, as scripts do not execute in that context. The vulnerability arises because the image URL can be specified in the header, independently of the request URL, allowing for cache poisoning of any site images that have not been previously cached.
This vulnerability has been fixed in netlify-ipx version 1.2.3. For users on Netlify, the issue is no longer exploitable as the CDN now sanitizes the relevant headers. Cached content can be cleared by redeploying the site.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/netlify/netlify-ipx/security/advisories/GHSA-9jjv-524m-jm98 | CVE | Third Party Advisory |
| https://github.com/netlify/netlify-ipx/security/advisories/GHSA-9jjv-524m-jm98 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nuxtjs netlify-ipx | < 1.2.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Sep 27, 2022 | Initial Analysis | [email protected] |