Improper Certificate Validation Affecting bouncycastle.cryptography package, versions [,2.7.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.22% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DOTNET-BOUNCYCASTLECRYPTOGRAPHY-20537028
  • published6 Oct 2026
  • disclosed2 Oct 2026

Introduced: 2 Oct 2026

NewCVE-2026-63576  (opens in a new tab)
CWE-295  (opens in a new tab)

How to fix?

Upgrade BouncyCastle.Cryptography to version 2.7.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Certificate Validation through PkixNameConstraintValidator.ExtractHostFromURL in crypto/src/pkix/PkixNameConstraintValidator.cs. An attacker can bypass URI name constraints during certification path validation by supplying a subjectAltName URI whose path, query, fragment, or userinfo contains characters such as @ or :, causing the extracted host to differ from the URI’s actual host. This lets a name-constrained subordinate CA, or anyone who can obtain certificates from such a CA, issue certificates that evade permitted or excluded uniformResourceIdentifier constraints, undermining the policy checks that rely on those constraints.

CVSS Base Scores

version 4.0
version 3.1