Live threats

All CVEs / Dns-packet Project

CVE-2021-23386Dns-packet Project Dns-packet

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
1.4%
probability of exploitation in 30 days · percentile 73
Auth required
Yes
Published
May 20, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-909
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

What happens

This affects the package dns-packet before 5.2.2. 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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Dns-packet.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm dns-packet ≥ 2.0.0 < 5.2.2 5.2.2 npm install dns-packet@5.2.2
npm dns-packet < 1.3.2 1.3.2 npm install dns-packet@1.3.2

Per OSV / GitHub Advisories (GHSA-3wcq-x3mq-6r9p). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
dns-packet_projectdns-packet< 1.3.4
dns-packet_projectdns-packet≥ 2.0.0 < 5.2.2

Official sources

References

Links published by the sources. Open them with care.