Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-37699
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:19 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-37699
Complete source record
{
"id": "bfbd9563930ea91bd6409a68d1cbca605af5853d3365b8c358a94cfe22e6aca7",
"url": "https://osv.dev/vulnerability/CVE-2021-37699",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-37699",
"summary": "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.",
"evidence": "osv:CVE-2021-37699",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-37699",
"aliases": [
"CVE-2021-37699",
"GHSA-vxf5-wxwp-m7g9"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/vercel/next.js",
"type": "GIT",
"events": [
{
"introduced": "ef32e16fb1e65e0b8278a295cc584bbc696ae6f4"
},
{
"last_affected": "6b97bcea5ba851740404e8192fc9ebff711e1b83"
},
{
"introduced": "0ca24563be9658732eac158c31046ff58bfe78ca"
},
{
"last_affected": "e969d226999bb0fcb52ecc203b359f3715ff69bf"
},
{
"fixed": "ce4adfc02d3532e2c62ed8088660df1655e66278"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "10.0.5"
},
{
"last_affected": "10.2.0"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:vercel:next.js:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "11.0.0"
},
{
"last_affected": "11.0.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "ce4adfc02d3532e2c62ed8088660df1655e66278"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v11.1.0"
}
]
}
}
],
"versions": [
"v11.0.1",
"v11.0.1-canary.8",
"v11.0.1-canary.7",
"v11.0.1-canary.6",
"v11.0.1-canary.5",
"v11.0.1-canary.4",
"v11.0.1-canary.3",
"v11.0.1-canary.2",
"v11.0.1-canary.1",
"v11.0.1-canary.0",
"v11.0.0",
"v10.2.0",
"v10.1.4-canary.18",
"v10.1.4-canary.17",
"v10.1.4-canary.16",
"v10.1.4-canary.15",
"v10.1.4-canary.14",
"v10.1.4-canary.13",
"v10.1.4-canary.12",
"v10.1.4-canary.11",
"v10.1.4-canary.10",
"v10.1.4-canary.9",
"v10.1.4-canary.8",
"v10.1.4-canary.7",
"v10.1.4-canary.6",
"v10.1.4-canary.5",
"v10.1.4-canary.4",
"v10.1.4-canary.3",
"v10.1.4-canary.2",
"v10.1.4-canary.1",
"v10.1.4-canary.0",
"v10.1.3",
"v10.1.3-canary.2",
"v10.1.3-canary.1",
"v10.1.3-canary.0",
"v10.1.2",
"v10.1.2-canary.0",
"v10.1.1",
"v10.1.1-canary.0",
"v10.1.0",
"v10.0.10-canary.14",
"v10.0.10-canary.13",
"v10.0.10-canary.12",
"v10.0.10-canary.11",
"v10.0.10-canary.10",
"v10.0.10-canary.9",
"v10.0.10-canary.8",
"v10.0.10-canary.7",
"v10.0.10-canary.6",
"v10.0.10-canary.5",
"v10.0.10-canary.4",
"v10.0.10-canary.3",
"v10.0.10-canary.2",
"v10.0.10-canary.1",
"v10.0.10-canary.0",
"v10.0.9",
"v10.0.9-canary.8",
"v10.0.9-canary.7",
"v10.0.9-canary.6",
"v10.0.9-canary.5",
"v10.0.9-canary.4",
"v10.0.9-canary.3",
"v10.0.9-canary.2",
"v10.0.9-canary.1",
"v10.0.9-canary.0",
"v10.0.8",
"v10.0.8-canary.17",
"v10.0.8-canary.16",
"v10.0.8-canary.15",
"v10.0.8-canary.14",
"v10.0.8-canary.13",
"v10.0.8-canary.12",
"v10.0.8-canary.11",
"v10.0.8-canary.10",
"v10.0.8-canary.9",
"v10.0.8-canary.8",
"v10.0.8-canary.7",
"v10.0.8-canary.6",
"v10.0.8-canary.5",
"v10.0.8-canary.4",
"v10.0.8-canary.3",
"v10.0.8-canary.2",
"v10.0.8-canary.1",
"v10.0.8-canary.0",
"v10.0.7",
"v10.0.7-canary.8",
"v10.0.7-canary.7",
"v10.0.7-canary.6",
"v10.0.7-canary.5",
"v10.0.7-canary.4",
"v10.0.7-canary.3",
"v10.0.7-canary.2",
"v10.0.7-canary.1",
"v10.0.7-canary.0",
"v10.0.6",
"v10.0.6-canary.12",
"v10.0.6-canary.11",
"v10.0.6-canary.10",
"v10.0.6-canary.9",
"v10.0.6-canary.8",
"v10.0.6-canary.7",
"v10.0.6-canary.6",
"v10.0.6-canary.5",
"v10.0.6-canary.4",
"v10.0.6-canary.3",
"v10.0.6-canary.2",
"v10.0.6-canary.1",
"v10.0.6-canary.0",
"v10.0.5"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37699.json"
}
}
],
"modified": "2026-10-20T10:53:51.537735613Z",
"provider": "osv",
"references": [
"https://github.com/vercel/next.js/releases/tag/v11.1.0",
"https://github.com/vercel/next.js/security/advisories/GHSA-vxf5-wxwp-m7g9"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-37699",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384695,
"published_at": "2021-08-12T00:15:06.997+00:00"
}