5.3medium
Regular Expression Denial of Service in Deno.upgradeWebSocket API
- Severity
- 5.3medium CVSS:3.1 by snyk
- Exploit likelihood
- 1.23% (higher than 69% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-jc97-h3h9-7xh6
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| deno | before 1.31.0 | CVE List |
| deno (crates.io) | from 1.12.0 before 1.31.0 | GitHub Advisory Database |
| deno deno | before 1.31.0 | NVD |
All scores
| snyk | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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.
Patches
It is recommended that users upgrade to Deno 1.31.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-26103 changed 2025-03-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jc97-h3h9-7xh6 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2023-26103 changed 2026-06-17 | Public domain |