GHSA-pm52-wwrw-c282: Wiki plugin datalog Command Injection Vulnerability

HIGH
CVSS 6.5
CWE-94
Published
Advisory Summary

GHSA-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.

GHSA-pm52-wwrw-c282 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-pm52-wwrw-c282
Severity HIGH
CVSS v3.1 Base Score 6.5
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Wiki plugin datalog
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (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.

wiki-plugin-datalog fixed: 0.1.6
npm install wiki-plugin-datalog@0.1.6
Verify Direct and Transitive Dependencies

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

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. ## Recommendation Upgrade to version 0.1.6 or later.

GHSA-pm52-wwrw-c282 Affected Wiki plugin datalog Versions

1 component(s)
Fixed Versions:
0.1.6
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?
GHSA-pm52-wwrw-c282 is a security vulnerability in Wiki plugin datalog involving Command Injection in wiki-plugin-datalog under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Wiki plugin datalog versions are affected?
Affected versions include releases prior to 0.1.6 across affected packages: wiki-plugin-datalog.
What version fixes GHSA-pm52-wwrw-c282?
Upgrading to 0.1.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is wiki-plugin-datalog affected?
Yes, wiki-plugin-datalog is affected in releases prior to 0.1.6. Upgrade your dependency to 0.1.6 or later.
What is the CVSS score of GHSA-pm52-wwrw-c282?
GHSA-pm52-wwrw-c282 has a CVSS v3.1 base score of 6.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with GHSA-pm52-wwrw-c282?
GHSA-pm52-wwrw-c282 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (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.).
How can I check npm dependencies for GHSA-pm52-wwrw-c282?
Run the dependency tree command: 'npm ls wiki-plugin-datalog'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}