CVE-2022-21211: Unhandled crash in npm posix

posix Updated 02 Oct 2025

Summary

11/06/2022
No i
High
7.5

CVE-2022-21211: Unhandled crash in npm posix. Affects posix versions < 4.2.0. No fix is published. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The 'posix' package is an npm package that provides a set of POSIX functions for Node.js applications. It allows developers to interact with the POSIX API and perform various system-related operations. The package is widely used in Node.js applications that require POSIX functionality.

Vulnerability Detail

The 'posix' package is affected by an unhandled crash vulnerability. When the toString method is invoked on certain values, it falls back to a non-invokable value (0x0), causing a crash due to a type-check error. This vulnerability can be exploited by an attacker to cause a denial-of-service (DoS) condition in applications that use the 'posix' package.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no known workaround for this vulnerability. It is recommended to update the 'posix' package to the latest version as soon as possible.

Conclusion

The 'posix' package is affected by an unhandled crash vulnerability that can be exploited to cause a denial-of-service (DoS) condition. To mitigate this vulnerability, it is recommended to update the 'posix' package to version 4.2.1 or later. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for posix →

Share this vulnerability

FAQ

This vulnerability can be exploited by an attacker to cause a denial-of-service (DoS) condition in applications that use the 'posix' package.

All versions of the 'posix' package are affected, up to and including version 4.2.0.

Yes, the fix for this vulnerability is available in versions starting from 4.2.1 of the 'posix' package.

To update the 'posix' package, run the following command: npm install posix@^4.2.1

There is no known workaround for this vulnerability. It is recommended to update the 'posix' package to the latest version.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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