Intel

AIKIDO-2026-269507

event-listener is vulnerable to Race Condition

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 3, 2026
August 3, 2026

40

CVE Score

Medium

Race Condition

Are you affected? Scan for Free

TL;DR

Affected versions of event-listener unconditionally implement Send and Sync for StackSlot<'_, T>, the stack-allocated listener type created by the listener! macro. That lets a !Send tag set via Event::with_tag be moved to another thread and accessed through StackSlot::wait, causing a data race in safe Rust. The fix adds a T: Send bound on the Send/Sync implementations for StackSlot.

How do I fix this?

Upgrade the event-listener library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and create an Event with Event::with_tag using a !Send tag type, then move a listener!-created StackSlot across threads.

Versions

5.1.0 - 5.4.1

Fixed in 5.4.2

Background info

event-listener is vulnerable to Race Condition in versions 5.1.0 - 5.4.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea