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 package | Versions | Reported by |
|---|---|---|
| sveltejs svelte | < 5.51.5 | CVE List |
| svelte (npm) | before 5.51.5 | GitHub Advisory Database |
| svelte svelte | before 5.51.5 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N |
| NVD | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27125 changed 2026-02-25 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-crpf-4hrx-3jrp changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-27125 changed 2026-06-17 | Public domain |