Vulnerabilities in pkg:npm/dns-sync

PACKAGE
Advisory Identifier: GHSA-wh69-wc6q-7888
Advisory Summary

CVE-2020-11079 is a HIGH (CVSS 8.6) command injection vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Dns sync libraries in the npm ecosystem. The issue involves command injection in node-dns-sync. Remediation is available by upgrading affected packages to version 0.2.1.

5 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/dns-sync

5 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/dns-sync. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-wh69-wc6q-7888 CVE-2020-11079 HIGH Command injection in node-dns-sync
GHSA-q5pq-pgrv-fh89 CVE-2014-9682 CRITICAL dns-sync command injection vulnerability
GHSA-jcw8-r9xm-32c6 CVE-2017-16100 CRITICAL Command Injection in dns-sync
GHSA-c6h2-mpc6-232h - MODERATE Command Injection in dns-sync
GHSA-wxvm-fh75-mpgr - CRITICAL Critical severity vulnerability that affects dns-sync

CVE-2020-11079 at a Glance

CVE Identifier CVE-2020-11079
GHSA Identifier GHSA-wh69-wc6q-7888
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Dns sync
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.6

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:C/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2020-11079

To remediate this vulnerability, upgrade all affected Dns sync dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

dns-sync fixed: 0.2.1
npm install dns-sync@0.2.1
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 dns-sync

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2020-11079, inspect your project dependencies using npm:

npm ls dns-sync

Analyze the terminal output to locate any version of Dns sync in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.1), your application is affected.

Note: The npm ls dns-sync 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 Dns sync, 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

dns-sync through 0.2.0 allows execution of arbitrary commands . This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input.

CVE-2020-11079 Affected Dns sync Versions

1 component(s)
Fixed Versions:
0.2.1
Product / Package Ecosystem Affected Versions Fixed Version
dns-sync
npm
≥ 0.1.3
< 0.2.1
0.2.1

References

Frequently Asked Questions

What is CVE-2020-11079?
CVE-2020-11079 is a security vulnerability in Dns sync involving Command injection in node-dns-sync under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Dns sync versions are affected?
Affected versions include releases prior to 0.2.1 across affected packages: dns-sync.
What version fixes CVE-2020-11079?
Upgrading to 0.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dns-sync affected?
Yes, dns-sync is affected in releases prior to 0.2.1. Upgrade your dependency to 0.2.1 or later.
What is the CVSS score of CVE-2020-11079?
CVE-2020-11079 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N.
What CWE is associated with CVE-2020-11079?
CVE-2020-11079 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 CVE-2020-11079?
Run the dependency tree command: 'npm ls dns-sync'. 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-wh69-wc6q-7888",
  "modified" : "2026-01-14T22:17:20Z",
  "published" : "2020-05-28T18:42:59Z",
  "aliases" : [ "CVE-2020-11079" ],
  "summary" : "Command injection in node-dns-sync",
  "details" : "dns-sync through 0.2.0 allows execution of arbitrary commands . This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "dns-sync"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.1.3"
      }, {
        "fixed" : "0.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/skoranga/node-dns-sync/security/advisories/GHSA-wh69-wc6q-7888"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-11079"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/skoranga/node-dns-sync/commit/cb10a5ac7913eacc031ade7d91596277f31645dc"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/skoranga/node-dns-sync"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77", "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-05-28T18:42:31Z",
    "nvd_published_at" : "2020-05-28T19:15:00Z"
  }
}