Skip to content

Regular Expression Denial of Service in Deno.upgradeWebSocket API

Moderate severity GitHub Reviewed Published Mar 23, 2023 in denoland/deno • Updated Apr 3, 2023

Package

cargo deno (Rust)

Affected versions

>= 1.12.0, < 1.31.0

Patched versions

1.31.0

Description

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

@bartlomieju bartlomieju published to denoland/deno Mar 23, 2023
Published to the GitHub Advisory Database Apr 3, 2023
Reviewed Apr 3, 2023
Last updated Apr 3, 2023

Severity

Moderate
5.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Weaknesses

CVE ID

CVE-2023-26103

GHSA ID

GHSA-jc97-h3h9-7xh6

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.