HSEC-2026-0016: Improper IP address validation in validateCertificateName
Published 2026-11-17 · Updated 2026-11-17
Summary
Improper IP address validation in crypton-x509-validation causes certificates with an iPAddress SAN to fall through to commonName validation incorrectly. Engineering and security teams using the affected package should upgrade when possible.
Who is affected
When a certificate carries an iPAddress SAN but no dNSName SAN, the extracted name list is empty, causing validation to fall through to the commonName branch. Exploitation requires a certificate from a trusted CA that has a commonName different from its iPAddress SAN, allowing a successful impersonation to expose and modify the protected connection.
Exploitability
The CVSS vector, base score, and EPSS are not documented. CISA Known Exploited Vulnerabilities status is no, meaning active exploitation is not claimed.
Remediation
- Upgrade crypton-x509-validation to version 1.10.2 or later.
How to check your project
- Check project dependency files such as cabal.files or stack.yaml for references to crypton-x509-validation versions introduced at 1.6.12 and prior to 1.10.2.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hackage | crypton-x509-validation |
>= 1.6.12, < 1.10.2 | 1.10.2 | - |
FAQ
What packages are affected?
Hackage crypton-x509-validation versions introduced at 1.6.12 and fixed in 1.10.2.
What causes the vulnerability?
Data.X509.Validation.getNames extracts only AltNameDNS entries from the subjectAltName extension, causing certificates with an iPAddress SAN but no dNSName SAN to incorrectly fall through to the commonName branch.
Is public CA exploitation a concern?
Public CAs are barred from issuing certificates with a commonName different from their iPAddress SAN by the CA/Browser Forum Baseline Requirements, but private or enterprise CAs can issue such certificates.
Original advisory description
References
- PACKAGE https://hackage.haskell.org/package/crypton-x509-validation
- FIX https://github.com/kazu-yamamoto/crypton-certificate/commit/d2f64137954b4026332fa9f08c1711bd92c79d62
- FIX https://github.com/kazu-yamamoto/crypton-certificate/commit/d782c2dd83e69d2ed103ed42fdac95d94262e7d3
Source records: HSEC-2026-0016 (OSV.dev).