CVEMETERBack to radar
OFFICIAL RECORD · JavaScript packages

CVE-2026-40074

PUBLISHEDOfficial status check: verifiedCVSS 4.0: 6.3 · medium

SvelteKit's invalidated redirect in handle hook causes Denial-of-Service

SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. Prior to 2.57.1, redirect, when called from inside the handle server hook with a location parameter containing characters that are invalid in a HTTP header, will cause an unhandled TypeError. This could result in DoS on some platforms, especially if the location passed to redirect contains unsanitized user input. This vulnerability is fixed in 2.57.1.

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

Severity and exploitation evidence

EPSS: 0.372% · 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-19T20:18:55.078Z. Public exploit availability is not used to set this status.

CVSS 4.0 · 6.3 · published by GitHub_M
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L
Assessment source · checked 2026-11-19T19:05:34.288Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T20:18:55.078ZCISA KEV
cvssverified2026-11-19T19:05:34.288ZCVE Program
epssverified2026-11-19T20:08:18.563ZFIRST EPSS
patchesverified2026-11-19T19:03:45.862ZOSV
affectedverified2026-11-19T19:05:34.288ZCVE Program
lifecycleverified2026-11-19T19:05:34.288ZCVE Program

Affected versions and configuration

sveltejs kit; default status: unknown: < 2.57.1 [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": "sveltejs",
      "product": "kit",
      "versions": [
        {
          "status": "affected",
          "version": "< 2.57.1"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2026-40074",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "yes"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-04-14T14:17:18.734745Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-04-14T14:17:29.422Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-3f6h-2hrp-w5wx",
  "aliases": [
    "CVE-2026-40074"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "SEMVER",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.57.1"
            }
          ]
        }
      ],
      "package": {
        "name": "@sveltejs/kit",
        "purl": "pkg:npm/%40sveltejs/kit",
        "ecosystem": "npm"
      },
      "versions": [],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-3f6h-2hrp-w5wx/GHSA-3f6h-2hrp-w5wx.json",
        "last_known_affected_version_range": "<= 2.57.0"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V4",
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/sveltejs/kit/security/advisories/GHSA-3f6h-2hrp-w5wx",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40074",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/sveltejs/kit/commit/10d7b44425c3d9da642eecce373d0c6ef83b4fcd",
      "type": "WEB"
    },
    {
      "url": "https://github.com/sveltejs/kit",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.57.1",
      "type": "WEB"
    },
    {
      "url": "https://github.com/sveltejs/kit/releases/tag/@sveltejs/[email protected]",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-755"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": "2026-04-10T17:17:12Z",
    "github_reviewed_at": "2026-04-10T17:32:00Z"
  }
}
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 / package@sveltejs/kitNot a distribution channel2.57.1Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history