GHSA-f7gr-6p89-r883

Suggest an improvement
Source
https://github.com/advisories/GHSA-f7gr-6p89-r883
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-f7gr-6p89-r883/GHSA-f7gr-6p89-r883.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-f7gr-6p89-r883
Aliases
Downstream
CGA (10)
Published
2026-02-19T15:18:33Z
Modified
2026-09-10T03:50:34Z
Severity
  • 5.1 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:H/SI:H/SA:N CVSS Calculator
Summary
Svelte affected by cross-site scripting via spread attributes in Svelte SSR
Details

Versions of svelte prior to 5.51.5 are vulnerable to cross-site scripting (XSS) during server-side rendering. When using spread syntax to render attributes from untrusted data, event handler properties are included in the rendered HTML output. If an application spreads user-controlled or external data as element attributes, an attacker can inject malicious event handlers that execute in victims' browsers.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-02-19T15:18:33Z",
    "nvd_published_at":  "2026-02-20T23:16:02Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / svelte

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
5.51.5

Database specific

last_known_affected_version_range
"<= 5.51.4"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-f7gr-6p89-r883/GHSA-f7gr-6p89-r883.json"