CVE-2019-1010266: Lodash Denial of Service Vulnerability
MODERATECVE-2019-1010266 is a MODERATE (CVSS 6.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Lodash libraries in the npm ecosystem. The issue involves regular expression denial of service (redos) in lodash. Remediation is available by upgrading affected packages to version 4.17.11.
CVE-2019-1010266 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2019-1010266
To remediate this vulnerability, upgrade all affected Lodash 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 lodash@4.17.11
npm install lodash-es@4.17.11
npm install lodash-amd@4.17.11
Upgrade lodash-rails to 4.17.11
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls lodash
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-1010266, inspect your project dependencies using npm:
npm ls lodash
Analyze the terminal output to locate any version of Lodash in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.17.11), your application is affected.
Note: The npm ls lodash 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 Lodash, 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-2019-1010266 Affected Lodash Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lodash
|
npm |
≥ 4.7.0
< 4.17.11
|
4.17.11
|
|
lodash-es
|
npm |
≥ 4.7.0
< 4.17.11
|
4.17.11
|
|
lodash-amd
|
npm |
≥ 4.7.0
< 4.17.11
|
4.17.11
|
|
lodash-rails
|
RubyGems |
≥ 4.7.0
< 4.17.11
|
4.17.11
|
References
Frequently Asked Questions
What is CVE-2019-1010266?
Which Lodash versions are affected?
What version fixes CVE-2019-1010266?
Is lodash affected?
Is lodash-es affected?
What is the CVSS score of CVE-2019-1010266?
What CWE is associated with CVE-2019-1010266?
How can I check npm dependencies for CVE-2019-1010266?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x5rq-j2xg-h7qm",
"modified" : "2025-09-29T20:19:28Z",
"published" : "2019-07-19T16:13:07Z",
"aliases" : [ "CVE-2019-1010266" ],
"summary" : "Regular Expression Denial of Service (ReDoS) in lodash",
"details" : "lodash prior to 4.7.11 is affected by: CWE-400: Uncontrolled Resource Consumption. The impact is: Denial of service. The component is: Date handler. The attack vector is: Attacker provides very long strings, which the library attempts to match using a regular expression. The fixed version is: 4.7.11.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "lodash"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.7.0"
}, {
"fixed" : "4.17.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "lodash-es"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.7.0"
}, {
"fixed" : "4.17.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "lodash-amd"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.7.0"
}, {
"fixed" : "4.17.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "lodash-rails"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.7.0"
}, {
"fixed" : "4.17.11"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-1010266"
}, {
"type" : "WEB",
"url" : "https://github.com/lodash/lodash/issues/3359"
}, {
"type" : "WEB",
"url" : "https://github.com/github/advisory-database/pull/6138"
}, {
"type" : "WEB",
"url" : "https://github.com/lodash/lodash/commit/5c08f18d365b64063bfbfa686cbb97cdd6267347"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/lodash/lodash"
}, {
"type" : "WEB",
"url" : "https://github.com/lodash/lodash/wiki/Changelog"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2019-1010266.yml"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20190919-0004"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-LODASH-73639"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-07-19T16:11:26Z",
"nvd_published_at" : null
}
}