<Vulnerability name="CVE-2026-42599">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Moderate</ThreatSeverity>
    <PublicDate>2026-06-09T16:22:46</PublicDate>
    <Bugzilla id="2487076" url="https://bugzilla.redhat.com/show_bug.cgi?id=2487076" xml:lang="en:us">
svelte: Svelte: Cross-Site Scripting via untrusted data in spread attributes
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>4.2</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-79</CWE>
    <Details xml:lang="en:us" source="Mitre">
Svelte is a performance oriented web framework. Prior to version 5.55.7, 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. Note that this vulnerability only triggers if the user's browser has JavaScript enabled but Svelte's hydration mechanism does not reach the vulnerable element before the event fires. This issue has been patched in version 5.55.7.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in Svelte. When an application uses spread syntax to render attributes from untrusted data, event handler properties are included in the generated HTML output. This allows a remote attacker to inject malicious event handlers that can execute in a victim's web browser, leading to client-side script execution (Cross-Site Scripting). This vulnerability occurs if the user's browser has JavaScript enabled and Svelte's hydration mechanism does not process the affected element before the event is triggered.
    </Details>
    <Mitigation xml:lang="en:us">
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
    </Mitigation>
    <PackageState cpe="cpe:/a:redhat:podman_desktop:1">
        <ProductName>Red Hat Build of Podman Desktop</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>rh-podman-desktop.git</PackageName>
    </PackageState>
    <PackageState cpe="cpe:/a:redhat:podman_desktop:0">
        <ProductName>Red Hat Build of Podman Desktop - Tech Preview</ProductName>
        <FixState>Fix deferred</FixState>
        <PackageName>rhdesktop/rh-podman-desktop-ext-bootc-rhel10</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-42599
https://nvd.nist.gov/vuln/detail/CVE-2026-42599
https://github.com/sveltejs/svelte/releases/tag/svelte%405.55.7
https://github.com/sveltejs/svelte/security/advisories/GHSA-pr6f-5x2q-rwfp
    </References>
</Vulnerability>