CVE-2021-23386Dns-packet Project Dns-packet
Medium 6.5
Follow: this CVE · Dns-packet Project · Dns-packet Project Dns-packet We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Dns-packet.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| dns-packet_project | dns-packet | < 1.3.4 |
| dns-packet_project | dns-packet | ≥ 2.0.0 < 5.2.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- hackerone.com Permissions Required Third Party Advisory
- snyk.io Patch Third Party Advisory
- snyk.io Patch Third Party Advisory