to terminate the script and inject arbitrary JavaScript. This enables remote script execution in users' browsers, with potential for session theft and account compromise.\nThis issue affects Svelte: from 5.46.0 before 5.46.3.","image":"https://o3.security/opengraph.png","datePublished":"2026-01-15T19:59:41.683Z","dateModified":"2026-07-15T01:48:56.123555904Z","url":"https://o3.security/vulnerability/CVE-2025-15265","inLanguage":"en","author":{"@id":"https://o3.security/#organization"},"publisher":{"@id":"https://o3.security/#organization"},"mainEntityOfPage":{"@type":"WebPage","@id":"https://o3.security/vulnerability/CVE-2025-15265"},"speakable":{"@type":"SpeakableSpecification","cssSelector":["h1",".vuln-summary",".vuln-severity",".vuln-mitigation"]},"about":[{"@type":"SoftwareApplication","name":"svelte","applicationCategory":"npm","softwareVersion":"5.46.4"}],"citation":[{"@type":"WebPage","name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15265"},{"@type":"WebPage","name":"OSV.dev","url":"https://osv.dev/vulnerability/CVE-2025-15265"},{"@type":"WebPage","url":"https://registry.npmjs.org"},{"@type":"WebPage","url":"https://fluidattacks.com/advisories/lydian"},{"@type":"WebPage","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/15xxx/CVE-2025-15265.json"},{"@type":"WebPage","url":"https://github.com/sveltejs/svelte/security/advisories/GHSA-6738-r8g5-qwp3"},{"@type":"WebPage","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15265"}]} to terminate the script and inject arbitrary JavaScript. This enables remote script execution in users' browsers, with potential for session theft and account compromise.\nThis issue affects Svelte: from 5.46.0 before 5.46.3.","url":"https://o3.security/vulnerability/CVE-2025-15265","identifier":"CVE-2025-15265","datePublished":"2026-01-15T19:59:41.683Z","dateModified":"2026-07-15T01:48:56.123555904Z","inLanguage":"en","license":"https://creativecommons.org/licenses/by/4.0/","keywords":["CVE-2025-15265","CWE-79","CVE","vulnerability","security advisory"],"creator":{"@id":"https://o3.security/#organization"},"isAccessibleForFree":true,"citation":[{"@type":"WebPage","name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-15265"},{"@type":"WebPage","name":"OSV.dev","url":"https://osv.dev/vulnerability/CVE-2025-15265"}]} to terminate the script and inject arbitrary JavaScript. This enables remote script execution in users' browsers, with potential for session theft and account compromise.\nThis issue affects Svelte: from 5.46.0 before 5.46.3."}},{"@type":"Question","name":"How severe is CVE-2025-15265?","acceptedAnswer":{"@type":"Answer","text":"No CVSS score has been assigned to CVE-2025-15265 yet. Review the advisory details and affected package list to assess your exposure."}},{"@type":"Question","name":"Which packages are affected by CVE-2025-15265?","acceptedAnswer":{"@type":"Answer","text":"CVE-2025-15265 affects the following packages: svelte (npm). Ecosystems affected: npm."}},{"@type":"Question","name":"How do I fix CVE-2025-15265?","acceptedAnswer":{"@type":"Answer","text":"Update svelte to 5.46.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-15265 is resolved across your whole dependency graph."}},{"@type":"Question","name":"How do I detect CVE-2025-15265 in my npm dependencies?","acceptedAnswer":{"@type":"Answer","text":"Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for svelte. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match."}},{"@type":"Question","name":"How do I mitigate CVE-2025-15265 if there is no patch (or I can't update yet)?","acceptedAnswer":{"@type":"Answer","text":"If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands."}},{"@type":"Question","name":"How does O3 Security protect against CVE-2025-15265?","acceptedAnswer":{"@type":"Answer","text":"O3 pinpoints whether CVE-2025-15265 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed."}},{"@type":"Question","name":"Is CVE-2025-15265 actively exploited in the wild?","acceptedAnswer":{"@type":"Answer","text":"No public exploit code has been indexed for CVE-2025-15265 yet. This does not mean the vulnerability cannot be exploited — absence of public exploits does not imply safety. Apply the recommended fix and use O3 Security to monitor your exposure."}},{"@type":"Question","name":"What type of vulnerability is CVE-2025-15265?","acceptedAnswer":{"@type":"Answer","text":"CVE-2025-15265 is classified as Cross-site Scripting (XSS) (CWE-79). This weakness type describe the underlying flaw category, which helps determine the potential impact and the right class of mitigation. This is a high-impact weakness class that often enables remote code execution or data exposure."}},{"@type":"Question","name":"When was CVE-2025-15265 published, and has it been updated?","acceptedAnswer":{"@type":"Answer","text":"CVE-2025-15265 was published on January 15, 2026 and was last updated on July 15, 2026. Advisory data evolves as severity scores, affected ranges, and exploit intelligence are revised — always check the latest version of the advisory before acting."}}]}
Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦 npm
Not in CISA KEV

CVE-2025-15265

CVE-2025-15265 is a Cross-site Scripting (XSS) vulnerability in svelte. O3 Security confirms whether CVE-2025-15265 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

Svelte 5.46.0 - Hydratable Key Script-Breakout XSS (SSR)

Also known asGHSA-6738-r8g5-qwp3
Published
Jan 15, 2026
Updated
Jul 15, 2026
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Jul 15, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Real-World Exposure

1 pkg affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, a proxy for how much of the ecosystem is exposed.

sveltenpm
5.4Mdownloads / week

Description

An SSR XSS exists in async hydration when attacker‑controlled keys are passed to hydratable. The key is embedded inside a <script> block without HTML‑safe escaping, allowing </script> to terminate the script and inject arbitrary JavaScript. This enables remote script execution in users' browsers, with potential for session theft and account compromise. This issue affects Svelte: from 5.46.0 before 5.46.3.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
📦npmsvelte5.46.0&&< 5.46.45.46.4

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for svelte. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update svelte to 5.46.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-15265 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether CVE-2025-15265 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to CVE-2025-15265. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

An SSR XSS exists in async hydration when attacker‑controlled keys are passed to hydratable. The key is embedded inside a <script> block without HTML‑safe escaping, allowing </script> to terminate the script and inject arbitrary JavaScript. This enables remote script execution in users' browsers, with potential for session theft and account compromise. This issue affects Svelte: from 5.46.0 before 5.46.3.
O3 Security · Impact-Aware SCA

Is CVE-2025-15265 in your dependencies?

O3 detects CVE-2025-15265 across npm dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.

CVE-2025-15265: Svelte 5.46.0 - Hydratable… | O3 Security