CVE-2022-29080

The npm-dependency-versions package through 0.3.0 for Node.js allows command injection if an attacker is able to call dependencyVersions with a JSON object in…

published April 12, 2022

CVSS
—
EPSS
2%
Percentile
82.2
In the wild
Unconfirmed
What it is

⚡ A sneaky command injection vulnerability lurks in the npm-dependency-versions package that's still hanging around in version 0.3.0! Think of it as a troublesome restaurant order where a chef receives instructions that can include secret ingredients — if they misinterpret the order, it can lead to unexpected and dangerous dishes being served! An attacker could exploit this flaw by injecting malicious commands through the package's input, potentially compromising the entire application. This means they could execute arbitrary commands on the server as if they had access, leading to unauthorized actions or data breaches. Yikes!

Put simply

Think of it as a troublesome restaurant order where a chef receives instructions that can include secret ingredients — if they misinterpret the order, it can lead to unexpected and dangerous dishes being served! This vulnerability allows command injection if an attacker sends a JSON object with shell metacharacters in the 'pkgs' key, risking the execution of unintended commands. It's like a poorly vetted order that gets processed without checks!

What to do

An attacker could exploit this flaw by injecting malicious commands through the package's input, potentially compromising the entire application. This means they could execute arbitrary commands on the server as if they had access, leading to unauthorized actions or data breaches. Yikes! Upgrade the npm-dependency-versions package to a secure version beyond 0.3.0. Also, sanitize all user inputs to ensure that no harmful characters make it through. A little extra care can save a lot of headaches later! You've got this! Patch up and keep your application safe from sneaky exploits! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02183 · 82.2th percentile
Published
2022-04-12T04:45Z
EPSS history
Timeline
  • 12 APR 04:45Z
    The npm-dependency-versions package through 0.3.0 for Node.js allows command injection if an attacker is able to call dependencyVersions with a JSON object in…
    cvelistv5