Skip to content

fix(security): patch 4 medium-severity vulnerabilities#840

Open
hazorio wants to merge 2 commits intocloudflare:mainfrom
hazorio:main
Open

fix(security): patch 4 medium-severity vulnerabilities#840
hazorio wants to merge 2 commits intocloudflare:mainfrom
hazorio:main

Conversation

@hazorio
Copy link

@hazorio hazorio commented Mar 16, 2026

  • Enforce TLS 1.2 minimum (was TLS 1.0), preventing BEAST/POODLE attacks
  • Fix cert verification bypass when SNI is empty (MITM vector)
  • Replace unsafe set_len with safe resize(0) on body buffer (memory leak)
  • Sanitize header values to prevent CRLF injection in HTTP/1.1 responses
    • server.rs: use safe from_maybe_shared, skip invalid headers
    • client.rs: strip \r\n from header values before validation
    • lib.rs: defense-in-depth sanitize_header_value in wire serialization

hazorio and others added 2 commits March 16, 2026 23:54
- Enforce TLS 1.2 minimum (was TLS 1.0), preventing BEAST/POODLE attacks
- Fix cert verification bypass when SNI is empty (MITM vector)
- Replace unsafe set_len with safe resize(0) on body buffer (memory leak)
- Sanitize header values to prevent CRLF injection in HTTP/1.1 responses
  - server.rs: use safe from_maybe_shared, skip invalid headers
  - client.rs: strip \r\n from header values before validation
  - lib.rs: defense-in-depth sanitize_header_value in wire serialization

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fixes RUSTSEC-2024-0437 (protobuf crash via uncontrolled recursion)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant