Vulnerabilities in pkg:npm/git-it-electron
PACKAGECVE-2021-44685 is a CRITICAL (CVSS 9.8) command injection vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Git it electron libraries in the npm ecosystem. The issue involves command injection in git-it-electron. Remediation is available in the latest vendor maintenance releases.
pkg:npm/git-it-electron
Vulnerability advisories affecting package pkg:npm/git-it-electron. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-wjqc-j537-j9gj | CVE-2021-44685 | CRITICAL | Command injection in git-it-electron |
CVE-2021-44685 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2021-44685
To remediate this vulnerability, upgrade all affected Git it electron dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install git-it-electron@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls git-it-electron
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-44685, inspect your project dependencies using npm:
npm ls git-it-electron
Analyze the terminal output to locate any version of Git it electron in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls git-it-electron command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Git it electron, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-44685 Affected Git it electron Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
git-it-electron
|
npm |
≤ 4.3.0
|
|
References
Frequently Asked Questions
What is CVE-2021-44685?
Which Git it electron versions are affected?
What version fixes CVE-2021-44685?
Is git-it-electron affected?
What is the CVSS score of CVE-2021-44685?
What CWE is associated with CVE-2021-44685?
How can I check npm dependencies for CVE-2021-44685?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wjqc-j537-j9gj",
"modified" : "2022-08-30T17:34:55Z",
"published" : "2021-12-08T00:01:44Z",
"aliases" : [ "CVE-2021-44685" ],
"summary" : "Command injection in git-it-electron",
"details" : "Git-it through 4.4.0 allows OS command injection at the Branches Aren't Just For Birds challenge step. During the verification process, it attempts to run the reflog command followed by the current branch name (which is not sanitized for execution).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "git-it-electron"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "4.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-44685"
}, {
"type" : "WEB",
"url" : "https://github.com/dwisiswant0/advisory/issues/3"
}, {
"type" : "WEB",
"url" : "https://advisory.dw1.io/3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jlord/git-it-electron"
}, {
"type" : "WEB",
"url" : "https://github.com/jlord/git-it-electron/releases"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-12-09T17:57:55Z",
"nvd_published_at" : "2021-12-07T00:15:00Z"
}
}