CVE-2026-27125
JSON

5.3medium

Svelte SSR attribute spreading includes inherited properties from prototype chain

Severity
5.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.43% (higher than 38% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-crpf-4hrx-3jrp

Description

svelte performance oriented web framework. Prior to 5.51.5, 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. This vulnerability is fixed in 5.51.5.

Affected

Product or packageVersionsReported by
sveltejs svelte< 5.51.5CVE List
svelte (npm)before 5.51.5GitHub Advisory Database
svelte sveltebefore 5.51.5NVD

All scores

GitHub_M5.3medium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N
NVD6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Classification

CWE-915

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

svelte performance oriented web framework. Prior to 5.51.5, 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. This vulnerability is fixed in 5.51.5.

GitHub Advisory Database

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.

NVD (es)

svelte framework web orientado al rendimiento. Antes de la versión 5.51.5, en la renderización del lado del servidor, la propagación de atributos en elementos (por ejemplo, ) enumera propiedades heredadas de la cadena de prototipos del objeto en lugar de solo propiedades propias. En entornos donde Object.prototype ya ha sido contaminado — una condición previa fuera del control de Svelte — esto puede causar que aparezcan atributos inesperados en la salida de SSR o que SSR arroje errores. La renderización del lado del cliente no se ve afectada. Esta vulnerabilidad se corrige en la versión 5.51.5.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-27125 changed 2026-02-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-crpf-4hrx-3jrp changed 2026-09-10CC-BY-4.0
NVDCVE-2026-27125 changed 2026-06-17Public domain