CVE-2020-28469: Glob parent Denial of Service Vulnerability
HIGHCVE-2020-28469 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Glob parent libraries in the npm ecosystem. The issue involves glob-parent vulnerable to regular expression denial of service in enclosure regex. Remediation is available by upgrading affected packages to version 5.1.2.
CVE-2020-28469 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2020-28469
To remediate this vulnerability, upgrade all affected Glob parent dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install glob-parent@5.1.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls glob-parent
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-28469, inspect your project dependencies using npm:
npm ls glob-parent
Analyze the terminal output to locate any version of Glob parent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.1.2), your application is affected.
Note: The npm ls glob-parent command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Glob parent, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-28469 Affected Glob parent Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
glob-parent
|
npm |
≥ 4.0.0
< 5.1.2
|
5.1.2
|
References
Frequently Asked Questions
What is CVE-2020-28469?
Which Glob parent versions are affected?
What version fixes CVE-2020-28469?
Is glob-parent affected?
What is the CVSS score of CVE-2020-28469?
What CWE is associated with CVE-2020-28469?
How can I check npm dependencies for CVE-2020-28469?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ww39-953v-wcq6",
"modified" : "2024-06-27T14:00:23Z",
"published" : "2021-06-07T21:56:34Z",
"aliases" : [ "CVE-2020-28469" ],
"summary" : "glob-parent vulnerable to Regular Expression Denial of Service in enclosure regex",
"details" : "This affects the package glob-parent before 5.1.2. The enclosure regex used to check for strings ending in enclosure containing path separator.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "glob-parent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "5.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-28469"
}, {
"type" : "WEB",
"url" : "https://github.com/gulpjs/glob-parent/pull/36"
}, {
"type" : "WEB",
"url" : "https://github.com/gulpjs/glob-parent/pull/36/commits/c6db86422a9731d4f3d332ce4a81c27ea6b0ee46"
}, {
"type" : "WEB",
"url" : "https://github.com/gulpjs/glob-parent/commit/4a80667c69355c76a572a5892b0f133c8e1f457e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/gulpjs/glob-parent"
}, {
"type" : "WEB",
"url" : "https://github.com/gulpjs/glob-parent/blob/6ce8d11f2f1ed8e80a9526b1dc8cf3aa71f43474/index.js%23L9"
}, {
"type" : "WEB",
"url" : "https://github.com/gulpjs/glob-parent/releases/tag/v5.1.2"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBES128-1059093"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1059092"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-GLOBPARENT-1016905"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujan2022.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-06-04T18:30:45Z",
"nvd_published_at" : "2021-06-03T16:15:00Z"
}
}