Next.js: SVG rejection bypass in the image optimization
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmnext |
< 16.4.5→ 16.4.5 |
16.4.5 |
| npmnext |
>= 15.0.0, <= 15.5.28→ Not listed |
Not listed |
| vercelnext.js | — | Not listed |
Original description The description as published by the source.
On self-hosted deployments, the Next.js image optimizer (/_next/image) can be made to process an attacker-supplied SVG even when SVG support is disabled with dangerouslyAllowSVG: false (the default). This reaches an SVG parser the application intended to keep disabled, increasing exposure to denial of service and SVG decoder vulnerabilities.
Source: GitHub Repository Security Advisories (Game のスタック) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nextjs.org
- web nvd.nist.gov
- web github.com