CVE-2025-49005: Next Next.js Has A Cache Poisoning Vulnerability
LOWCVE-2025-49005 is a LOW (CVSS 3.7) next.js has a cache poisoning vulnerability (CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')) affecting Next libraries in the npm ecosystem. The issue involves next.js has a cache poisoning vulnerability due to omission of the vary header. Remediation is available by upgrading affected packages to version 15.3.3.
CVE-2025-49005 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2025-49005
To remediate this vulnerability, upgrade all affected Next dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install next@15.3.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls next
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-49005, inspect your project dependencies using npm:
npm ls next
Analyze the terminal output to locate any version of Next in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 15.3.3), your application is affected.
Note: The npm ls next command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling'), where the product acts as an intermediary http agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed http requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination. In Next, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-49005 Affected Next Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
next
|
npm |
≥ 15.3.0
< 15.3.3
|
15.3.3
|
References
Frequently Asked Questions
What is CVE-2025-49005?
Which Next versions are affected?
What version fixes CVE-2025-49005?
Is next affected?
What is the CVSS score of CVE-2025-49005?
What CWE is associated with CVE-2025-49005?
How can I check npm dependencies for CVE-2025-49005?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r2fc-ccr8-96c4",
"modified" : "2025-07-03T21:49:00Z",
"published" : "2025-07-03T20:30:18Z",
"aliases" : [ "CVE-2025-49005" ],
"summary" : "Next.js has a Cache poisoning vulnerability due to omission of the Vary header",
"details" : "### Summary\n\nA cache poisoning issue in **Next.js App Router >=15.3.0 and < 15.3.3** may have allowed RSC payloads to be cached and served in place of HTML, under specific conditions involving middleware and redirects. This issue has been fixed in **Next.js 15.3.3**.\n\nUsers on affected versions should **upgrade immediately** and **redeploy** to ensure proper caching behavior.\n\nMore details: [CVE-2025-49005](https://vercel.com/changelog/cve-2025-49005)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "next"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "15.3.0"
}, {
"fixed" : "15.3.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/vercel/next.js/security/advisories/GHSA-r2fc-ccr8-96c4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49005"
}, {
"type" : "WEB",
"url" : "https://github.com/vercel/next.js/issues/79346"
}, {
"type" : "WEB",
"url" : "https://github.com/vercel/next.js/pull/79939"
}, {
"type" : "WEB",
"url" : "https://github.com/vercel/next.js/commit/ec202eccf05820b60c6126d6411fe16766ecc066"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/vercel/next.js"
}, {
"type" : "WEB",
"url" : "https://github.com/vercel/next.js/releases/tag/v15.3.3"
}, {
"type" : "WEB",
"url" : "https://vercel.com/changelog/cve-2025-49005"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-444" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-03T20:30:18Z",
"nvd_published_at" : "2025-07-03T21:15:26Z"
}
}