svelte@5.46.3 vulnerabilities

Cybernetically enhanced web apps

  • latest version

    5.49.1

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    13 hours ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the svelte package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Cross-site Scripting (XSS)

    svelte is a package for building web applications.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) due to the improper sanitazation of user input in #hydratable_block() function hydratable process. An attacker can execute arbitrary JavaScript in the client’s browser by supplying a crafted key which is embedded into a <script> block without proper escaping. This can lead to session or token theft, DOM manipulation, or account takeover.

    Note:

    This is only exploitable if the experimental.async flag is enabled and untrusted user input is used as a key in hydratable.

    How to fix Cross-site Scripting (XSS)?

    Upgrade svelte to version 5.46.4 or higher.

    >=5.46.0 <5.46.4