Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-23386
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:14 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-23386
Complete source record
{
"id": "9314dce9fcc608288068f7018f793ed858d6aa51f6444b0b92e7d33b11e615c7",
"url": "https://osv.dev/vulnerability/CVE-2021-23386",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-23386",
"summary": "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.",
"evidence": "osv:CVE-2021-23386",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-23386",
"aliases": [
"CVE-2021-23386",
"GHSA-3wcq-x3mq-6r9p"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mafintosh/dns-packet",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "ebdf849da5dc0d96836e87628349776c623c5be7"
},
{
"introduced": "a77e1bbcc7cd0acd3cf46fe141df869d2b86f366"
},
{
"fixed": "bb04450fe4c39b5a2cf0974bb5cf5ef624cbd3da"
},
{
"fixed": "25f15dd0fedc53688b25fd053ebbdffe3d5c1c56"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:dns-packet_project:dns-packet:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.3.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:dns-packet_project:dns-packet:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "5.2.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "25f15dd0fedc53688b25fd053ebbdffe3d5c1c56"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.3.3",
"v1.3.2",
"v1.3.1",
"v5.2.1",
"v5.2.0",
"v5.1.2",
"v5.1.1",
"v5.1.0",
"v5.0.4",
"v5.0.3",
"v5.0.2",
"v5.0.1",
"v5.0.0",
"v4.2.0",
"v4.1.1",
"v4.1.0",
"v4.0.0",
"v3.0.1",
"v3.0.0",
"v2.0.0",
"v1.3.0",
"v1.2.2",
"v1.2.1",
"v1.2.0",
"v1.1.1",
"v1.1.0",
"v1.0.2",
"v1.0.1",
"v1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23386.json"
}
}
],
"modified": "2026-10-20T10:53:37.691961791Z",
"provider": "osv",
"references": [
"https://hackerone.com/bugs?subject=user&%3Breport_id=968858",
"https://github.com/mafintosh/dns-packet/commit/25f15dd0fedc53688b25fd053ebbdffe3d5c1c56",
"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1295719",
"https://snyk.io/vuln/SNYK-JS-DNSPACKET-1293563"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-23386",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384447,
"published_at": "2021-05-20T17:15:07.567+00:00"
}