# RUSTSEC-2025-0051 - `xcb::Connection::connect_to_fd*` functions violate I/O safety

Source: https://junglewise.ai/threats/rustsec-2025-0051-xcb-connection-connect-to-fd-functions-violate-i-o-4629362d  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-08-05  
License: CC BY 4.0 with a link back

Severity: info · Published 2025-08-05

`xcb::Connection::connect_to_fd*` functions violate I/O safety

Technologies: [xcb (crates.io)](https://junglewise.ai/threats/technologies/xcb). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 5 August 2025.

**Which products and versions are affected?** xcb (crates.io) SEMVER:introduced=0.0.0-0,fixed=1.6.0.

**Is there a fix for This vulnerability?** Yes. xcb (crates.io): upgrade to 1.6.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run xcb (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- xcb (crates.io): upgrade to 1.6.0 or later

  ```sh
  cargo update -p xcb
  ```


## Affected products

- xcb (crates.io) SEMVER:introduced=0.0.0-0,fixed=1.6.0

## Related threats

- [Rust XCB `xcb::Connection::connect_to_fd*` functions violate I/O safety](https://junglewise.ai/threats/rust-xcb-xcb-connection-connect-to-fd-functions-violate-i-o-safety-1e29deda)
- [RUSTSEC-2021-0019 - Multiple soundness issues](https://junglewise.ai/threats/cve-2021-26955-unchecked-return-value-in-xcb)
- [RUSTSEC-2020-0097 - Soundness issue with base::Error](https://junglewise.ai/threats/cve-2020-36205-memory-handling-issues-in-xcb)
