CVE-2021-23386
JavaScript vulnerability analysis and mitigation

Overview

CVE-2021-23386 is a Remote Memory Exposure vulnerability affecting the dns-packet package versions before 5.2.2. The vulnerability was discovered and disclosed on May 18, 2021, and published on May 20, 2021. The affected package is an abstract-encoding compliant module used for encoding and decoding DNS packets (Snyk JS, NVD).

Technical details

The vulnerability occurs because the package creates buffers with allocUnsafe and does not always fill them before forming network packets. The vulnerability has a CVSS v3.1 Base Score of 7.7 (High) according to Snyk's assessment, with Network attack vector, High attack complexity, Low privileges required, and No user interaction needed. The scope is considered Changed, with High impact on Confidentiality and Low impact on both Integrity and Availability (Snyk Java).

Impact

When exploited, this vulnerability can expose internal application memory over unencrypted network when querying crafted invalid domain names. This can lead to a total loss of confidentiality, potentially resulting in all resources within the impacted component being divulged to the attacker (Snyk JS).

Mitigation and workarounds

The recommended mitigation is to upgrade dns-packet to version 5.2.2 or higher. For Java users specifically, upgrade org.webjars.npm:dns-packet to version 5.4.0 or higher. A fix has been implemented in the package that addresses the buffer handling issue (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-8083HIGH8.6
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025
CVE-2025-67750HIGH8.4
  • JavaScriptJavaScript
  • lightning-flow-scanner
NoYesDec 12, 2025
CVE-2025-8082MEDIUM6.3
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management