CVE-2022-23646: Improper CSP in Image Optimization API for Next.js

Published Feb 17, 2022
·
Updated

Next.js is a React framework. Starting with version 10.0.0 and prior to version 12.1.0, Next.js is vulnerable to User Interface (UI) Misrepresentation of Critical Information. In order to be affected, the next.config.js file must have an 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, the instance is not affected. Version 12.1.0 contains a patch for this issue. As a workaround, change next.config.js to use a different loader configuration other than the default.

Affected Software

1 affected component
Vercel Next.js Node.js>=10.0.0<12.1.0

Event History

Feb 17, 2022
CVE Published
via MITRE·08:35 PM
Data Sourced
via MITRE·08:35 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the vulnerability ID of this Next.js vulnerability?

The vulnerability ID of this Next.js vulnerability is CVE-2022-23646.

2

What is the severity level of CVE-2022-23646?

The severity level of CVE-2022-23646 is high with a CVSS score of 7.5.

3

How does the vulnerability impact Next.js?

The vulnerability impacts Next.js by allowing User Interface (UI) Misrepresentation of Critical Information.

4

Which version of Next.js is affected by this vulnerability?

Versions 10.0.0 to 12.0.9 of Next.js are affected by this vulnerability.

5

What is the fix for CVE-2022-23646 in Next.js?

To fix CVE-2022-23646 in Next.js, upgrade to version 12.1.0 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203