Critical Vulnerability in Glob-Parent Package: Regex Enclosure Issue

node-glob-parent Updated 02 Oct 2025

Summary

03/06/2021
N/A
Yes i
High
7.5

CVE-2020-28469: This affects the package glob-parent before 5.1.2. The enclosure regex used to check for strings ending in enclosure containing path separator. Affects node-glob-parent across 2 version ranges.

< 5.1.1+~5.1.0-2 < eb2c439de448c779b450472e591a2bc9e37e9668

Fixed in 5.1.1+~5.1.0-2. How to fix ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Glob-Parent package is a widely used Node.js library that resolves the parent directory of glob patterns. It is essential for file and directory manipulation in various JavaScript applications. However, prior to version 5.1.2, it contained a regex vulnerability that could lead to security issues, particularly when handling paths with enclosure characters.

Vulnerability Detail

This vulnerability, identified as CVE-2020-28469, affects the Glob-Parent package versions before 5.1.2. The issue arises from a flawed regex used to validate strings that end with enclosure characters containing path separators. This flaw can potentially allow attackers to manipulate file paths, leading to unauthorized access or file disclosure. The CVSS score for this vulnerability is 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

5.1.1+~5.1.0-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-glob-parent

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

Workaround

If immediate updating is not feasible, consider implementing input validation to sanitize paths before processing them. This can help mitigate the risk associated with the regex vulnerability until a proper update can be applied.

Conclusion

The Glob-Parent package has a critical vulnerability that can be exploited if not addressed. It is essential to update to version 5.1.2 or later to mitigate risks. Additionally, using tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for node-glob-parent →

Share this vulnerability

FAQ

CVE-2020-28469 is a security vulnerability in the Glob-Parent package that affects versions prior to 5.1.2, caused by a flawed regex for validating enclosure characters in file paths.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The vulnerability could allow attackers to manipulate file paths, leading to unauthorized access or exposure of sensitive files within your application.

Implement input validation to sanitize paths as a temporary workaround until you can update to a secure version of the Glob-Parent package.

More details can be found in the official CVE database or by visiting the GitHub repository for the Glob-Parent package.

Related vulnerabilities

Recent vulnerabilities recorded for node-glob-parent.

How To Fix

Minimum fixed version

5.1.1+~5.1.0-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-glob-parent

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