CVE-2025-67647: @sveltejs/kit Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-j62c-4x62-9r35
CWE-400 CWE-918 CWE-248
Published
Advisory Summary

CVE-2025-67647 is a HIGH denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting @sveltejs/kit libraries in the npm ecosystem. The issue involves sveltekit is vulnerable to denial of service and possible ssrf when using prerendering. Remediation is available by upgrading affected packages to version 2.49.5, 5.5.1.

CVE-2025-67647 at a Glance

CVE Identifier CVE-2025-67647
GHSA Identifier GHSA-j62c-4x62-9r35
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product @sveltejs/kit
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-67647

To remediate this vulnerability, upgrade all affected @sveltejs/kit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@sveltejs/kit fixed: 2.49.5
npm install @sveltejs/kit@2.49.5
@sveltejs/adapter-node fixed: 5.5.1
npm install @sveltejs/adapter-node@5.5.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @sveltejs/kit

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-67647, inspect your project dependencies using npm:

npm ls @sveltejs/kit

Analyze the terminal output to locate any version of @sveltejs/kit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.49.5), your application is affected.

Note: The npm ls @sveltejs/kit 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-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In @sveltejs/kit, 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

### Summary Versions of SvelteKit are vulnerable to a server side request forgery (SSRF) and denial of service (DoS) under certain conditions. ### Details Affected versions from 2.44.0 onwards are vulnerable to DoS if: - your app has at least one prerendered route (`export const prerender = true`) Affected versions from 2.19.0 onwards are vulnerable to DoS and SSRF if: - your app has at least one prerendered route (`export const prerender = true`) - AND you are using `adapter-node` without a configured `ORIGIN` environment variable, and you are not using a reverse proxy that implements Host header validation ### Impact The DoS causes the running server process to end. The SSRF allows access to internal services that can be reached without authentication when fetched from SvelteKit's server runtime. It is also possible to obtain an SXSS via cache poisoning, by forcing a potential CDN to cache an XSS returned by the attacker's server (the latter being able to specify the cache-control of their choice). ### Credits - Allam Rachid ([zhero;](https://zhero-web-sec.github.io/research-and-things/)) - Allam Yasser (inzo) - d-xuan ([wednesday](https://d-xuan.github.io/wednesday/))

CVE-2025-67647 Affected @sveltejs/kit Versions

2 component(s)
Fixed Versions:
2.49.55.5.1
Product / Package Ecosystem Affected Versions Fixed Version
@sveltejs/kit
npm
≥ 2.19.0
< 2.49.5
2.49.5
@sveltejs/adapter-node
npm
≥ 5.4.1
< 5.5.1
5.5.1

References

Frequently Asked Questions

What is CVE-2025-67647?
CVE-2025-67647 is a security vulnerability in @sveltejs/kit involving SvelteKit is vulnerable to denial of service and possible SSRF when using prerendering under CWE-400: Uncontrolled Resource Consumption.
Which @sveltejs/kit versions are affected?
Affected versions include releases prior to 2.49.5, 5.5.1 across affected packages: @sveltejs/kit, @sveltejs/adapter-node.
What version fixes CVE-2025-67647?
Upgrading to 2.49.5, 5.5.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @sveltejs/kit affected?
Yes, @sveltejs/kit is affected in releases prior to 2.49.5. Upgrade your dependency to 2.49.5 or later.
Is @sveltejs/adapter-node affected?
Yes, @sveltejs/adapter-node is affected in releases prior to 5.5.1. Upgrade your dependency to 5.5.1 or later.
What CWE is associated with CVE-2025-67647?
CVE-2025-67647 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check npm dependencies for CVE-2025-67647?
Run the dependency tree command: 'npm ls @sveltejs/kit'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j62c-4x62-9r35",
  "modified" : "2026-01-15T22:33:31Z",
  "published" : "2026-01-15T18:09:59Z",
  "aliases" : [ "CVE-2025-67647" ],
  "summary" : "SvelteKit is vulnerable to denial of service and possible SSRF when using prerendering",
  "details" : "### Summary\n\nVersions of SvelteKit are vulnerable to a server side request forgery (SSRF) and denial of service (DoS) under certain conditions.\n\n### Details\n\nAffected versions from 2.44.0 onwards are vulnerable to DoS if:\n\n- your app has at least one prerendered route (`export const prerender = true`)\n\nAffected versions from 2.19.0 onwards are vulnerable to DoS and SSRF if:\n\n- your app has at least one prerendered route (`export const prerender = true`)\n- AND you are using `adapter-node` without a configured `ORIGIN` environment variable, and you are not using a reverse proxy that implements Host header validation\n\n### Impact\n\nThe DoS causes the running server process to end.\n\nThe SSRF allows access to internal services that can be reached without authentication when fetched from SvelteKit's server runtime.\n\nIt is also possible to obtain an SXSS via cache poisoning, by forcing a potential CDN to cache an XSS returned by the attacker's server (the latter being able to specify the cache-control of their choice).\n\n### Credits\n- Allam Rachid ([zhero;](https://zhero-web-sec.github.io/research-and-things/))\n- Allam Yasser (inzo)\n- d-xuan ([wednesday](https://d-xuan.github.io/wednesday/))",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:H/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@sveltejs/kit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.19.0"
      }, {
        "fixed" : "2.49.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.49.4"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@sveltejs/adapter-node"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.4.1"
      }, {
        "fixed" : "5.5.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 5.5.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/security/advisories/GHSA-j62c-4x62-9r35"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-67647"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/commit/d9ae9b00b14f5574d109f3fd548f960594346226"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sveltejs/kit"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fadapter-node%405.5.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.49.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-248", "CWE-400", "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-15T18:09:59Z",
    "nvd_published_at" : "2026-01-15T19:16:03Z"
  }
}