Node.js URL Processing Vulnerability - Assertion Failure in Malformed IDN

nodejs Updated 31 Mar 2026

Summary

30/03/2026
N/A
Yes i
Medium
5.7

ALPINE-CVE-2026-21712: A flaw in Node.js URL processing causes an assertion failure in native code when url.format() is called with a malformed internationalized domain name (IDN) containing invalid characters, crashing the Node.js process. Affects nodejs versions < 24.14.1-r0. Fixed in 24.14.1-r0. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Node.js is a popular open-source JavaScript runtime built on Chrome's V8 JavaScript engine, designed for building scalable network applications. It allows developers to use JavaScript for server-side scripting, enabling the creation of dynamic web content. The package is widely used for its non-blocking, event-driven architecture, making it efficient for I/O-heavy applications. However, it is susceptible to vulnerabilities, including the one identified in CVE-2026-21712, which affects its URL processing capabilities.

Vulnerability Detail

A flaw in Node.js URL processing leads to an assertion failure in native code when the url.format() function is called with a malformed internationalized domain name (IDN) containing invalid characters. This can result in a crash of the Node.js process, potentially disrupting services and affecting application availability. The vulnerability arises from improper handling of input, which can be exploited by attackers to cause denial-of-service conditions.

How To Fix

Minimum fixed version

24.14.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade nodejs

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

Workaround

As a temporary measure, developers can implement input validation to sanitize and validate domain names before passing them to the url.format() function. This can help prevent malformed IDNs from causing assertion failures.

Conclusion

The vulnerability identified as CVE-2026-21712 poses a risk to Node.js applications by potentially causing crashes when malformed internationalized domain names are processed. It is crucial for developers to update their Node.js packages to the latest patched version to ensure application stability and security.

See every vulnerability recorded for nodejs →

Share this vulnerability

FAQ

CVE-2026-21712 is a vulnerability in Node.js that causes an assertion failure when malformed internationalized domain names are processed, leading to potential crashes.

If your application uses Node.js and processes URLs, it may crash when encountering malformed IDNs, leading to service disruptions.

The vulnerability affects versions of Node.js prior to 24.14.1-r0. Updating to this version or later will mitigate the issue.

You can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. Visit Vulert Scanner to check your application without signing up.

The CVSS score for this vulnerability is 5.7, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for nodejs.

How To Fix

Minimum fixed version

24.14.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade 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