CVE-2022-39239

Medium

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.

SeverityMedium
CVSS6.1
Exploit probability—
ProductNuxtjs Netlify-ipx
PublishedSep 23, 2022
First seenSep 23, 2022

How to fix

Update
  • nuxtjs netlify-ipx1.2.3 or later
  • @netlify/ipx1.2.3 or later

Affected products

ProductAffected versionsFixed in
nuxtjs netlify-ipxv < 1.2.31.2.3
@netlify/ipxnpmv < 1.2.31.2.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2022-39239 · Nuxtjs Netlify-ipx · Dark Radar