7.5
CWE
451
Advisory Published
Updated

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

First published: Thu 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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Vercel Next.js>=10.0.0<12.1.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

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

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

  • 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.

  • How does the vulnerability impact Next.js?

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

  • 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.

  • 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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203