Command Injection in dns-sync

dns-sync Updated 02 Oct 2025

Summary

27/08/2020
MODERATE
Yes i
Moderate
Not published

GHSA-c6h2-mpc6-232h: Command Injection in dns-sync. Affects dns-sync versions < 0.1.3. Fixed in 0.1.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The dns-sync package is an npm package that provides a synchronous DNS resolver for Node.js applications. It allows developers to perform DNS lookups and resolve hostnames synchronously within their code. This package is vulnerable to a command injection vulnerability.

Vulnerability Detail

The command injection vulnerability in dns-sync allows an attacker to execute arbitrary commands on the host system by injecting malicious input into the DNS lookup function. This can lead to remote code execution and unauthorized access to the host system. The vulnerability is considered moderate in severity.

How To Fix

Latest published version: 0.2.1 as of 23 Oct 2026

npm install dns-sync@0.2.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.1.3

This is the first release that contains the fix.

npm install dns-sync@0.1.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to upgrade to the fixed version of the dns-sync package to mitigate the risk.

Conclusion

The command injection vulnerability in dns-sync can lead to remote code execution and unauthorized access. It is crucial to upgrade to version 0.1.3 or later of the dns-sync package to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for dns-sync →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary commands on the host system, potentially leading to remote code execution and unauthorized access.

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

Yes, upgrading to version 0.1.3 or later of the dns-sync package fixes this vulnerability. Make sure to update your package.json file and install the updated package.

There are no known workarounds for this vulnerability. Upgrading to the fixed version of the dns-sync package is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for dns-sync.

How To Fix

Latest published version: 0.2.1 as of 23 Oct 2026

npm install dns-sync@0.2.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.1.3

This is the first release that contains the fix.

npm install dns-sync@0.1.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback