Description
Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
GitHub 2 repositories
-
mcpmark-eval-liuhezi/ghsa-lodash-ci-7f3c9a ★ 0 · Nov 12, 2026
Dependency-review rehearsal for the reviewed lodash advisory CVE-2021-23337.
-
khayashi4337/lodash.template-fixed ★ 0 · Mar 1, 2026
Fork of lodash.template with CVE-2021-23337 fix (command injection via variable option)
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.
- Lodash Template - Server-Side Template Injection (RCE) http/cves/2021/CVE-2021-23337.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| 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
- WID-SEC-2026-3046 IBM Concert: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 10, 2026
- USN-8411-1 node-lodash vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- RHSA-2021:3459 Red Hat Security Advisory: Red Hat Virtualization Host security and bug fix update [ovirt-4.4.8] Red Hat Security Advisories (RHSA) · Oct 9, 2026
- RHSA-2021:2179 Red Hat Security Advisory: RHV Manager security update (ovirt-engine) [ovirt-4.4.6] Red Hat Security Advisories (RHSA) · Oct 9, 2026
- WID-SEC-2022-1384 Red Hat Virtualization: Mehrere Schwachstellen ermöglichen Denial of Service BSI CERT-Bund (WID) · Sep 13, 2026
- WID-SEC-2026-2260 IBM Operational Decision Manager: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jul 8, 2026
- WID-SEC-2026-1654 IBM App Connect Enterprise: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 28, 2026
- WID-SEC-2022-1375 JFrog Artifactory: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 12, 2025
- WID-SEC-2023-3025 IBM InfoSphere Information Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 4, 2023
- WID-SEC-2023-0857 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 4, 2023
- ICSA-22-258-05 Siemens SINEC INS CISA ICS & IT advisories · Sep 13, 2022
- SSA-637483 SSA-637483 Third-Party Component Vulnerabilities in SINEC INS before V1.0 SP2 Siemens ProductCERT · Sep 13, 2022
References
- https://snyk.io/vuln/SNYK-JS-LODASH-1040724
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074928
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074929
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074930
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074931
- https://snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074932
- https://github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js%23L14851
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://security.netapp.com/advisory/ntap-20210312-0006/
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf