lodash.template Known Vulnerabilities & Fixes
lodash.template has 2 known security vulnerabilities in npm (Node.js). Upgrade to version 4.18.0 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.
Recommended safe version: 4.18.0
Upgrading to 4.18.0 or later resolves all 2 known vulnerabilities in lodash.template. Run: npm install lodash.template@4.18.0
Is lodash.template in your project?
Check if you're affected and upgrade to 4.18.0 to stay secure.
Security Summary
- 2 affected version ranges have been identified across these 2 advisories.
- 50% of known issues have a published fixed version.
- Highest exploit-probability (EPSS) score for lodash.template: 20.6%.
- Remediation: npm update lodash.template
Vulnerabilities
2 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed May 6, 2021, most recently Apr 1, 2026 (1791 days apart).
| CVE / GHSA | Severity |
|---|---|
| CVE-2021-23337 Command Injection in lodash
| HIGH |
| CVE-2026-4800 lodash vulnerable to Code Injection via `_.template` imports key names
| HIGH |
About This Data
Vulnerability data for lodash.template is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.
CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Related npm (Node.js) Packages
Other packages in this ecosystem, ranked by shared vulnerabilities where available.
Check Your Dependencies
Scan your project to check if you're using a vulnerable version of lodash.template.