Code Injection Affecting org.webjars:lodash package, versions [,4.17.21)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.86% (83rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGWEBJARS-1074930
  • published15 Feb 2021
  • disclosed17 Nov 2020
  • creditMarc Hassan

Introduced: 17 Nov 2020

CVE-2021-23337  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.webjars:lodash to version 4.17.21 or higher.

Overview

org.webjars:lodash is a modern JavaScript utility library delivering modularity, performance, & extras.

Affected versions of this package are vulnerable to Code Injection via template.

PoC

var _ = require('lodash');

_.template('', { variable: '){console.log(process.env)}; with(obj' })()

CVSS Scores

version 3.1