PR
Fix #819: sanitize CN to prevent hang
projectdiscovery/tlsx#951

This PR fixes the indefinite hang issue (#819) by sanitizing SubjectCN and IssuerCN length and encoding. /claim #819

Summary by CodeRabbit

  • Bug Fixes
    • Certificate issuer and subject common names are now sanitized: truncated to 256 characters and normalized to valid UTF-8 to prevent display or processing issues.
    • Responses now use the sanitized subject and issuer names and include those sanitized values in the response path.
    • Domain name handling and client-certificate error behavior remain unchanged.

Claim

Total prize pool $1,324
Total paid $0
Status Pending
Submitted March 10, 2026
Last updated March 10, 2026

Contributors

TH

thanik123789-gmail-com

@thanik123789-gmail-com

100%

Sponsors

YO

youssefosama3820009-commits

@youssefosama3820009-commits

$1,224
PR

ProjectDiscovery

@projectdiscovery

$100