napi is vulnerable to Use After Free
55
Medium Risk
Affected versions of this package are affected by a use-after-free vulnerability in the async generator implementation. The issue occurs because the originating instance can be garbage collected while an async iterator is still in use, causing the iterator to reference freed memory and potentially leading to crashes. This happens when no persistent reference is maintained between the generated iterator and its underlying instance during for await...of iteration. The vulnerability is fixed by keeping the instance alive through a hidden internal reference attached to the iterator object, which is properly released once the iterator is garbage collected.
You are affected if you are using a version that falls within the vulnerable range.
napi is vulnerable to Use After Free in versions 3.0.0 - 3.8.2.
Upgrade the napi library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant