Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Jul 27, 2026
Server-Side Request Forgery (SSRF) and open redirect in Next.js rewrite/redirect rules when the destination hostname is dynamically constructed from user-controlled input. Versions 12.0.0 to 15.5.20 and 16.0.0 to 16.2.10 are affected, allowing a remote attacker to proxy requests to arbitrary hosts or redirect users. Patched versions 15.5.21 and 16.2.11 are available; no active exploitation has been reported.
Earlier versions of this analysis (1)
Server-Side Request Forgery in Next.js (npm 'next' 12.0.0 through 15.5.20 and 16.0.0 through 16.2.10) arises when a rewrites() or redirects() rule constructs its external destination hostname from request-controlled input, letting an attacker override the intended hostname suffix and point the proxy at an arbitrary host; for rewrites the server fetches that host and returns the response from the application origin (SSRF), while for redirects it yields an Open Redirect. Affected are applications whose next.config.js places a dynamic path segment or a 'has' query capture directly inside the destination hostname. There is no public exploit identified at time of analysis and no CVSS score was supplied, but vendor patches exist (15.5.21 and 16.2.11).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Know when Open Redirect gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N
Network-reachable with no auth or interaction against a vulnerable config; SSRF crosses into backend systems (S:C) exposing internal data (C:H) with limited integrity impact via forged proxied requests.
Primary rating from Vendor (https://github.com/vercel/next.js).
CVSS VectorVendor: https://github.com/vercel/next.js
Lifecycle Timeline
3DescriptionCVE.org
Impact
A rewrites() or redirects() rule that builds its external destination hostname from request-controlled input can be pointed at an arbitrary hostname, regardless of the rule's hostname suffix. For a rewrite, Next.js proxies the request to that arbitrary host and serves the response from the application's origin, leading to Server-Side Request forgery. A redirects() rule configured this way is vulnerable to an Open Redirect.
This affects any destination that puts a dynamic segment in the hostname, whether from the path:
// next.config.js
module.exports = {
async rewrites() {
return [
{
source: '/:tenant',
destination: 'https://:tenant.api.example.com',
},
]
},
}or from a has capture:
// next.config.js
module.exports = {
async rewrites() {
return [
{
source: '/',
has: [{ type: 'query', key: 'region', value: '(?<region>.+)' }],
destination: 'https://:region.api.example.com',
},
]
},
}Workarounds
If you cannot upgrade immediately, do not build the hostname of an external rewrites() or redirects() destination from user-controlled input. If a dynamic subdomain is required, constrain the value to hostname-safe characters: value: '(?<region>[a-z0-9-]+)'.
Blast Radius
ecosystem impact- 2 npm packages depend on next (2 direct, 0 indirect)
Ecosystem-wide dependent count for version 12.0.0.
Executive ViewAI
Next.js applications using versions 12.0.0-15.5.20 or 16.0.0-16.2.10 face a vulnerability enabling attackers to redirect internal requests to attacker-controlled hosts or send users to malicious sites, with no public exploit identified at time of analysis. Vendor patches (15.5.21 and 16.2.11) are available and should be deployed within days to prevent potential data exposure and user compromise.
Within 24 hours, inventory all Next.js applications and identify those running affected versions 12.0.0-15.5.20 or 16.0.0-16.2.10, then audit next.config.js files for rewrites() or redirects() rules using dynamic path segments or query captures in destination hostnames. Within 7 days, upgrade to Next.js 15.5.21 or 16.2.11 (matching your major version in production) and validate rewrites and redirects functionality in staging environments. Within 30 days, complete production rollout of patches, analyze access logs for potential exploitation attempts, and establish code review controls to prevent similar misconfigurations of rewrites and redirects rules going forward.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
More in Open Redirect
View allA malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca
GFI Kerio Control versions 9.2.5 through 9.4.5 contain an HTTP response splitting vulnerability in the dest parameter of
PHP through 7.0.8 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect
Multiple open redirect vulnerabilities in Apache Struts 2.0.0 through 2.3.15 allow remote attackers to redirect users to
When the default servlet in Apache Tomcat versions 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33 and 7.0.23 to 7.0.90 returned a r
In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium
Open redirect vulnerability in age-verification.php in the Age Verification plugin 0.4 and earlier for WordPress allows
Open redirect vulnerability in Kaseya Virtual System Administrator (VSA) 7.x before 7.0.0.29, 8.x before 8.0.0.18, 9.0 b
Vulnerability in the Oracle Applications Framework component of Oracle E-Business Suite (subcomponent: Popup windows (li
Unspecified vulnerability in the Oracle Application Server Single Sign-On component in Oracle Fusion Middleware 10.1.4.3
Flarum is open source discussion platform software. Rated medium severity (CVSS 6.5), this vulnerability is remotely exp
Open redirect vulnerability in Novius OS 5.0.1 (Elche) allows remote attackers to redirect users to arbitrary web sites
EUVD-2026-49378
GHSA-p9j2-gv94-2wf4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB