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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-13T12:00:00.000Z
- Modified: 2026-07-31T12:15:04.629Z

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

(As written by RustSec Advisory Database.)

## Affected

- event-listener (crates.io): from 5.1.0 before 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)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0221](https://rustsec.org/advisories/RUSTSEC-2026-0221.html), CC0-1.0, modified 2026-07-31

---

Page: https://cve.day/RUSTSEC-2026-0221 · Whole record: https://cve.day/RUSTSEC-2026-0221.json · Rebuilt by cve.day 2026-11-25T22:56:43.387Z
