CVE-2020-28469: glob-parent Regular Expression Denial of Service in enclosure regex

glob-parent Updated 02 Oct 2025

Summary

07/06/2021
Yes i
High
7.5

CVE-2020-28469: glob-parent vulnerable to Regular Expression Denial of Service in enclosure regex. Affects glob-parent versions >= 4.0.0, < 5.1.2. Fixed in 5.1.2. How to fix ↓

Also tracked for

The same CVE-2020-28469 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The package under scrutiny is glob-parent, an npm package used for extracting the non-magic parent path from a glob string. It is commonly used in build systems, task runners, and other tools that deal with file paths. The vulnerability affects versions prior to 5.1.2.

Vulnerability Detail

The vulnerability in glob-parent arises from a Regular Expression Denial of Service (ReDoS) issue in the enclosure regex used to check for strings ending in an enclosure containing a path separator. An attacker can exploit this vulnerability by providing a specially crafted input that triggers excessive backtracking in the regex, leading to a denial of service condition. This can result in a significant impact on the availability of the affected system.

How To Fix

Latest published version: 6.0.2 as of 22 Oct 2026

npm install glob-parent@6.0.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

5.1.2

This is the first release that contains the fix.

npm install glob-parent@5.1.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update to the fixed version of the package to mitigate the risk.

Conclusion

The glob-parent package prior to version 5.1.2 is vulnerable to a Regular Expression Denial of Service (ReDoS) issue. To mitigate this vulnerability, it is crucial to update to version 5.1.2 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for glob-parent →

Share this vulnerability

FAQ

glob-parent is an npm package used for extracting the non-magic parent path from a glob string. It is commonly used in build systems, task runners, and other tools that deal with file paths.

A Regular Expression Denial of Service (ReDoS) vulnerability occurs when a regular expression pattern can be exploited to cause the matching engine to spend an excessive amount of time evaluating a specific input string. This can lead to a denial of service condition.

The vulnerability in glob-parent can be exploited by an attacker to cause a denial of service condition, impacting the availability of the affected system.

To fix this vulnerability, it is recommended to upgrade to version 5.1.2 or later of the glob-parent package. This version includes a fix for the Regular Expression Denial of Service issue.

There is no known workaround for this vulnerability. It is essential to update to the fixed version of the package to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for glob-parent.

How To Fix

Latest published version: 6.0.2 as of 22 Oct 2026

npm install glob-parent@6.0.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

5.1.2

This is the first release that contains the fix.

npm install glob-parent@5.1.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback