Moderate Security Update for Node.js Packages: Addressing Use-After-Free Vulnerability

nodejs Updated 02 Oct 2025

Summary

13/05/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:7502: Moderate: nodejs22 security update. Affects nodejs versions < 1:22.15.0-1.el10_0. Fixed in 1:22.15.0-1.el10_0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Node.js is a powerful platform built on Chrome's JavaScript runtime, designed for building fast and scalable network applications. It employs an event-driven, non-blocking I/O model, making it lightweight and efficient for data-intensive real-time applications across distributed devices. However, recent security findings have revealed vulnerabilities that could compromise the integrity of applications built on this platform.

Vulnerability Detail

The vulnerability identified in Node.js, specifically in the c-ares library, is a use-after-free issue in the read_answers() function (CVE-2025-31498). This flaw can lead to potential memory corruption, which may allow an attacker to execute arbitrary code or crash the application. The vulnerability arises from improper memory management, where the application continues to reference memory that has already been freed, leading to unpredictable behavior and security risks.

How To Fix

Minimum fixed version

1:22.15.0-1.el10_0

This is the first release that contains the fix.

sudo dnf update nodejs

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, no specific workarounds are provided for this vulnerability. The best course of action is to apply the security update as soon as possible to mitigate any risks associated with the vulnerability.

Conclusion

In summary, the identified vulnerability in Node.js presents a significant risk due to its potential for memory corruption and arbitrary code execution. It is crucial for developers to update their affected packages to the latest patched versions to ensure the security and integrity of their applications.

See every vulnerability recorded for nodejs →

Share this vulnerability

FAQ

The vulnerability is a use-after-free issue in the c-ares library, which can lead to memory corruption and potential execution of arbitrary code.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By simply using a manifest file like package-lock.json, you can check if your application is affected without needing to access the code.

The vulnerability can lead to application crashes, arbitrary code execution, and potential data breaches, compromising the security of the application.

Yes, a patch is available. You should update to the fixed version 1:22.15.0-1.el10_0 for most affected packages and 1:10.9.2-1.22.15.0.1.el10_0 for nodejs-npm.

Using tools like Vulert can help you stay informed about vulnerabilities in your open-source packages by providing real-time alerts and monitoring.

Related vulnerabilities

Recent vulnerabilities recorded for nodejs.

How To Fix

Minimum fixed version

1:22.15.0-1.el10_0

This is the first release that contains the fix.

sudo dnf update nodejs

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback