RUSTSEC-2026-0221
not scored yet`event-listener` allows `!Send` tags to cross thread boundaries via `StackSlot`
Affected versions of event-listener unconditionally implement Send and
Sync for StackSlot<'_, T>, the stack-allocated listener type created
by the listener! macro.
This allows a !Send tag type set via Event::with_tag to be moved to
another thread and accessed via StackSlot::wait, causing a data race in safe
code.
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | event-listener | >= 5.1.0, < 5.4.2 | 5.4.2 |
References
- https://crates.io/crates/event-listener · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0221.html · ADVISORY
- https://github.com/smol-rs/event-listener/pull/163 · WEB
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 Jul 2026)