{"id":"RUSTSEC-2026-0221","aliases":["RUSTSEC-2026-0221"],"related":[],"kind":"vulnerability","state":"published","title":"`event-listener` allows `!Send` tags to cross thread boundaries via `StackSlot`","summary":"Affected versions of `event-listener` unconditionally implement `Send` and\n`Sync` for `StackSlot<'_, T>`, the stack-allocated listener type created\nby the `listener!` macro.\n\nThis allows a `!Send` tag type set via `Event::with_tag` to be moved to\nanother thread and accessed via `StackSlot::wait`, causing a data race in safe\ncode.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"Affected versions of `event-listener` unconditionally implement `Send` and\n`Sync` for `StackSlot<'_, T>`, the stack-allocated listener type created\nby the `listener!` macro.\n\nThis allows a `!Send` tag type set via `Event::with_tag` to be moved to\nanother thread and accessed via `StackSlot::wait`, causing a data race in safe\ncode.","format":"markdown","source":"rustsec"}],"published":"2026-07-13T12:00:00.000Z","modified":"2026-07-31T12:15:04.629Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"5.1.0","status":"affected","fixed":"5.4.2"}],"ecosystem":"crates.io","package":"event-listener","purl":"pkg:cargo/event-listener","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/event-listener","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0221.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/smol-rs/event-listener/pull/163","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0221","url":"https://rustsec.org/advisories/RUSTSEC-2026-0221.html","licence":"CC0-1.0","modified":"2026-07-31T12:15:04.629Z"}],"updatedAt":"2026-11-25T22:56:43.387Z"}