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 April 17, 2024)

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/blob/ddfd9b11a0126db2302cb70ec9973b66baec0975/lodash.js%23L14851
  • github.com/lodash/lodash/commit/3469357cff396a26c363f8c1b5a91dde28ba4b1c
  • 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. Learn more about Dependency Scanning →

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 Wed, 14 May 2025 12:15:49 +0000.