CVE-2023-26103
HIGH 7.5CVSS 3.1Regular Expression Denial of Service in Deno.upgradeWebSocket API
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.
- Published
- 25 Feb 2023
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1333
- Also known as
- GHSA-jc97-h3h9-7xh6
- Sources
- NVDJSONOSV GHSA-jc97-h3h9-7xh6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | deno | denocpe:2.3:a:deno:deno:*:*:*:*:*:*:*:* |
< 1.31.0 | 1.31.0 |
| OSV | crates.io | deno | >= 1.12.0, < 1.31.0 | 1.31.0 |
References
- https://github.com/denoland/deno/blob/2b247be517d789a37e532849e2e40b724af0918f/ext/http/01_http.js%23L395-L409 · Broken Link
- https://github.com/denoland/deno/commit/cf06a7c7e672880e1b38598fe445e2c50b4a9d06 · Patch, WEB
- https://github.com/denoland/deno/pull/17722 · Patch, WEB
- https://github.com/denoland/deno/releases/tag/v1.31.0 · Release Notes, WEB
- https://security.snyk.io/vuln/SNYK-RUST-DENO-3315970 · Exploit, Technical Description, Third Party Advisory, WEB
- https://github.com/denoland/deno/security/advisories/GHSA-jc97-h3h9-7xh6 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-26103 · ADVISORY
- https://github.com/denoland/deno · PACKAGE
- https://github.com/denoland/deno/blob/2b247be517d789a37e532849e2e40b724af0918f/ext/http/01_http.js#L395-L409 · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 25 Feb 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Apr 2023)