Security mailing lists by PureSourceCode

CVE-2021-23386

MEDIUM 6.5CVSS 3.1

Potential memory exposure in dns-packet

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.

Published
20 May 2021
Last modified
17 Jun 2026
Assigned by
report@snyk.io
NVD status
Modified
Weakness
CWE-200CWE-908CWE-909
Also known as
GHSA-3wcq-x3mq-6r9p
Sources
NVDJSONOSV GHSA-3wcq-x3mq-6r9pJSON

Scores

SourceScored byVersionScoreVector / decision
NVD report@snyk.io (Secondary) CVSS 3.1 HIGH 7.7 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
OSV GitHub CVSS 3.1 HIGH 7.7 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.0 AV:N/AC:L/Au:S/C:P/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD dns-packet_project dns-packet
cpe:2.3:a:dns-packet_project:dns-packet:*:*:*:*:*:node.js:*:*
< 1.3.4 1.3.4
NVD dns-packet_project dns-packet
cpe:2.3:a:dns-packet_project:dns-packet:*:*:*:*:*:node.js:*:*
>= 2.0.0, < 5.2.2 5.2.2
OSV npm dns-packet >= 2.0.0, < 5.2.2 5.2.2
OSV npm dns-packet < 1.3.2 1.3.2

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 20 May 2021)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 24 May 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.