CVE-2018-16487

CVE-2018-16487 is a high-severity uncontrolled resource consumption vulnerability in lodash (npm), affecting versions < 4.17.11. It is fixed in 4.17.11.

Summary

Versions of lodash before 4.17.11 are vulnerable to prototype pollution.

The vulnerable functions are 'defaultsDeep', 'merge', and 'mergeWith' which allow a malicious user to modify the prototype of Object via {constructor: {prototype: {...}}} causing the addition or modification of an existing property that will exist on all objects.

Impact

Crafted input forces the application to consume excessive CPU, memory, or other resources, degrading or denying service. Typical impact: denial of service.

Affected versions

lodash (< 4.17.11) lodash-rails (< 4.17.11)

Security releases

lodash → 4.17.11 (npm) lodash-rails → 4.17.11 (rubygems)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Update to version 4.17.11 or later.

Frequently Asked Questions

  1. What is CVE-2018-16487? CVE-2018-16487 is a high-severity uncontrolled resource consumption vulnerability in lodash (npm), affecting versions < 4.17.11. It is fixed in 4.17.11. Crafted input forces the application to consume excessive CPU, memory, or other resources, degrading or denying service.
  2. Which packages are affected by CVE-2018-16487?
    • lodash (npm) (versions < 4.17.11)
    • lodash-rails (rubygems) (versions < 4.17.11)
  3. Is there a fix for CVE-2018-16487? Yes. CVE-2018-16487 is fixed in 4.17.11. Upgrade to this version or later.
  4. Is CVE-2018-16487 exploitable, and should I be worried? Whether CVE-2018-16487 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether CVE-2018-16487 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix CVE-2018-16487?
    • Upgrade lodash to 4.17.11 or later
    • Upgrade lodash-rails to 4.17.11 or later

Other vulnerabilities in lodash

CVE-2026-4800CVE-2026-2950CVE-2025-13465CVE-2020-28500CVE-2021-23337

Stop the waste.
Protect your environment with Kodem.