CVE-2022-39239

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-39239
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-39239.json
Aliases
Published
2022-09-23T08:15:09Z
Modified
2023-11-29T09:49:18.092241Z
Details

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.

References

Affected packages

Git / github.com/netlify/netlify-ipx

Affected ranges

Type
GIT
Repo
https://github.com/netlify/netlify-ipx
Events
Introduced
0The exact introduced commit is unknown
Fixed

Affected versions

v0.*

v0.0.10
v0.0.2
v0.0.3
v0.0.4
v0.0.5
v0.0.6
v0.0.7
v0.0.9

v1.*

v1.0.0
v1.0.1
v1.1.0
v1.1.1
v1.1.2
v1.1.3
v1.1.4
v1.2.0
v1.2.1
v1.2.2