Vulnerability · Published Sep 23, 2022 · Assigned by GitHub_M
CVE-2022-39239nefly-ipx subject to Server-Side Request Forgery and Stored Cross-Site Scripting via Cache Poisoning and Improper Host Validation
Medium 6.1
In plain English
A medium-severity cross-site scripting in netlify-ipx from netlify. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @netlify/ipx | 1.2.3 | GHSA-9jjv-524m-jm98 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| netlify | netlify-ipx | < 1.2.3 |
Weakness: CWE-79, CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/netlify/netlify-ipx/security/advisories/GHSA-9jjv-524m-jm98 x_refsource_CONFIRM