Skip to content
OpenAdvisories

Description

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

Affected products

VendorProductAffectedFixed
— Lodash prior to 4.17.21 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-lodash 4.17.21+dfsg+~cs8.31.173-1 —
Debian 13 node-lodash 4.17.21+dfsg+~cs8.31.173-1 —
Debian 12 node-lodash 4.17.21+dfsg+~cs8.31.173-1 —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 node-lodash 4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.25.10.1 USN-8411-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS node-lodash 4.17.23+dfsg-1ubuntu0.1~esm1 USN-8411-1
Ubuntu Pro 24.04 LTS node-lodash 4.17.21+dfsg+~cs8.31.198.20210220-9ubuntu0.24.04.1~esm1 USN-8411-1
Ubuntu Pro 22.04 LTS node-lodash 4.17.21+dfsg+~cs8.31.198.20210220-5ubuntu0.1~esm1 USN-8411-1
Ubuntu Pro 20.04 LTS node-lodash 4.17.15+dfsg-2ubuntu0.1~esm1 USN-8411-1
Ubuntu Pro 18.04 LTS node-lodash 4.17.4+dfsg-1ubuntu0.1~esm1 USN-8411-1
Ubuntu Pro 16.04 LTS node-lodash 2.4.1+dfsg-3ubuntu0.1~esm1 USN-8411-1
ReleasePackageFixed inAdvisory
Red Hat Rhev Manager 4 ovirt-engine-ui-extensions 1.2.6-1.el8ev RHSA-2021:2179
Red Hat Rhev Manager 4 ovirt-web-ui 1.6.9-1.el8ev RHSA-2021:2179
Red Hat Rhev Hypervisor 4 cockpit-ovirt +1 0.15.1-2.el8ev RHSA-2021:3459

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 js-jquery No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
npm lodash < 4.17.21 4.17.21 GHSA-35jh-r3h4-6jhm
npm lodash-es < 4.17.21 4.17.21 GHSA-35jh-r3h4-6jhm
npm lodash-template <= 1.0.0 — GHSA-35jh-r3h4-6jhm
npm lodash.template <= 4.5.0 — GHSA-35jh-r3h4-6jhm
RubyGems lodash-rails < 4.17.21 4.17.21 GHSA-35jh-r3h4-6jhm

Advisories 12

References