CVE-2021-37699: Open Redirect in Next.js versions below 11.1.0

Published Aug 11, 2021
·
Updated

Next.js is an open source website development framework to be used with the React library. In affected versions specially encoded paths could be used when pages/error.js was statically generated allowing an open redirect to occur to an external site. In general, this redirect does not directly harm users although can allow for phishing attacks by redirecting to an attacker's domain from a trusted domain. We recommend everyone to upgrade regardless of whether you can reproduce the issue or not. The issue has been patched in release 11.1.0.

Affected Software

2 affected components
Vercel Next.js Node.js>=10.0.5<=10.2.0
Vercel Next.js Node.js>=11.0.0<=11.0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Next.js to a version that resolves this vulnerability.

    Fixed in 11.1.0

Event History

Aug 11, 2021
CVE Published
via MITRE·11:15 PM
Data Sourced
via MITRE·11:15 PM
DescriptionSeverityWeakness
Aug 12, 2021
Data Sourced
via NVD·12:15 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is Next.js?

Next.js is an open source website development framework to be used with the React library.

2

What is the vulnerability ID for Next.js?

The vulnerability ID for Next.js is CVE-2021-37699.

3

What is the severity of CVE-2021-37699?

The severity of CVE-2021-37699 is medium with a CVSS score of 6.1.

4

How does CVE-2021-37699 affect Next.js?

In affected versions of Next.js, specially encoded paths could be used to cause an open redirect to an external site when pages/_error.js was statically generated.

5

How can I fix CVE-2021-37699 in Next.js?

To fix CVE-2021-37699 in Next.js, update to version 11.1.0 or newer. Refer to the Next.js security advisory for more details.

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