# CVE-2024-53261: Cross-Site Scripting attack (XSS) on dev mode 404 page in SvelteKit

- Severity: Low 2.0 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-02)
- Published: 2024-11-25T15:33:19.000Z
- Modified: 2026-06-17T08:08:42.653Z
- Also known as: GHSA-rjjv-87mx-6x3h
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- sveltejs kit: < 2.8.3
- @sveltejs/kit (npm): before 2.8.3
- svelte sveltekit: before 2.8.3

## Every score

- GitHub_M: CVSS:4.0 2.0 Low `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:3.1 0.0 Low `CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/sveltejs/kit/security/advisories/GHSA-rjjv-87mx-6x3h> (third-party-advisory, web)
- <https://github.com/sveltejs/kit/commit/d338d4635a7fd947ba5112df6ee632c4a0979438> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-53261> (advisory)
- <https://github.com/sveltejs/kit/pull/13039> (web)
- <https://github.com/sveltejs/kit> (package)
- <https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.8.3> (web)

## Sources

- CVE List: [CVE-2024-53261](https://www.cve.org/CVERecord?id=CVE-2024-53261), CVE Terms of Use, modified 2024-11-25
- GitHub Advisory Database: [GHSA-rjjv-87mx-6x3h](https://github.com/advisories/GHSA-rjjv-87mx-6x3h), CC-BY-4.0, modified 2025-01-22
- NVD: [CVE-2024-53261](https://nvd.nist.gov/vuln/detail/CVE-2024-53261), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-53261 · Whole record: https://cve.day/CVE-2024-53261.json · Rebuilt by cve.day 2026-11-25T22:58:49.427Z
