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 server_fn

Dependencies

(42 total, 4 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 actix-web^4.124.13.0up to date
 actix-ws^0.30.4.0out of date
 axum^0.80.8.8up to date
 base64^0.220.22.1up to date
 bitcode^0.60.6.9up to date
 bytes ⚠️^1.111.11.1maybe insecure
 ciborium^0.20.2.2up to date
 const-str^1.11.1.0up to date
 const_format^0.20.2.35up to date
 futures^0.30.3.32up to date
 gloo-net^0.60.7.0out of date
 http^1.41.4.0up to date
 http-body-util^0.10.1.3up to date
 hyper^1.81.9.0up to date
 inventory^0.30.3.24up to date
 js-sys^0.30.3.94up to date
 multer^3.13.1.0up to date
 or_poisoned^0.1.00.1.0up to date
 pin-project-lite^0.20.2.17up to date
 postcard^1.11.1.3up to date
 reqwest^0.130.13.2up to date
 rkyv ⚠️^0.80.8.15maybe insecure
 rmp-serde^1.31.3.1up to date
 rustversion^1.01.0.22up to date
 send_wrapper^0.60.6.0up to date
 serde^1.01.0.228up to date
 serde-lite^0.50.5.1up to date
 serde_json^1.01.0.149up to date
 serde_qs^0.151.1.0out of date
 server_fn_macro_default^0.8.50.8.5up to date
 thiserror^2.02.0.18up to date
 throw_error^0.3.10.3.1up to date
 tokio^1.491.50.0up to date
 tokio-tungstenite^0.280.29.0out of date
 tower^0.50.5.3up to date
 tower-layer^0.30.3.3up to date
 url^2.52.5.8up to date
 wasm-bindgen^0.20.2.117up to date
 wasm-bindgen-futures^0.40.4.67up to date
 wasm-streams^0.50.5.0up to date
 web-sys^0.30.3.94up to date
 xxhash-rust^0.80.8.15up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 trybuild^1.01.0.116up to date

Security Vulnerabilities

rkyv: Potential Undefined Behaviors in `Arc<T>`/`Rc<T>` impls of `from_value` on OOM

RUSTSEC-2026-0001

The SharedPointer::alloc implementation for sync::Arc<T> and rc::Rc<T> in rkyv/src/impls/alloc/rc/atomic.rs (and rc.rs) does not check if the allocator returns a null pointer on OOM (Out of Memory).

This null pointer can flow through to SharedPointer::from_value, which calls Box::from_raw(ptr) with the null pointer. This triggers undefined behavior when utilizing safe deserialization APIs (such as rkyv::from_bytes or rkyv::deserialize_using) if an OOM condition occurs during the allocation of the shared pointer.

The issue is reachable through safe code and violates Rust's safety guarantees.

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.