Advisory

RUSTSEC-2026-0221

Also known as: None

Summary

event-listener allows !Send tags to cross thread boundaries via StackSlot

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-07-13 12:00 UTC
Modified
2026-07-31 12:15 UTC

Affected packages and fixes

event-listener

crates.io · All systems

Affected

  • introduced 5.1.0, fixed 5.4.2 (semver)

Fixed versions

5.4.2

Fix

  • Fixed version 5.4.2
    cargo update -p event-listener --precise 5.4.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences