CVE-2020-7623: OS Command Injection in jscover
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.8066%
CWE
Published
2/10/2022
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
jscover | npm | <= 1.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability occurs in the command construction at line 59 and subsequent execution via child_process.exec
. The code builds a Java command string (JSCoverCommand
) that directly incorporates the user-controlled 'source' argument without any sanitization. When this unsanitized input is passed to exec()
, it enables arbitrary command execution through shell injection techniques. The combination of user input interpolation in system commands and lack of input validation/sanitization matches the CWE-78
pattern.