Vulnerabilities |
2 via 2 paths |
|---|---|
Dependencies |
104 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
high severity
- Vulnerable module: lodash.template
- Introduced through: gulp-util@3.0.8
Detailed paths
-
Introduced through: gulp-snyk@doug-wade/gulp-snyk › gulp-util@3.0.8 › lodash.template@3.6.2
Overview
lodash.template is a The Lodash method _.template exported as a Node.js module.
Affected versions of this package are vulnerable to Arbitrary Code Injection due the improper validation of options.imports key names in _.template. An attacker can execute arbitrary code at template compilation time by injecting malicious expressions. If Object.prototype has been polluted, inherited properties may also be copied into the imports object and executed.
Notes:
Version 4.18.0 was intended to fix this vulnerability but it got deprecated due to introducing a breaking functionality issue.
This issue is due to the incomplete fix for CVE-2021-23337.
Remediation
Upgrade lodash.template to version 4.18.1 or higher.
References
high severity
- Vulnerable module: lodash.template
- Introduced through: gulp-util@3.0.8
Detailed paths
-
Introduced through: gulp-snyk@doug-wade/gulp-snyk › gulp-util@3.0.8 › lodash.template@3.6.2
Overview
lodash.template is a The Lodash method _.template exported as a Node.js module.
Affected versions of this package are vulnerable to Code Injection due the improper validation of options.variable key names in _.template. An attacker can execute arbitrary code at template compilation time by injecting malicious expressions. If Object.prototype has been polluted, inherited properties may also be copied into the imports object and executed.
PoC
var _ = require('lodash');
_.template('', { variable: '){console.log(process.env)}; with(obj' })()
Remediation
There is no fixed version for lodash.template.