nefly-ipx subject to Server-Side Request Forgery and Stored Cross-Site Scripting via Cache Poisoning and Improper Host Validation
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 `` 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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@netlify/ipxnpm | < 1.2.3 | 1.2.3 |
Affected products
2- Range: < 1.2.3
Patches
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- github.com/advisories/GHSA-9jjv-524m-jm98ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-39239ghsaADVISORY
- github.com/netlify/netlify-ipx/commit/dfa7505a8d47a76fd527570dc40737a61500759bghsaWEB
- github.com/netlify/netlify-ipx/pull/61ghsaWEB
- github.com/netlify/netlify-ipx/releases/tag/v1.2.3ghsaWEB
- github.com/netlify/netlify-ipx/security/advisories/GHSA-9jjv-524m-jm98ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.