RUSTSEC-2026-0528

    Dashboard / Vulnerabilities / RUSTSEC-2026-0528

    RUSTSEC-2026-0528

    Published: 12 Nov 2026Last Modified: 13 Nov 2026

    Summary: UB can be reached from safe code

    Details: The variance of `RefSwap` and `OptionRefSwap` were incorrect, possibly allowing use-after-free. `OptionRefSwap::into_inner` did not check for null. The fix is to make `RefSwap` and `OptionRefSwap` invariant, and to change `OptionRefSwap::into_inner` to return an option. It is available in version 0.1.3. If your project still compiles with 0.1.3 then it is not affected by the unsoundness on version 0.1.2

    Affected packages

    Package

    Name: ref-swap

    Purl: pkg:cargo/ref-swap

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0.0.0-0
    Fixed -0.1.3

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High