CVE-2020-8203 — Prototype Pollution in lodash.updatewith — CVE Details
Prototype Pollution in lodash
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (5.21%). Schedule for your next planned update.
Does your project use an affected lodash.updatewith version?
Paste your package-lock.json to check it for CVE-2020-8203 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Versions of lodash prior to 4.17.19 are vulnerable to Prototype Pollution. The functions pick, set, setWith, update, updateWith, and zipObjectDeep allow a malicious user to modify the prototype of Object if the property identifiers are user-supplied. Being affected by this issue requires manipulating objects based on user-provided property values or arrays.
This vulnerability causes the addition or modification of an existing property that will exist on all objects and may lead to Denial of Service or Code Execution under specific circumstances.
Advisory Timeline
- First published July 15, 2020 (2325 days ago).
- Last revised August 12, 2025 — 1854 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install lodash-rails -v 4.17.19
npm install lodash@4.17.19
npm install lodash-es@4.17.20
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (8)
Affects 2 ecosystems: npm (7), RubyGems (1).
| Package | Fixed In |
|---|---|
| lodash.updatewith npm · Affected: All versions | Range-based data available |
| lodash-rails RubyGems · Affected: 3.10.0, 3.10.1, 3.7.0, 3.9.3 (+20 more) | 4.17.19 |
| lodash.setwith npm · Affected: All versions | Range-based data available |
| lodash.update npm · Affected: All versions | Range-based data available |
| lodash.pick npm · Affected: All versions | Range-based data available |
| lodash npm · Affected: All versions | 4.17.19 |
| lodash-es npm · Affected: All versions | 4.17.20 |
| lodash.set npm · Affected: All versions | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.4 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-8203ADVISORY
- https://github.com/lodash/lodash/issues/4744WEB
- https://github.com/lodash/lodash/issues/4874WEB
- https://github.com/github/advisory-database/pull/2884WEB
- https://github.com/lodash/lodash/commit/c84fe82760fb2d3e03a63379b297a1cc1a2fce12WEB
- https://hackerone.com/reports/712065WEB
- https://hackerone.com/reports/864701WEB
- https://github.com/lodash/lodashPACKAGE
- https://github.com/lodash/lodash/wiki/Changelog#v41719WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2020-8203.ymlWEB
- https://security.netapp.com/advisory/ntap-20200724-0006WEB
- https://web.archive.org/web/20210914001339/https://github.com/lodash/lodash/issues/4744WEB
Frequently Asked Questions
- What is CVE-2020-8203?
- Prototype Pollution in lodash. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.4/10).
- How do I check if my project is affected by CVE-2020-8203?
- CVE-2020-8203 affects lodash.updatewith, lodash-rails and lodash.setwith (and 5 more). It has a 5.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-8203 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top 10% of EPSS-scored vulnerabilities — 93.3% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2019-10744CRITICAL
Prototype Pollution in lodash
- CVE-2021-23337HIGH
Command Injection in lodash
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution
- CVE-2020-28500MEDIUM
Regular Expression Denial of Service (ReDoS) in lodash
- CVE-2019-1010266MEDIUM
Regular Expression Denial of Service (ReDoS) in lodash