Advisory

GHSA-35jh-r3h4-6jhm

Also known as: CVE-2021-23337

Summary

Command Injection in lodash

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-05-06 16:05 UTC
Modified
2026-10-17 02:55 UTC

Affected packages and fixes

lodash

npm · All systems

Affected

  • introduced 0, fixed 4.17.21 (semver)

Fixed versions

4.17.21

Fix

lodash-es

npm · All systems

Affected

  • introduced 0, fixed 4.17.21 (semver)

Fixed versions

4.17.21

Fix

lodash.template

npm · All systems

Affected

  • introduced 0, last affected 4.5.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

lodash-template

npm · All systems

Affected

  • introduced 0, last affected 1.0.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

lodash-rails

RubyGems · All systems

Affected

  • introduced 0, fixed 4.17.21 (ecosystem)

Fixed versions

4.17.21

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences