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

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.

Check my package-lock.json

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.

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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (8)

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

PackageFixed In
lodash.updatewith npm · Affected: All versionsRange-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 versionsRange-based data available
lodash.update npm · Affected: All versionsRange-based data available
lodash.pick npm · Affected: All versionsRange-based data available
lodash npm · Affected: All versions4.17.19
lodash-es npm · Affected: All versions4.17.20
lodash.set npm · Affected: 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). 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

CVSS Score
7.4

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
5.21%
EPSS percentile: 93.3

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

GHSA-p6mc-m468-83gw

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json