CVE-2021-39178 XSS in Image Optimization API for Next.js versions between 10.0.0 and 11.1.0
MediumCVSS 6.1
EPSS 1.1%
- Published
- Updated
- Exploit status
- No public exploit known
Description
Next.js is a React framework. Versions of Next.js between 10.0.0 and 11.0.0 contain a cross-site scripting vulnerability. In order for an instance to be affected by the vulnerability, the next.config.js file must have images.domains array assigned and the image host assigned in images.domains must allow user-provided SVG. If the next.config.js file has images.loader assigned to something other than default or the instance is deployed on Vercel, the instance is not affected by the vulnerability. The vulnerability is patched in Next.js version 11.1.1.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm next(npm) | >= 10.0.0, < 11.1.1 | 11.1.1 | Fixed |
| vercel next.js | = >= 10.0.0, < 11.1.1; >= 10.0.0, < 11.1.1 | 11.1.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm next(npm) | >= 10.0.0, < 11.1.1 | 11.1.1 |
| vercel next.js | >= 10.0.0, < 11.1.1 | 11.1.1 |
| vercel next.js | = >= 10.0.0, < 11.1.1 | No fix listed |
References
- github.com patch third-party-advisory vendor-advisory
- github.com patch release-notes third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com
- github.com product