# RUSTSEC-2026-0221: event-listener allows !Send tags to cross thread boundaries via StackSlot

- Database: RustSec
- Published: 2026-07-13
- Modified: 2026-07-31

## Affected versions

- event-listener (crates.io): from 5.1.0, fixed in 5.4.2

## 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.

## References

- https://crates.io/crates/event-listener
- https://rustsec.org/advisories/RUSTSEC-2026-0221.html
- https://github.com/smol-rs/event-listener/pull/163

Page: https://cve.now/RUSTSEC-2026-0221

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
