{"id":"CVE-2024-53261","aliases":["CVE-2024-53261","GHSA-rjjv-87mx-6x3h"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting attack (XSS) on dev mode 404 page in SvelteKit","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\n\"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).\"\n\n### Details\n\nSource of potentially tainted data is in `packages/kit/src/exports/vite/dev/index.js`, line 437. This potentially tainted data is passed through a number of steps (which I could detail if you'd like) all the way down to line 91 in `packages/kit/src/exports/vite/utils.js`, which performs an operation that Snyk believes an attacker shouldn't be allowed to manipulate.\n\nAnother source of potentially tainted data (according to Snyk) comes from `‎packages/kit/src/exports/vite/utils.js`, line 30, col 30 (i.e., the `url` property of `req`). This potentially tainted data is passed through a number of steps (which I could detail if you'd like) all the way down line 91 in `packages/kit/src/exports/vite/utils.js`, which performs an operation that Snyk believes an attacker shouldn't be allowed to manipulate.\n\n### PoC\n\nNot provided\n\n### Impact\n\nLittle to none. 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"SvelteKit es un framework de trabajo para desarrollar rápidamente aplicaciones web robustas y de alto rendimiento utilizando Svelte. \"La entrada no higienizada de *la URL de solicitud* fluye hacia `end`, donde se utiliza para mostrar una página HTML que se devuelve al usuario. Esto puede resultar en un ataque de cross-site scripting (XSS)\". Los archivos `packages/kit/src/exports/vite/dev/index.js` y `packages/kit/src/exports/vite/utils.js` contienen datos controlables por el usuario que, en condiciones específicas, pueden fluir a páginas en modo de desarrollo. El impacto esperado es mínimo o nulo. El desarrollo de Vite no está expuesto a la red de forma predeterminada e incluso si alguien pudiera engañar a un desarrollador para que ejecute un XSS contra sí mismo, una base de datos de desarrollo no debería tener ningún dato confidencial. No obstante, este problema se ha solucionado en la versión 2.8.3 y se recomienda a todos los usuarios que actualicen.","source":"nvd"}],"published":"2024-11-25T15:33:19.000Z","modified":"2026-06-17T08:08:42.653Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":2,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":2,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:N","score":0,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 2.8.3","status":"affected"}],"vendor":"sveltejs","product":"kit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.8.3"}],"ecosystem":"npm","package":"@sveltejs/kit","purl":"pkg:npm/%40sveltejs/kit","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.8.3"}],"vendor":"svelte","product":"sveltekit","cpe":"cpe:2.3:a:svelte:sveltekit:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/sveltejs/kit/security/advisories/GHSA-rjjv-87mx-6x3h","tags":["third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sveltejs/kit/commit/d338d4635a7fd947ba5112df6ee632c4a0979438","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53261","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/kit/pull/13039","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/kit","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/kit/releases/tag/%40sveltejs%2Fkit%402.8.3","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-11-25T20:01:35.408Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53261","url":"https://www.cve.org/CVERecord?id=CVE-2024-53261","licence":"CVE Terms of Use","modified":"2024-11-25T20:04:36.967Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rjjv-87mx-6x3h","url":"https://github.com/advisories/GHSA-rjjv-87mx-6x3h","licence":"CC-BY-4.0","modified":"2025-01-22T20:54:21.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53261","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53261","licence":"Public domain","modified":"2026-06-17T08:08:42.653Z"}],"updatedAt":"2026-11-25T22:58:49.427Z","epss":{"score":0.0035,"percentile":0.30593,"date":"2026-12-02T12:00:21.000Z"}}