XSS in Netlify Netlify-Ipx
CVE-2022-39239
- CVSS v3
- 6.1 Medium
- Public exploits
- None known
- EPSS
- 0.005 · 41.9th percentile
- Published
- 2022-09-23
What to do
- Fixed in
1.2.3- Affected
- 2 affected products
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- Required
UI:R - Scope
- Changed
S:C - Confidentiality
- Low
C:L - Integrity
- Low
I:L - Availability
- None
A:N
EPSS exploit prediction
EPSS 0.005, 41.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Netlify Netlify-Ipx — versions < 1.2.3
- Nuxtjs Netlify-Ipx
Weakness classification (CWE)
References
- github.com/netlify/netlify-ipx/security/advisories/GHSA-9jjv-524m-jm98 (Third Party Advisory)