GHSA-wv8q-r932-8hc7

Suggest an improvement
Source
https://github.com/advisories/GHSA-wv8q-r932-8hc7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-wv8q-r932-8hc7/GHSA-wv8q-r932-8hc7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wv8q-r932-8hc7
Aliases
Published
2022-07-13T00:00:41Z
Modified
2025-01-14T10:57:16.158613Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Svelte vulnerable to XSS when using objects during server-side rendering
Details

The package svelte before 3.49.0 is vulnerable to Cross-site Scripting (XSS) due to improper input sanitization and to improper escape of attributes when using objects during SSR (Server-Side Rendering). Exploiting this vulnerability is possible via objects with a custom toString() function.

Database specific
{
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-79"
    ],
    "nvd_published_at": "2022-07-12T19:15:00Z",
    "github_reviewed_at": "2022-07-15T16:22:17Z"
}
References

Affected packages

npm / svelte

Package

Affected ranges

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