Intel

AIKIDO-2025-10652

@genkit-ai/core is vulnerable to Race Condition

Race Condition Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

54

Medium Risk

This Affects:

JS@genkit-ai/core
0.0.1 - 0.9.0
Fixed in 0.9.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a race condition in the asynchronous user engagement collection. The appendSpan and collectUserEngagement methods do not correctly await asynchronous calls, leading to improper execution order. This flaw can result in unexpected behavior, data inconsistencies, or incomplete tracking during user engagement processing.

Who does this affect?

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

Background info

@genkit-ai/core is vulnerable to Race Condition in versions 0.0.1 - 0.9.0.

How to fix this

Upgrade the @genkit-ai/core library to the patch version.