PostgreSQL JDBC 42.7.12 fixes CVE-2026-54291, a vulnerability where connections using channelBinding=require silently downgrade from SCRAM-SHA-256-PLUS to plain SCRAM-SHA-256. This occurs when the server presents certificates with algorithms like Ed25519 that lack the expected channel-binding hash. The root cause involves the bundled scram-client library returning an empty byte array instead of failing when it cannot derive the binding hash. This flaw removes man-in-the-middle protection for secure connections.
- Upgrade to JDBC 42.7.12 immediately to restore MITM protection for channelBinding=require connections.
- Vulnerable range is 42.7.4 through 42.7.11; earlier versions are not affected by this specific downgrade logic.
- The issue triggers specifically with Ed25519, Ed448, and post-quantum certificate algorithms.
- The root cause lies in the bundled com.ongres.scram library failing to reject missing binding hashes.