{"answers":{"affected":"3 open source packages ship an affected version, including xcb.","exploited":"There is no known exploitation of GHSA-655h-hg88-5qmf in the wild and no public exploit code.","fix":"Upgrade xcb to 1.6.0 or later.","what":"GHSA-655h-hg88-5qmf is a vulnerability in xcb, published on 5 Aug 2025."},"fix_prompt":"Check this codebase for GHSA-655h-hg88-5qmf and fix it if it is affected.\n\nWhat it is: GHSA-655h-hg88-5qmf is a vulnerability in xcb, published on 5 Aug 2025. \nExploitation: There is no known exploitation of GHSA-655h-hg88-5qmf in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- xcb (crates.io): affected all versions; fixed in 1.6.0\n- xcb (crates.io): affected all versions; fixed in 1.6.0\n- xcb (crates.io): affected from 0.0.0-0; fixed in 1.6.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-655h-hg88-5qmf/ (Markdown: https://insights.sbomify.com/GHSA-655h-hg88-5qmf/index.md)","id":"GHSA-655h-hg88-5qmf","markdown":"https://insights.sbomify.com/GHSA-655h-hg88-5qmf/index.md","name":"GHSA-655h-hg88-5qmf","record":{"aliases":["RUSTSEC-2025-0051"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["other"],"network_reachable":"unknown","non_default_config":false,"product_category":"Rust XCB library","requires_auth":"none","summary":"The Rust XCB library violates I/O safety by closing file descriptors it does not own, potentially causing use-after-close errors in applications.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"The API of `xcb::Connection` has constructors which allow an arbitrary `RawFd`\nto be used as a socket connection. On either failure of these constructors or\non the drop of `Connection`, it closes the associated file descriptor. Thus, a\nprogram which uses an `OwnedFd` (such as a `UnixStream`) as the file descriptor\ncan close the file descriptor and continue to attempt using it or close an\nalready-closed file descriptor, violating I/O safety.\n\nStarting in version 1.6.0, `xcb` provides `Connection::connect_with_fd` and\n`Connection::connect_with_fd_and_extensions` as safe alternatives and\ndeprecates the problematic functions.","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"`xcb::Connection::connect_to_fd*` functions violate I/O safety","id":"GHSA-655h-hg88-5qmf","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"other","year":"2025"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["1.6.0"],"introduced":["0"],"last_affected":[],"package":"xcb","purl":null,"source":"GHSA-655h-hg88-5qmf"},{"ecosystem":"crates.io","fixed":["1.6.0"],"introduced":["0"],"last_affected":[],"package":"xcb","purl":"pkg:cargo/xcb","source":"GHSA-655h-hg88-5qmf"},{"ecosystem":"crates.io","fixed":["1.6.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"xcb","purl":"pkg:cargo/xcb","source":"RUSTSEC-2025-0051"}],"products":null,"published":"2025-08-05","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"The Rust XCB library violates I/O safety by closing file descriptors it does not own, potentially causing use-after-close errors in applications.","url":"https://insights.sbomify.com/GHSA-655h-hg88-5qmf/"}