5.4

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

Analyzed
AliasesGHSA-rjjv-87mx-6x3h
Published 25-11-2024Last modified 25-11-2024

Vulnerability summary

CVE-2024-53261 is a medium (CVSS 5.4) vulnerability in svelte sveltekit. EPSS estimates a 0.35% chance of exploitation in the next 30 days, higher than 28.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 2, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.4/10
010
Medium · v3.1 (NVD)
EPSS score
0.35%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 25-11-2024
    PublishedVulnerability first disclosed.
  2. 25-11-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.35%

Chance of exploitation in the next 30 days

Percentile

29%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 0.33% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

@sveltejs1 product
  • kit< 2.8.3
Svelte1 product
Sveltejs1 product

3 vendors · 3 products

References

6 links