# CVE-2023-26103: Regular Expression Denial of Service in Deno.upgradeWebSocket API

- Severity: Medium 5.3 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.23%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-02-25T05:00:01.387Z
- Modified: 2026-06-17T05:42:41.007Z
- Also known as: GHSA-jc97-h3h9-7xh6
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- deno: before 1.31.0
- deno (crates.io): from 1.12.0 before 1.31.0
- deno deno: before 1.31.0

## Every score

- snyk: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-RUST-DENO-3315970> (exploit, technical-description, third-party-advisory, web)
- <https://github.com/denoland/deno/blob/2b247be517d789a37e532849e2e40b724af0918f/ext/http/01_http.js%23L395-L409> (broken-link)
- <https://github.com/denoland/deno/pull/17722> (patch, web)
- <https://github.com/denoland/deno/commit/cf06a7c7e672880e1b38598fe445e2c50b4a9d06> (patch, web)
- <https://github.com/denoland/deno/releases/tag/v1.31.0> (release-notes, 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)

## Sources

- CVE List: [CVE-2023-26103](https://www.cve.org/CVERecord?id=CVE-2023-26103), CVE Terms of Use, modified 2025-03-11
- GitHub Advisory Database: [GHSA-jc97-h3h9-7xh6](https://github.com/advisories/GHSA-jc97-h3h9-7xh6), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-26103](https://nvd.nist.gov/vuln/detail/CVE-2023-26103), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-26103 · Whole record: https://cve.day/CVE-2023-26103.json · Rebuilt by cve.day 2026-11-25T22:58:22.148Z
