Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. lodash-rails
  4. ›
  5. CVE-2020-8203

CVE-2020-8203: Prototype Pollution in lodash

July 15, 2020 (updated August 12, 2025)

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.

References

  • github.com/advisories/GHSA-p6mc-m468-83gw
  • github.com/github/advisory-database/pull/2884
  • github.com/lodash/lodash
  • github.com/lodash/lodash/commit/c84fe82760fb2d3e03a63379b297a1cc1a2fce12
  • github.com/lodash/lodash/issues/4744
  • github.com/lodash/lodash/issues/4874
  • github.com/lodash/lodash/wiki/Changelog
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2020-8203.yml
  • hackerone.com/reports/712065
  • hackerone.com/reports/864701
  • nvd.nist.gov/vuln/detail/CVE-2020-8203
  • security.netapp.com/advisory/ntap-20200724-0006
  • web.archive.org/web/20210914001339/https://github.com/lodash/lodash/issues/4744

Code Behaviors & Features

Detect and mitigate CVE-2020-8203 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.7.0 before 4.17.19

Fixed versions

  • 4.17.19

Solution

Upgrade to version 4.17.19 or above.

Impact 7.4 HIGH

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

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

gem/lodash-rails/CVE-2020-8203.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:25 +0000.