event-listener is vulnerable to Race Condition
40
Medium Risk
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.
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.
event-listener is vulnerable to Race Condition in versions 5.1.0 - 5.4.1.
Upgrade the event-listener 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.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant