Skip to content

Bump rustls to 0.23.45 (GHSA-2mjx-qc3c-rqvc); Dependabot can't unlock it #640

Closed

Description

@LeMyst

Cargo.lock pins rustls 0.23.42, which is affected by GHSA-2mjx-qc3c-rqvc (medium): rustls >= 0.23.13, < 0.23.45 accepts TLS 1.3 handshake messages sent at the wrong encryption level when they follow a key-changing message in the same record (e.g. a plaintext EncryptedExtensions packed into the ServerHello record). The handshake transcript is still authenticated, but RFC 8446 §5.1 requires the connection to be terminated. Fixed in 0.23.45.

rustls is pulled in by every reqwest client (cookcli itself, cooklang-import, cooklang-sync-client, self_update), so it covers recipe import, cook.md sync/login and cook update.

Why Dependabot can't fix it

The Dependabot security job stops at 0.23.43:

Requirements to unlock own
The latest possible version of rustls that can be installed is 0.23.43
The earliest fixed version is 0.23.45.

Security updates only unlock the vulnerable crate itself, but rustls 0.23.44+ raised its own requirements to aws-lc-rs ^1.18 and rustls-webpki ^0.103.14, while the lockfile has aws-lc-rs 1.17.3 and rustls-webpki 0.103.13. Nothing in our tree caps them — cargo update -p rustls --precise 0.23.45 resolves cleanly:

aws-lc-rs      1.17.3   -> 1.18.1
aws-lc-sys     0.43.0   -> 0.45.0
rustls         0.23.42  -> 0.23.45
rustls-webpki  0.103.13 -> 0.103.15

Activity

  1. added
    bug
    on Oct 7, 2026
  2. added a commit that references this issue on Nov 16, 2026
    1bbbc73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions