This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate dioxus-desktop

Dependencies

(46 total, 3 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 async-trait^0.1.880.1.89up to date
 base64^0.22.10.22.1up to date
 bytes ⚠️^1.101.11.1maybe insecure
 cocoa^0.26.10.26.1up to date
 core-foundation^0.10.10.10.1up to date
 dioxus-asset-resolver^0.7.30.7.3up to date
 dioxus-cli-config^0.7.30.7.3up to date
 dioxus-core^0.7.30.7.3up to date
 dioxus-devtools^0.7.30.7.3up to date
 dioxus-document^0.7.30.7.3up to date
 dioxus-history^0.7.30.7.3up to date
 dioxus-hooks^0.7.30.7.3up to date
 dioxus-html^0.7.30.7.3up to date
 dioxus-interpreter-js^0.7.30.7.3up to date
 dioxus-signals^0.7.30.7.3up to date
 dunce^1.0.51.0.5up to date
 futures-channel^0.3.310.3.31up to date
 futures-util^0.30.3.31up to date
 generational-box^0.7.30.7.3up to date
 global-hotkey^0.7.00.7.0up to date
 infer^0.19.00.19.0up to date
 jni^0.21.10.21.1up to date
 libc^0.2.1740.2.180up to date
 muda^0.17.00.17.1up to date
 ndk^0.9.00.9.0up to date
 ndk-context^0.1.10.1.1up to date
 ndk-sys^0.6.00.6.0+11769913up to date
 objc^0.2.70.2.7up to date
 objc_id^0.1.10.1.1up to date
 percent-encoding^2.3.12.3.2up to date
 rand^0.90.9.2up to date
 rfd^0.17.20.17.2up to date
 rustc-hash^2.1.12.1.1up to date
 serde^1.0.2191.0.228up to date
 serde_json^1.0.1401.0.149up to date
 signal-hook^0.3.180.4.3out of date
 slab^0.4.100.4.12up to date
 subtle^2.62.6.1up to date
 tao^0.34.00.34.5up to date
 thiserror^2.0.122.0.18up to date
 tokio^1.481.49.0up to date
 tracing^0.1.410.1.44up to date
 tray-icon^0.21.00.21.3up to date
 tungstenite^0.27.00.28.0out of date
 webbrowser^1.01.0.6up to date
 wry^0.53.50.54.1out of date

Security Vulnerabilities

bytes: Integer overflow in `BytesMut::reserve`

RUSTSEC-2026-0007

In the unique reclaim path of BytesMut::reserve, the condition

if v_capacity >= new_cap + offset

uses an unchecked addition. When new_cap + offset overflows usize in release builds, this condition may incorrectly pass, causing self.cap to be set to a value that exceeds the actual allocated capacity. Subsequent APIs such as spare_capacity_mut() then trust this corrupted cap value and may create out-of-bounds slices, leading to UB.

This behavior is observable in release builds (integer overflow wraps), whereas debug builds panic due to overflow checks.

PoC

use bytes::*;

fn main() {
    let mut a = BytesMut::from(&b"hello world"[..]);
    let mut b = a.split_off(5);

    // Ensure b becomes the unique owner of the backing storage
    drop(a);

    // Trigger overflow in new_cap + offset inside reserve
    b.reserve(usize::MAX - 6);

    // This call relies on the corrupted cap and may cause UB & HBO
    b.put_u8(b'h');
}

Workarounds

Users of BytesMut::reserve are only affected if integer overflow checks are configured to wrap. When integer overflow is configured to panic, this issue does not apply.