SecurityContext

CVE-2024-53261: SvelteKit - Stored XSS

  • Cve: CVE-2024-53261
  • Name: SvelteKit - Stored XSS
  • Description: SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. "Unsanitized input from *the request URL* flows into `end`, where it is used to render an HTML page returned to the user. This may result in a Cross-Site Scripting attack (XSS)." The files `packages/kit/src/exports/vite/dev/index.js` and `packages/kit/src/exports/vite/utils.js` both contain user controllable data which under specific conditions may flow to dev mode pages. There is little to no expected impact. The Vite development is not exposed to the network by default and even if someone were able to trick a developer into executing an XSS against themselves, a development database should not have any sensitive data. None the less this issue has been addressed in version 2.8.3 and all users are advised to upgrade.
  • Impact: Potential for executing malicious scripts in the developer's browser, but limited impact due to development mode and non-exposure to production network.
  • Remediation: Upgrade to version 2.8.3 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs to trick a developer into executing malicious code
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.0035
  • Epss percentile: 0.2921
  • Assignee: [email protected]
  • Published at: 2024-11-25T20:15:10Z
  • Age in days: 729
  • Modified at: 2026-06-17T08:08:42Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-53261
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

References

UrlSourceTags
https://github.com/sveltejs/kit/commit/d338d4635a7fd947ba5112df6ee632c4a0979438nvdPatch
https://github.com/sveltejs/kit/security/advisories/GHSA-rjjv-87mx-6x3hnvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
svelte:sveltekit< 2.8.3nonvd/v1/products/svelte/sveltekit

Projects

RepositoryLink kindsIndexedUrl
sveltejs/kitcommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/sveltejs/kit

Index

  • Repositories: 2
  • Repositories high signal: 2
  • Packages: 1

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts