{"id":"CVE-2026-128118","aliases":["CVE-2026-128118","GHSA-m9j8-jcmv-hp69"],"related":[],"kind":"vulnerability","state":"published","title":"SvelteKit: Build-time server-only module import guard could fail, resulting in server secrets being statically replaced in client bundle","summary":"SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. From version 3.0.0 until 3.1.1, the build-time server-only module guard did not treat src/params.js as a client entry point even though parameter matchers can run in the browser. Server-only modules imported through src/params.js could consequently enter the client bundle, where statically replaced private environment values or other server secrets could be exposed. This issue is fixed in 3.1.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SvelteKit is a framework for rapidly developing robust, performant web applications using Svelte. From version 3.0.0 until 3.1.1, the build-time server-only module guard did not treat src/params.js as a client entry point even though parameter matchers can run in the browser. Server-only modules imported through src/params.js could consequently enter the client bundle, where statically replaced private environment values or other server secrets could be exposed. This issue is fixed in 3.1.1.","source":"cvelist"},{"lang":"en","text":"Under certain circumstances, server-only imports, which typically cannot be included in the client bundle, could make their way into it, potentially exposing secrets. This could only occur when those server-only imports were made through `src/params.js`.","format":"markdown","source":"ghsa"}],"published":"2026-11-13T19:31:04.678Z","modified":"2026-11-18T05:19:03.157Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-200","CWE-668"],"affected":[{"ranges":[{"version":">= 3.0.0, < 3.1.1","status":"affected"}],"vendor":"sveltejs","product":"kit","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.1.1"}],"ecosystem":"npm","package":"@sveltejs/kit","purl":"pkg:npm/%40sveltejs/kit","source":"ghsa"}],"references":[{"url":"https://github.com/sveltejs/kit/security/advisories/GHSA-m9j8-jcmv-hp69","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sveltejs/kit/commit/ae07803806f75b8b5662ae4ab92934ca1356fd84","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sveltejs/kit/releases/tag/@sveltejs/kit@3.1.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128118","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sveltejs/kit","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-18T04:12:28.354Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-128118","url":"https://www.cve.org/CVERecord?id=CVE-2026-128118","licence":"CVE Terms of Use","modified":"2026-11-18T04:12:42.242Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m9j8-jcmv-hp69","url":"https://github.com/advisories/GHSA-m9j8-jcmv-hp69","licence":"CC-BY-4.0","modified":"2026-11-16T15:15:04.088Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-128118","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128118","licence":"Public domain","modified":"2026-11-18T05:19:03.157Z"}],"updatedAt":"2026-11-25T22:59:50.780Z","epss":{"score":0.00393,"percentile":0.35616,"date":"2026-12-01T12:00:22.000Z"}}