Advisory

GHSA-crpf-4hrx-3jrp

Also known as: CVE-2026-27125

Summary

Svelte SSR attribute spreading includes inherited properties from prototype chain

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-02-19 20:28 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

svelte

npm · All systems

Affected

  • introduced 0, fixed 5.51.5 (semver)

Fixed versions

5.51.5

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences