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 bson

Dependencies

(19 total, 2 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 ahash^0.8.120.8.12up to date
 chrono ⚠️^0.4.150.4.44maybe insecure
 jiff^0.20.2.23up to date
 rand^0.90.10.0out of date
 serde^1.01.0.228up to date
 serde_json^1.01.0.149up to date
 indexmap^2.1.02.13.0up to date
 hex^0.4.20.4.3up to date
 base64^0.22.10.22.1up to date
 uuid^1.1.21.22.0up to date
 serde_bytes^0.11.50.11.19up to date
 serde_with^3.1.03.18.0up to date
 time ⚠️^0.3.90.3.47maybe insecure
 thiserror^22.0.18up to date
 bitvec^1.0.11.0.1up to date
 serde_path_to_error^0.1.160.1.20up to date
 simdutf8^0.1.50.1.5up to date
 js-sys^0.30.3.91up to date
 getrandom^0.30.4.2out of date

Dev dependencies

(10 total, 2 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 assert_matches^1.21.5.0up to date
 criterion^0.3.00.8.2out of date
 pretty_assertions^0.6.11.4.1out of date
 proptest^1.0.01.11.0up to date
 serde_bytes^0.110.11.19up to date
 serde_path_to_error^0.1.160.1.20up to date
 serde_json^11.0.149up to date
 chrono ⚠️^0.40.4.44maybe insecure
 jiff^0.20.2.23up to date
 rmp-serde^1.31.3.1up to date

Security Vulnerabilities

chrono: Potential segfault in `localtime_r` invocations

RUSTSEC-2020-0159

Impact

Unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.

Workarounds

No workarounds are known.

References

time: Denial of Service via Stack Exhaustion

RUSTSEC-2026-0009

Impact

When user-provided input is provided to any type that parses with the RFC 2822 format, a denial of service attack via stack exhaustion is possible. The attack relies on formally deprecated and rarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary, non-malicious input will never encounter this scenario.

Patches

A limit to the depth of recursion was added in v0.3.47. From this version, an error will be returned rather than exhausting the stack.

Workarounds

Limiting the length of user input is the simplest way to avoid stack exhaustion, as the amount of the stack consumed would be at most a factor of the length of the input.