GHSA-wv8q-r932-8hc7

    Dashboard / Vulnerabilities / GHSA-wv8q-r932-8hc7

    GHSA-wv8q-r932-8hc7

    Published: 13 Jul 2022Last Modified: 8 Jul 2026

    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.

    Affected packages

    Package

    Name: svelte

    Purl: pkg:npm/svelte

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -3.49.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-wv8q-r932-8hc7 | CVE-DB