Node.js Vulnerability: Multi-Value Relative Distinguished Names Handling Issue

nodejs Updated 02 Oct 2025

Summary

24/02/2022
N/A
Yes i
Medium
5.3

ALPINE-CVE-2021-44533: Node.js < 12.22.9, < 14.18.3, < 16.13.2, and < 17.3.1 did not handle multi-value Relative Distinguished Names correctly. Affects nodejs versions < 12.22.10-r0. Fixed in 12.22.10-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 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 popular open-source JavaScript runtime built on Chrome's V8 JavaScript engine. It allows developers to build scalable network applications. The package is widely used for server-side development and is known for its event-driven, non-blocking I/O model. However, certain versions of Node.js have a vulnerability related to the handling of multi-value Relative Distinguished Names (RDNs) in certificate subjects, which can lead to security risks.

Vulnerability Detail

The vulnerability, identified as CVE-2021-44533, affects Node.js versions prior to 12.22.9, 14.18.3, 16.13.2, and 17.3.1. It arises from the incorrect handling of multi-value RDNs, allowing attackers to craft certificate subjects that could bypass certificate subject verification. This could potentially lead to unauthorized access or impersonation attacks, as third-party code relying on Node.js's ambiguous presentation of certificate subjects may be exploited.

How To Fix

Minimum fixed version

12.22.10-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 workaround, consider implementing additional validation checks on certificate subjects in your application code to mitigate the risk of exploitation until the package can be updated.

Conclusion

The vulnerability CVE-2021-44533 in Node.js poses a significant risk due to improper handling of multi-value Relative Distinguished Names in certificate subjects. It is crucial for developers to update their Node.js installations to the latest patched versions to mitigate this risk. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for nodejs →

Share this vulnerability

FAQ

CVE-2021-44533 is a vulnerability in Node.js that affects how multi-value Relative Distinguished Names are handled in certificate subjects.

Node.js versions prior to 12.22.9, 14.18.3, 16.13.2, and 17.3.1 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score of this vulnerability is 5.3, indicating a moderate level of risk.

If immediate updates are not possible, implement additional validation checks on certificate subjects in your application to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for nodejs.

How To Fix

Minimum fixed version

12.22.10-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