Vulnerabilities in pkg:npm/wiki-plugin-datalog
PACKAGEGHSA-pm52-wwrw-c282 is a HIGH (CVSS 6.5) command injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Wiki plugin datalog libraries in the npm ecosystem. The issue involves command injection in wiki-plugin-datalog. Remediation is available by upgrading affected packages to version 0.1.6.
pkg:npm/wiki-plugin-datalog
Vulnerability advisories affecting package pkg:npm/wiki-plugin-datalog. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-pm52-wwrw-c282 | - | HIGH | Command Injection in wiki-plugin-datalog |
GHSA-pm52-wwrw-c282 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N).
How to Fix GHSA-pm52-wwrw-c282
To remediate this vulnerability, upgrade all affected Wiki plugin datalog 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 wiki-plugin-datalog@0.1.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls wiki-plugin-datalog
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-pm52-wwrw-c282, inspect your project dependencies using npm:
npm ls wiki-plugin-datalog
Analyze the terminal output to locate any version of Wiki plugin datalog in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.6), your application is affected.
Note: The npm ls wiki-plugin-datalog 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Wiki plugin datalog, 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
GHSA-pm52-wwrw-c282 Affected Wiki plugin datalog Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
wiki-plugin-datalog
|
npm |
< 0.1.6
|
0.1.6
|
References
Frequently Asked Questions
What is GHSA-pm52-wwrw-c282?
Which Wiki plugin datalog versions are affected?
What version fixes GHSA-pm52-wwrw-c282?
Is wiki-plugin-datalog affected?
What is the CVSS score of GHSA-pm52-wwrw-c282?
What CWE is associated with GHSA-pm52-wwrw-c282?
How can I check npm dependencies for GHSA-pm52-wwrw-c282?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pm52-wwrw-c282",
"modified" : "2021-08-16T14:32:10Z",
"published" : "2019-06-13T18:59:06Z",
"aliases" : [ ],
"summary" : "Command Injection in wiki-plugin-datalog",
"details" : "Versions of `wiki-plugin-datalog` prior to 0.1.6 are vulnerable to Command Injection. The package failed to sanitize URLs on the curl endpoint, allowing attackers to inject commands and possibly achieving Remote Code Execution on the system.\n\n\n## Recommendation\n\nUpgrade to version 0.1.6 or later.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "wiki-plugin-datalog"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.1.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/WardCunningham/wiki-plugin-datalog/commit/020aa6201319e5b76301a61b65268c94dc242fa7"
}, {
"type" : "WEB",
"url" : "https://snyk.io/vuln/SNYK-JS-WIKIPLUGINDATALOG-449540"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/926"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-13T18:50:56Z",
"nvd_published_at" : null
}
}