CVE-2025-23165
npm vulnerability analysis and mitigation

Overview

In Node.js, a low severity vulnerability was discovered in May 2025 affecting the ReadFileUtf8 internal binding. The vulnerability specifically impacts Node.js release lines v20 and v22, and was identified and fixed by Justin Nietzel (Node Security).

Technical details

The vulnerability stems from a corrupted pointer in the node::fs::ReadFileUtf8(const FunctionCallbackInfo& args) function when args[0] is a string. The issue occurs due to a memory management flaw where a UTF-16 path buffer is allocated but subsequently overwritten when the file descriptor is set in uvfss.file. This results in an unrecoverable memory leak that occurs on every function call. The vulnerability has been assigned a CVSS v3.0 base score of 3.7 (Low) with the vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L (NVD).

Impact

The primary impact of this vulnerability is a potential denial of service condition through unbounded memory growth. When the affected ReadFileUtf8 API is called repeatedly, it leads to continuous memory leaks that cannot be recovered, eventually consuming system resources (Node Security).

Mitigation and workarounds

The vulnerability has been addressed in Node.js security releases: v20.19.2, v22.15.1, v23.11.1, and v24.0.2. Users are strongly advised to upgrade to these patched versions to mitigate the vulnerability (Node Security).

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-48387HIGH8.7
  • JavaScriptJavaScript
  • sqlpad
NoYesJun 02, 2025
CVE-2025-23166HIGH7.5
  • npmnpm
  • nodejs:22::nodejs-packaging-bundler
NoYesMay 19, 2025
CVE-2025-23167MEDIUM6.5
  • npmnpm
  • nodejs-16
NoYesMay 19, 2025
CVE-2025-23165LOW3.7
  • npmnpm
  • nodejs:22::nodejs-docs
NoYesMay 19, 2025
CVE-2025-5889LOW2.3
  • JavaScriptJavaScript
  • nodejs:20::nodejs-packaging
NoYesJun 09, 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