VDB
Sign up
HIGH7.2

GHSA-35jh-r3h4-6jhm

Command Injection in lodash

Quick fix

GHSA-35jh-r3h4-6jhm — lodash: upgrade to the fixed version with the command below.

npm install lodash@4.17.21

Details

`lodash` versions prior to 4.17.21 are vulnerable to Command Injection via the template function.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/lodash
Introduced in: 0Fixed in: 4.17.21
Fixnpm install lodash@4.17.21
npm/lodash-es
Introduced in: 0Fixed in: 4.17.21
Fixnpm install lodash-es@4.17.21
npm/lodash.template
Introduced in: 0

No fixed version published yet for lodash.template (npm). Pin to a known-safe version or switch to an alternative.

npm/lodash-template
Introduced in: 0

No fixed version published yet for lodash-template (npm). Pin to a known-safe version or switch to an alternative.

RubyGems/lodash-rails
Introduced in: 0Fixed in: 4.17.21
Fixbundle update lodash-rails

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:npm/lodash"]}'