Skip to content

Bump quinn-udp, rustix and xattr to clear the RustSec audit - #19530

Merged
fdncred merged 1 commit into
nushell:mainfrom
fdncred:fix_quinn_udp_audit
Nov 14, 2026
Merged

fdncred merged 1 commit into
nushell:mainfrom
fdncred:fix_quinn_udp_audit

Conversation

@fdncred

@fdncred fdncred commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Description

The Security audit job fails on PRs that touch Cargo.toml or Cargo.lock (seen on #19360). RUSTSEC-2026-0538 flags quinn-udp 0.5.14, and RUSTSEC-2026-0486 warns that rustix 1.1.4 is unsound. This PR changes only Cargo.lock.

Crate Old New Why
quinn-udp 0.5.14 0.5.16 RUSTSEC-2026-0538, receive loop can spin after a truncated datagram
rustix 1.1.4 1.1.6 RUSTSEC-2026-0486, unsound xattr calls with a zero-length buffer
xattr 1.6.1 1.7.0 xattr 1.6.1 breaks on rustix 1.1.6

The quinn-udp bump alone turns the check green. The other two clear the unsound warning and have to move together. In rustix 1.1.6, getxattr and listxattr with an empty buffer return 0 instead of the size, which now comes from new *_query functions. xattr 1.6.1 uses the empty-buffer call to size values over 4 KiB, and xattr 1.7.0 uses *_query instead. nushell reaches this through uucore::fsxattr in cp --preserve [xattr] and cross-device mv.

cp --preserve [xattr] on macOS, copying a file with a 6000-byte attribute:

Lockfile Copied attribute
main (rustix 1.1.4, xattr 1.6.1) 6000 bytes
rustix 1.1.6, xattr 1.6.1 0 bytes
this PR (rustix 1.1.6, xattr 1.7.0) 6000 bytes

User-facing changes (Release notes)

Additional notes

quinn-udp 0.5.14 -> 0.5.16 fixes RUSTSEC-2026-0538. rustix 1.1.4 -> 1.1.6 fixes the RUSTSEC-2026-0486 unsound warning, and xattr 1.6.1 -> 1.7.0 goes with it: rustix 1.1.6 returns 0 for empty-buffer xattr size queries, which xattr 1.6.1 relies on for values over 4 KiB.
@fdncred fdncred added the notes:hide Noted only in "Full Changelog" section label Nov 14, 2026
@fdncred
fdncred merged commit a3dd8e6 into nushell:main Nov 14, 2026
16 checks passed
@fdncred
fdncred deleted the fix_quinn_udp_audit branch November 14, 2026 01:07
@github-actions github-actions Bot added this to the v0.118.0 milestone Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:hide Noted only in "Full Changelog" section

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant