{"id":"CVE-2023-26103","aliases":["CVE-2023-26103","GHSA-jc97-h3h9-7xh6"],"related":[],"kind":"vulnerability","state":"published","title":"Regular Expression Denial of Service in Deno.upgradeWebSocket API","summary":"Versions of the package deno before 1.31.0 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the upgradeWebSocket function, which contains regexes in the form of /s*,s*/, used for splitting the Connection/Upgrade header. A specially crafted Connection/Upgrade header can be used to significantly slow down a web socket server.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Versions of the package deno before 1.31.0 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the upgradeWebSocket function, which contains regexes in the form of /s*,s*/, used for splitting the Connection/Upgrade header. A specially crafted Connection/Upgrade header can be used to significantly slow down a web socket server.","source":"cvelist"},{"lang":"en","text":"### Impact\nVersions of the package deno before 1.31.0 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the upgradeWebSocket function, which contains regexes in the form of /s*,s*/, used for splitting the Connection/Upgrade header. A specially crafted Connection/Upgrade header can be used to significantly slow down a web socket server. \n\n### Patches\nIt is recommended that users upgrade to Deno 1.31.0.","format":"markdown","source":"ghsa"}],"published":"2023-02-25T05:00:01.387Z","modified":"2026-06-17T05:42:41.007Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.31.0","status":"affected"}],"product":"deno","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.12.0","status":"affected","fixed":"1.31.0"}],"ecosystem":"crates.io","package":"deno","purl":"pkg:cargo/deno","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.31.0"}],"vendor":"deno","product":"deno","cpe":"cpe:2.3:a:deno:deno:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-RUST-DENO-3315970","tags":["exploit","technical-description","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/denoland/deno/blob/2b247be517d789a37e532849e2e40b724af0918f/ext/http/01_http.js%23L395-L409","tags":["broken-link","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/denoland/deno/pull/17722","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/denoland/deno/commit/cf06a7c7e672880e1b38598fe445e2c50b4a9d06","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/denoland/deno/releases/tag/v1.31.0","tags":["release-notes","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/denoland/deno/security/advisories/GHSA-jc97-h3h9-7xh6","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26103","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/denoland/deno","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/denoland/deno/blob/2b247be517d789a37e532849e2e40b724af0918f/ext/http/01_http.js#L395-L409","tags":["web"],"sources":["ghsa"]}],"credits":["Alessio Della Libera","Snyk"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-03-11T15:30:55.306Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-26103","url":"https://www.cve.org/CVERecord?id=CVE-2023-26103","licence":"CVE Terms of Use","modified":"2025-03-11T15:31:01.247Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jc97-h3h9-7xh6","url":"https://github.com/advisories/GHSA-jc97-h3h9-7xh6","licence":"CC-BY-4.0","modified":"2023-11-08T04:11:57.713Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-26103","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26103","licence":"Public domain","modified":"2026-06-17T05:42:41.007Z"}],"updatedAt":"2026-11-25T22:58:22.148Z","epss":{"score":0.01229,"percentile":0.69739,"date":"2026-12-01T12:00:22.000Z"}}