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 distill-loader

Dependencies

(16 total, 7 outdated, 3 possibly insecure)

CrateRequiredLatestStatus
 capnp ⚠️^0.14.00.25.4out of date
 capnp-rpc^0.14.00.25.0out of date
 crossbeam-channel^0.5.00.5.15up to date
 dashmap^4.0.16.1.0out of date
 distill-core=0.0.20.0.3out of date
 distill-schema=0.0.20.0.3out of date
 futures-channel^0.30.3.32up to date
 futures-core^0.30.3.32up to date
 futures-util^0.30.3.32up to date
 log^0.40.4.29up to date
 memmap^0.70.7.0up to date
 serde^11.0.228up to date
 thread_local ⚠️^1.01.1.9maybe insecure
 tokio ⚠️^1.01.52.1maybe insecure
 tokio-util^0.6.10.7.18out of date
 uuid^0.8.21.23.1out of date

Security Vulnerabilities

thread_local: Data race in `Iter` and `IterMut`

RUSTSEC-2022-0006

In the affected version of this crate, {Iter, IterMut}::next used a weaker memory ordering when loading values than what was required, exposing a potential data race when iterating over a ThreadLocal's values.

Crates using Iter::next, or IterMut::next are affected by this issue.

tokio: reject_remote_clients Configuration corruption

RUSTSEC-2023-0001

On Windows, configuring a named pipe server with pipe_mode will force ServerOptions::reject_remote_clients as false.

This drops any intended explicit configuration for the reject_remote_clients that may have been set as true previously.

The default setting of reject_remote_clients is normally true meaning the default is also overridden as false.

Workarounds

Ensure that pipe_mode is set first after initializing a ServerOptions. For example:

let mut opts = ServerOptions::new();
opts.pipe_mode(PipeMode::Message);
opts.reject_remote_clients(true);

capnp: Unsound APIs of public `constant::Reader` and `StructSchema`

RUSTSEC-2025-0143

The safe API functions constant::Reader::get and StructSchema::new rely on PointerReader::get_root_unchecked, which can cause undefined behavior (UB) by constructing arbitrary words or schemas.

Reader::get

pub fn get(&self) -> Result<<T as Owned>::Reader<'static>> {
    // ...
    // UNSAFE: access `words` without validation
}

StructSchema::new

pub fn new(builder: RawBrandedStructSchema) -> StructSchema {
    // ...
    // UNSAFE: access encoded nodes without validation
}

This vulnerability allows safe Rust code to trigger UB, which violates Rust's safety guarantees.

The issue is resolved in version 0.24.0 by making constructor functions unsafe and mark the fields of struct as visible only in the crate.