CVE-2025-23165
Node.js vulnerability analysis and mitigation

Overview

In Node.js, a low severity vulnerability (CVE-2025-23165) 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 uv_fs_s.file. This results in an unrecoverable memory leak that occurs on every function call (Node Security, 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, Wiz).

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

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