CVE-2023-31130
npm vulnerability analysis and mitigation

Overview

CVE-2023-31130 affects c-ares, an asynchronous resolver library. The vulnerability was discovered in May 2023 and involves a buffer underflow vulnerability in the ares_inet_net_pton() function when processing certain IPv6 addresses, particularly with the address pattern "0::00:00:00/2". The issue affects versions prior to 1.19.1 (GitHub Advisory, NVD).

Technical details

The vulnerability is a buffer underwrite (buffer underflow) condition in the ares_inet_net_pton() function when processing specific IPv6 addresses. The function is primarily used internally by c-ares for configuration purposes through the ares_set_sortlist() function. The vulnerability has been assigned a CVSS v3.1 base score of 6.4 (Medium) with the vector string CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H, indicating local access requirements with high complexity and high privileges required (GitHub Advisory).

Impact

While c-ares only uses the vulnerable function internally for configuration purposes requiring administrator access, external usage of ares_inet_net_pton() for other purposes may be vulnerable to more severe issues. The vulnerability could potentially lead to disclosure of sensitive information, modification of data, or Denial of Service (DoS) (NetApp Advisory).

Mitigation and workarounds

The vulnerability has been fixed in c-ares version 1.19.1. Users are advised to upgrade to this version or later. No workarounds are available for this vulnerability (GitHub Advisory, Gentoo Advisory).

Additional resources


SourceThis report was generated using AI

Related npm vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-64756HIGH7.5
  • JavaScriptJavaScript
  • nodejs:20::v8-12.4-devel
NoYesNov 17, 2025
CVE-2025-7458MEDIUM6.9
  • SQLiteSQLite
  • lemon
NoYesJul 29, 2025
CVE-2025-64118MEDIUM6.1
  • JavaScriptJavaScript
  • renovate
NoYesOct 30, 2025
CVE-2025-62408MEDIUM5.9
  • npmnpm
  • nodejs:24::nodejs-docs
NoYesDec 08, 2025
CVE-2025-52099N/AN/A
  • SQLiteSQLite
  • nodejs22-libs
NoYesOct 24, 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