Skip to content

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

HighCVSS 7.5 EPSS 1.2%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
crates.io deno(crates.io) >= 1.12.0, < 1.31.0 1.31.0 Fixed
deno < 1.31.0 1.31.0 Fixed

Affected products

ProductAffected versionsFixed in
crates.io deno(crates.io) >= 1.12.0, < 1.31.0 1.31.0
deno < 1.31.0 1.31.0

References