CVEMETERBack to radar
OFFICIAL RECORD · JavaScript packages

CVE-2025-57822

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 6.5 · medium

Next.js Improper Middleware Redirect Handling Leads to SSRF

Next.js is a React framework for building full-stack web applications. Prior to versions 14.2.32 and 15.4.7, when next() was used without explicitly passing the request object, it could lead to SSRF in self-hosted applications that incorrectly forwarded user-supplied headers. This vulnerability has been fixed in Next.js versions 14.2.32 and 15.4.7. All users implementing custom middleware logic in self-hosted environments are strongly encouraged to upgrade and verify correct usage of the next() function.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 2.789% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 6.5 · published by GitHub_M
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
Assessment source · checked 2026-11-19T12:57:40.200Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:57:40.200ZCVE Program
epssverified2026-11-19T18:27:12.749ZFIRST EPSS
patchesverified2026-11-19T12:51:57.337ZOSV
affectedverified2026-11-19T12:57:40.200ZCVE Program
lifecycleverified2026-11-19T12:57:40.200ZCVE Program

Affected versions and configuration

vercel next.js; default status: unknown: < 14.2.32 [affected; scheme: unspecified]; < 15.4.7 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "vercel",
      "product": "next.js",
      "versions": [
        {
          "status": "affected",
          "version": "< 14.2.32"
        },
        {
          "status": "affected",
          "version": "< 15.4.7"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2025-57822",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2025-09-02T17:26:15.763023Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-09-02T17:26:25.016Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-4342-x723-ch2f",
  "aliases": [
    "CVE-2025-57822"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0.9.9"
            },
            {
              "fixed": "14.2.32"
            }
          ]
        }
      ],
      "package": {
        "name": "next",
        "purl": "pkg:npm/next",
        "ecosystem": "npm"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-4342-x723-ch2f/GHSA-4342-x723-ch2f.json"
      }
    },
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "15.0.0-canary.0"
            },
            {
              "fixed": "15.4.7"
            }
          ]
        }
      ],
      "package": {
        "name": "next",
        "purl": "pkg:npm/next",
        "ecosystem": "npm"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-4342-x723-ch2f/GHSA-4342-x723-ch2f.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/vercel/next.js/security/advisories/GHSA-4342-x723-ch2f",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-57822",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/vercel/next.js/commit/9c9aaed5bb9338ef31b0517ccf0ab4414f2093d8",
      "type": "WEB"
    },
    {
      "url": "https://github.com/vercel/next.js",
      "type": "PACKAGE"
    },
    {
      "url": "https://vercel.com/changelog/cve-2025-57822",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-918"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2025-08-29T22:15:32Z",
    "github_reviewed_at": "2025-08-29T21:33:09Z"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundarynpm / packagenextNot a distribution channel14.2.32Official record
ecosystem-boundarynpm / packagenextNot a distribution channel15.4.7Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history