Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. svelte
  4. ›
  5. CVE-2026-27125

CVE-2026-27125: Svelte SSR attribute spreading includes inherited properties from prototype chain

February 19, 2026 (updated February 23, 2026)

In server-side rendering, attribute spreading on elements (e.g. <div {...attrs}>) enumerates inherited properties from the object’s prototype chain rather than only own properties. In environments where Object.prototype has already been polluted — a precondition outside of Svelte’s control — this can cause unexpected attributes to appear in SSR output or cause SSR to throw errors. Client-side rendering is not affected.

References

  • github.com/advisories/GHSA-crpf-4hrx-3jrp
  • github.com/sveltejs/svelte
  • github.com/sveltejs/svelte/commit/73098bb26c6f06e7fd1b0746d817d2c5ee90755f
  • github.com/sveltejs/svelte/releases/tag/svelte@5.51.5
  • github.com/sveltejs/svelte/security/advisories/GHSA-crpf-4hrx-3jrp
  • nvd.nist.gov/vuln/detail/CVE-2026-27125

Code Behaviors & Features

Detect and mitigate CVE-2026-27125 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.51.5

Fixed versions

  • 5.51.5

Solution

Upgrade to version 5.51.5 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes

Source file

npm/svelte/CVE-2026-27125.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:40 +0000.