Medium · published August 3, 2026
In Bouncy Castle for Java before 1.85, JSSE hostname verifier CN-fallback enabled by default despite documented opt-in. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bctls-fips 1.0.24 (1.0.X series), 2.0.24 (2.0.X series) and 2.1.24 (2.1.X series).
| Product | Versions | Fixed in |
|---|---|---|
| bouncycastle/bc-java | < 1.85 | 1.85 |
| bouncycastle/bctls-fips | ≥ 1.0.0, < 1.0.24 | 1.0.24 |
| bouncycastle/bctls-fips | ≥ 2.0.19, < 2.0.24 | 2.0.24 |
| bouncycastle/bctls-fips | ≥ 2.1.20, < 2.1.24 | 2.1.24 |
| bouncycastle/bouncy_castle_for_java_lts | ≤ 2.73.11 | — |