What’s Vulnerable › Vulnerabilities
CVE-2022-39239: nefly-ipx subject to Server-Side Request Forgery and Stored Cross-Site Scripting via Cache Poisoning and Improper Host Validation
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-09-23 · updated 2026-06-17
- Weakness: CWE-79
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.
Affected products
- netlify-ipx: before 1.2.3 — fixed in 1.2.3
How to fix
Upgrade to a fixed version: netlify-ipx 1.2.3. Check the vendor advisory for mitigations.
References
- https://github.com/netlify/netlify-ipx/security/advisories/GHSA-9jjv-524m-jm98
- https://github.com/netlify/netlify-ipx/security/advisories/GHSA-9jjv-524m-jm98
Get alerted when CVE-2022-39239 or the next vulnerability affects your stack