Intel

AIKIDO-2026-10246

napi is vulnerable to Use After Free

Use After Free Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Feb 25, 2026

55

Medium Risk

This Affects:

RUSTnapi
3.0.0 - 3.8.2
Fixed in 3.8.3
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

napi is vulnerable to Use After Free in versions 3.0.0 - 3.8.2.

How to fix this

Upgrade the napi library to the patch version.