Sourcemap Explorer
Stack · npm package

lodash

Lodash modular utilities.

latest 4.18.1· MIT· 117 versions publishedView on npm

About

Lodash modular utilities.

modulesstdlibutil

What detecting lodash tells you about a site

lodash is the classic utility belt, and its presence — especially the full lodash rather than lodash-es — often signals an older or bundle-size-unconscious build, since most of its functions now have native or tree-shakeable equivalents. Spotting the full package frequently means the whole library was imported for a handful of helpers.

Why the exact lodash version matters

lodash has a notable security history, including prototype-pollution CVEs fixed in 4.17.12, .19 and .21. Reading the exact bundled version is a direct check for whether the site ships a patched 4.17.21 or an older, vulnerable release — a common finding on long-lived apps.

lodash in a real-world stack

When you find lodash in a bundle, it rarely travels alone. Frequently bundled transitively by older dependencies even when the app code doesn't import it directly.

Quick facts

Latest version4.18.1
LicenseMIT
AuthorJohn-David Dalton
Homepagelodash.com/
Installnpm install lodash
Direct dependencies0

How Sourcemap Explorer detects lodash

lodash ships as v4.18.1, published 2026-04-01 and carries 0 direct dependencies, 117 versions on the registry. Those exact numbers are the footprint Sourcemap Explorer matches when lodash rides inside a deployed bundle — here is how the detection works.

We catch lodash from two complementary signals: bundled source paths and the embedded package.json. Modern bundlers (webpack, Vite, esbuild, Rollup, Turbopack) preserve the original node_modules/lodash/ paths inside the JavaScript sourcemap's sources[] array — that's the canonical signal. When the matching package.json is also captured in sourcesContent[], we read the exact version field — patch number included. No regex guessing, no version inference.

  1. 1

    Confirm the site exposes sourcemaps

    In DevTools Network, check the response headers of any application script for `SourceMap` or `X-SourceMap`. Failing that, fetch the script's last 4 KB and look for a `//# sourceMappingURL=` comment — that map is where the `lodash` paths live.

  2. 2

    Find the package in the bundle

    Open DevTools → Network → reload. Click any application script and look at its sourcemap. Inside, search `sources[]` for entries matching `node_modules/lodash/` — every match confirms the package is bundled. The matching `sourcesContent[i]` for `node_modules/lodash/package.json` gives you the exact installed version.

  3. 3

    Read the version directly from package.json

    Run `jq -r '. as $m | $m.sources | to_entries[] | select(.value | endswith("node_modules/lodash/package.json")) | $m.sourcesContent[.key] | fromjson | .version' bundle.js.map`. Sourcemap Explorer automates the same query in the popup.

Major releases of lodash

When each major version first landed. Major bumps are where breaking changes live, so this timeline is the fastest way to date the lodash version a site actually ships against the ecosystem.

Major
First release
Date
v4
4.0.0
2016-01-12
v3
3.0.0
2015-01-26
v2
2.0.0
2013-09-14
v1
1.0.0
2013-08-31
v0
0.1.0
2012-04-23

Recent security advisories for lodash

The 5 most recent advisories affecting some versions of lodash, aggregated from OSV.dev (GitHub Advisory + CVE data). A listing here doesn't mean the version a given site ships is affected — each advisory applies to a specific version range. Sourcemap Explorer reads the exact bundled version so you can check it against these ranges.

  1. HIGHCVE-2021-23337· 2026-04-01

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

  2. MODERATECVE-2025-13465· 2026-04-01

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

  3. MODERATECVE-2025-13465· 2026-01-21

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

  4. MODERATECVE-2020-28500· 2022-01-06

    Regular Expression Denial of Service (ReDoS) in lodash

  5. HIGHCVE-2021-23337· 2021-05-06

    Command Injection in lodash

Recent versions

Version
Released
4.18.1
2026-04-01
4.18.0
2026-03-31
4.17.23
2026-01-21
4.17.21
2021-02-20
4.17.20
2020-08-13
4.17.19
2020-07-08
4.17.18
2020-07-08
4.17.17
2020-07-08

lodash README

Live mirror of the GitHub README, for reference. Updated whenever the repo's default branch changes.

lodash v4.18.1

Site | Docs | FP Guide | Contributing | Wiki | Code of Conduct | Governance | Twitter | Chat

[!IMPORTANT] As announced on the OpenJS Foundation blog, Lodash has received support from the Sovereign Tech Agency and will transition to the Feature-Complete maturity stage so that it remains stable, secure, and sustainable long-term. As part of this effort, Lodash is rebooting its governance. A draft charter will be published shortly. The upcoming Technical Steering Committee (TSC) is already at work. For transparency, its members are listed in GOVERNANCE.md.

The Lodash library exported as a UMD module.

Generated using lodash-cli:

$ npm run build
$ lodash -o ./dist/lodash.js
$ lodash core -o ./dist/lodash.core.js

Download

Lodash is released under the MIT license & supports modern environments.
Review the build differences & pick one that’s right for you.

Installation

In a browser:

<script src="lodash.js"></script>

Using npm:

$ npm i -g npm
$ npm i --save lodash

In Node.js:

// Load the full build.
var _ = require('lodash');
// Load the core build.
var _ = require('lodash/core');
// Load the FP build for immutable auto-curried iteratee-first data-last methods.
var fp = require('lodash/fp');

// Load method categories.
var array = require('lodash/array');
var object = require('lodash/fp/object');

// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
var at = require('lodash/at');
var curryN = require('lodash/fp/curryN');

Why Lodash?

Lodash makes JavaScript easier by taking the hassle out of working with arrays,
numbers, objects, strings, etc. Lodash’s modular methods are great for:

  • Iterating arrays, objects, & strings
  • Manipulating & testing values
  • Creating composite functions

Module Formats

Lodash is available in a variety of builds & module formats.

FAQ

What is lodash used for?

Lodash modular utilities.

How can I tell if a website is using lodash?

Open the page in Chrome with the Sourcemap Explorer extension installed and read the Stack tab. We catch `lodash` from two complementary signals: `node_modules/lodash/` paths inside the JavaScript sourcemap, and the embedded `package.json` we read for exact-version detection. Without the extension you can do the same lookup manually in DevTools — the steps are listed in the "How Sourcemap Explorer detects" section above.

How do I find out which version of lodash a website is running?

Read it straight from the site's JavaScript sourcemap. When a build ships source maps, the bundled `lodash/package.json` carries the exact `version` string — Sourcemap Explorer extracts it in one click on the Stack tab, and you can do it by hand in DevTools by opening the `.map` file and searching for `node_modules/lodash/package.json`. That is far more reliable than inferring the version from an asset-hash or a `?ver=` query string, which is all surface-level detectors have to go on. The current npm release is 4.18.1, but real deployments frequently run an older pinned version — which is exactly why reading the bundled number matters.

What is the latest version of lodash?

4.18.1, as published on the npm registry. The "Recent versions" table on this page lists the most recent 8 releases with their release dates. Sourcemap Explorer reports the version actually bundled into a site, which can lag the latest release by months on real-world deployments.

Is lodash actively maintained?

Actively maintained — the package is shipping new releases at a steady cadence. The last published release was 2026-04-01. Source code: https://github.com/lodash/lodash.

Does lodash have known security vulnerabilities?

5 recent advisories affecting some versions of lodash are listed in the "Recent security advisories" section above, aggregated from OSV.dev (GitHub Advisory + CVE data). Whether a particular site is exposed depends entirely on the exact version it ships — each advisory applies to a specific version range, not to the package as a whole. That is why the precise bundled version matters: Sourcemap Explorer reads the version a site actually runs, so you can check it against the affected ranges instead of assuming the latest release is what's deployed.

Where can I read more?

Project homepage: https://lodash.com/. Source code: https://github.com/lodash/lodash. Published on npm: https://www.npmjs.com/package/lodash. Licensed as MIT.

Detected by Sourcemap Explorer

When a bundle ships sourcemaps, we read the embedded package.json for lodash and report the precise version (the registry's latest is v4.18.1, published 2026-04-01; the bundled copy is often older). Without sourcemaps, an import / require in the page's scripts is enough to flag it.

Install free on Chrome