From 99a6363f6c905828dd917c79e5a5744495d7bfc2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 12:59:02 +0000 Subject: [PATCH] chore: bump lodash and @types/lodash in /offlinedocs (#24872) Bumps [lodash](https://github.com/lodash/lodash) and [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash). These dependencies needed to be updated together. Updates `lodash` from 4.17.21 to 4.18.1
Release notes

Sourced from lodash's releases.

4.18.1

Bugs

Fixes a ReferenceError issue in lodash lodash-es lodash-amd and lodash.template when using the template and fromPairs functions from the modular builds. See lodash/lodash#6167

These defects were related to how lodash distributions are built from the main branch using https://github.com/lodash-archive/lodash-cli. When internal dependencies change inside lodash functions, equivalent updates need to be made to a mapping in the lodash-cli. (hey, it was ahead of its time once upon a time!). We know this, but we missed it in the last release. It's the kind of thing that passes in CI, but fails bc the build is not the same thing you tested.

There is no diff on main for this, but you can see the diffs for each of the npm packages on their respective branches:

4.18.0

v4.18.0

Full Changelog: https://github.com/lodash/lodash/compare/4.17.23...4.18.0

Security

_.unset / _.omit: Fixed prototype pollution via constructor/prototype path traversal (GHSA-f23m-r3pf-42rh, fe8d32e). Previously, array-wrapped path segments and primitive roots could bypass the existing guards, allowing deletion of properties from built-in prototypes. Now constructor and prototype are blocked unconditionally as non-terminal path keys, matching baseSet. Calls that previously returned true and deleted the property now return false and leave the target untouched.

_.template: Fixed code injection via imports keys (GHSA-r5fr-rjxr-66jc, CVE-2026-4800, 879aaa9). Fixes an incomplete patch for CVE-2021-23337. The variable option was validated against reForbiddenIdentifierChars but importsKeys was left unguarded, allowing code injection via the same Function() constructor sink. imports keys containing forbidden identifier characters now throw "Invalid imports option passed into _.template".

Docs

lodash.* modular packages

Diff

We have also regenerated and published a select number of the lodash.* modular packages.

These modular packages had fallen out of sync significantly from the minor/patch updates to lodash. Specifically, we have brought the following packages up to parity w/ the latest lodash release because they have had CVEs on them in the past:

Commits

Updates `@types/lodash` from 4.17.21 to 4.17.24
Commits

Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- offlinedocs/package.json | 4 ++-- offlinedocs/pnpm-lock.yaml | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/offlinedocs/package.json b/offlinedocs/package.json index 0696e54a68..3f3b2e2536 100644 --- a/offlinedocs/package.json +++ b/offlinedocs/package.json @@ -19,7 +19,7 @@ "archiver": "6.0.2", "framer-motion": "^10.18.0", "front-matter": "4.0.2", - "lodash": "4.17.21", + "lodash": "4.18.1", "next": "15.5.9", "react": "18.3.1", "react-dom": "18.3.1", @@ -30,7 +30,7 @@ "sanitize-html": "2.17.3" }, "devDependencies": { - "@types/lodash": "4.17.21", + "@types/lodash": "4.17.24", "@types/node": "20.19.39", "@types/react": "18.3.12", "@types/react-dom": "18.3.1", diff --git a/offlinedocs/pnpm-lock.yaml b/offlinedocs/pnpm-lock.yaml index 10d681f06e..cafa09e0d4 100644 --- a/offlinedocs/pnpm-lock.yaml +++ b/offlinedocs/pnpm-lock.yaml @@ -31,8 +31,8 @@ importers: specifier: 4.0.2 version: 4.0.2 lodash: - specifier: 4.17.21 - version: 4.17.21 + specifier: 4.18.1 + version: 4.18.1 next: specifier: 15.5.9 version: 15.5.9(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -59,8 +59,8 @@ importers: version: 2.17.3 devDependencies: '@types/lodash': - specifier: 4.17.21 - version: 4.17.21 + specifier: 4.17.24 + version: 4.17.24 '@types/node': specifier: 20.19.39 version: 20.19.39 @@ -572,8 +572,8 @@ packages: '@types/lodash.mergewith@4.6.9': resolution: {integrity: sha512-fgkoCAOF47K7sxrQ7Mlud2TH023itugZs2bUg8h/KzT+BnZNrR2jAOmaokbLunHNnobXVWOezAeNn/lZqwxkcw==} - '@types/lodash@4.17.21': - resolution: {integrity: sha512-FOvQ0YPD5NOfPgMzJihoT+Za5pdkDJWcbpuj1DjaKZIr/gxodQjY/uWEFlTNqW2ugXHUiL8lRQgw63dzKHZdeQ==} + '@types/lodash@4.17.24': + resolution: {integrity: sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==} '@types/mdast@4.0.4': resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} @@ -1739,8 +1739,8 @@ packages: lodash.mergewith@4.6.2: resolution: {integrity: sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==} - lodash@4.17.21: - resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + lodash@4.18.1: + resolution: {integrity: sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==} longest-streak@3.1.0: resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} @@ -3109,9 +3109,9 @@ snapshots: '@types/lodash.mergewith@4.6.9': dependencies: - '@types/lodash': 4.17.21 + '@types/lodash': 4.17.24 - '@types/lodash@4.17.21': {} + '@types/lodash@4.17.24': {} '@types/mdast@4.0.4': dependencies: @@ -3336,7 +3336,7 @@ snapshots: glob: 8.1.0 graceful-fs: 4.2.11 lazystream: 1.0.1 - lodash: 4.17.21 + lodash: 4.18.1 normalize-path: 3.0.0 readable-stream: 3.6.2 @@ -4486,7 +4486,7 @@ snapshots: lodash.mergewith@4.6.2: {} - lodash@4.17.21: {} + lodash@4.18.1: {} longest-streak@3.1.0: {}