Do your applications use this vulnerable package?
Test your applications
Overview
lodash is a modern JavaScript utility library delivering modularity, performance, & extras.
Affected versions of this package are vulnerable to Command Injection via template
.
PoC
var _ = require('lodash');
_.template('', { variable: '){console.log(process.env)}; with(obj' })()
Remediation
Upgrade lodash
to version 4.17.21 or higher.
References
CVSS Score
7.2
high severity
-
Attack VectorNetwork
-
Attack ComplexityLow
-
Privileges RequiredHigh
-
User InteractionNone
-
ScopeUnchanged
-
ConfidentialityHigh
-
IntegrityHigh
-
AvailabilityHigh
- Credit
- Marc Hassan
- CVE
- CVE-2021-23337
- CWE
- CWE-78
- Snyk ID
- SNYK-JS-LODASH-1040724
- Disclosed
- 17 Nov, 2020
- Published
- 15 Feb, 2021