lodash vulnerabilities

Lodash modular utilities.

Registry
npm
Latest
4.18.1
License
MIT

10 known advisories

The latest version, 4.18.1, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install lodash@4.18.1

Security advisories for lodash

  • HighGHSA-r5fr-rjxr-66jc1 Apr 2026

    lodash vulnerable to Code Injection via `_.template` imports key names

    Affected
    >=4.0.0 <4.18.0
    Fixed in
    4.18.0
  • MediumGHSA-f23m-r3pf-42rh1 Apr 2026

    lodash vulnerable to Prototype Pollution via array path bypass in `_.unset` and `_.omit`

    Affected
    <4.18.0
    Fixed in
    4.18.0
  • MediumGHSA-xxjr-mmjv-4gpg21 Jan 2026

    Lodash has Prototype Pollution Vulnerability in `_.unset` and `_.omit` functions

    Affected
    >=4.0.0 <4.17.23
    Fixed in
    4.17.23
  • MediumGHSA-29mw-wpgm-hmr96 Jan 2022

    Regular Expression Denial of Service (ReDoS) in lodash

    Affected
    >=4.0.0 <4.17.21
    Fixed in
    4.17.21
  • HighGHSA-35jh-r3h4-6jhm6 May 2021

    Command Injection in lodash

    Affected
    <4.17.21
    Fixed in
    4.17.21
  • HighGHSA-p6mc-m468-83gw15 Jul 2020

    Prototype Pollution in lodash

    Affected
    >=3.7.0 <4.17.19
    Fixed in
    4.17.19
  • MediumGHSA-x5rq-j2xg-h7qm19 Jul 2019

    Regular Expression Denial of Service (ReDoS) in lodash

    Affected
    >=4.7.0 <4.17.11
    Fixed in
    4.17.11
  • CriticalGHSA-jf85-cpcp-j69510 Jul 2019

    Prototype Pollution in lodash

    Affected
    <4.17.12
    Fixed in
    4.17.12
  • HighGHSA-4xc9-xhrj-v5747 Feb 2019

    Prototype Pollution in lodash

    Affected
    <4.17.11
    Fixed in
    4.17.11
  • MediumGHSA-fvqr-27wr-82fm26 Jul 2018

    Prototype Pollution in lodash

    Affected
    <4.17.5
    Fixed in
    4.17.5

Which of your client projects still run an old lodash?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.