Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. lodash.template
  4. ›
  5. CVE-2021-23337

CVE-2021-23337: Command Injection in lodash

May 6, 2021 (updated August 12, 2025)

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

References

  • cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf
  • github.com/advisories/GHSA-35jh-r3h4-6jhm
  • github.com/lodash/lodash
  • github.com/lodash/lodash/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js
  • github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2021-23337.yml
  • nvd.nist.gov/vuln/detail/CVE-2021-23337
  • security.netapp.com/advisory/ntap-20210312-0006
  • snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074932
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074930
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074928
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074931
  • snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074929
  • snyk.io/vuln/SNYK-JS-LODASH-1040724
  • www.oracle.com//security-alerts/cpujul2021.html
  • www.oracle.com/security-alerts/cpujan2022.html
  • www.oracle.com/security-alerts/cpujul2022.html
  • www.oracle.com/security-alerts/cpuoct2021.html

Code Behaviors & Features

Detect and mitigate CVE-2021-23337 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 4.5.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/lodash.template/CVE-2021-23337.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:57 +0000.