Loading...
Skip to main content

CVE-2020-8203 — Prototype Pollution in lodash.updatewith — CVE Details

HIGH

Prototype Pollution in lodash

Published July 15, 2020Updated August 12, 2025Source: osv

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 (2280 days ago).
  • Last revised August 12, 2025 — 1854 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update lodash-rails to 4.17.19 or later
gem install lodash-rails -v 4.17.19
npm
Update lodash to 4.17.19 or later
npm install lodash@4.17.19
npm
Update lodash-es to 4.17.20 or later
npm install lodash-es@4.17.20

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (8)

Affects 2 ecosystems: npm (7), rubygems (1).

PackageEcosystemAffectedFixed In
lodash.updatewith
npm
All versionsRange-based data available
lodash-rails
rubygems
3.10.0, 3.10.1, 3.7.0, 3.9.3 (+20 more)4.17.19
lodash.setwith
npm
All versionsRange-based data available
lodash.update
npm
All versionsRange-based data available
lodash.pick
npm
All versionsRange-based data available
lodash
npm
All versions4.17.19
lodash-es
npm
All versions4.17.20
lodash.set
npm
All versionsRange-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-1321
    Prototype PollutionMITRE
  • CWE-770
    Allocation of Resources Without LimitsMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.4 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H

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). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-8203 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.4

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-p6mc-m468-83gw

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies