Navigation Menu

Skip to content

Regular Expression Denial of Service in path-parse

Moderate severity GitHub Reviewed Published Aug 10, 2021 to the GitHub Advisory Database • Updated Feb 1, 2023

Package

npm path-parse (npm)

Affected versions

< 1.0.7

Patched versions

1.0.7

Description

Affected versions of npm package path-parse are vulnerable to Regular Expression Denial of Service (ReDoS) via splitDeviceRe, splitTailRe, and splitPathRe regular expressions. ReDoS exhibits polynomial worst-case time complexity.

References

Published by the National Vulnerability Database May 4, 2021
Reviewed May 19, 2021
Published to the GitHub Advisory Database Aug 10, 2021
Last updated Feb 1, 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-2021-23343

GHSA ID

GHSA-hj48-42vr-x3v9
Checking history
See something to contribute? Suggest improvements for this vulnerability.