Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. dns-packet
  4. ›
  5. CVE-2021-23386

CVE-2021-23386: Information Exposure

May 20, 2021 (updated July 12, 2022)

This affects the package dns-packet It creates buffers with allocUnsafe and does not always fill them before forming network packets. This can expose internal application memory over unencrypted network when querying crafted invalid domain names.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-23386

Code Behaviors & Features

Detect and mitigate CVE-2021-23386 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.4, all versions starting from 2.0.0 before 5.2.2

Fixed versions

  • 1.3.4
  • 5.2.2

Solution

Upgrade to versions 1.3.4, 5.2.2 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-909: Missing Initialization of Resource

Source file

npm/dns-packet/CVE-2021-23386.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:45 +0000.