RUSTSEC-2026-0221
Not scored
`event-listener` allows `!Send` tags to cross thread boundaries via `StackSlot`
- Severity
- Not scored
- Published
- Last changed
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| event-listener (crates.io) | from 5.1.0 before 5.4.2 | RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| RustSec Advisory Database | RUSTSEC-2026-0221 changed 2026-07-31 | CC0-1.0 |