CVE-2026-73251: CWE-295: Improper Certificate Validation in cesanta mongoose
Mongoose is an embedded web server and network library. Prior to 7.23, a network attacker can impersonate a TLS server to a Mongoose client configured with a multi-certificate CA bundle. In src/tls_builtin.c, the mg_tls_init() function stores the bundle in tls->ca_bundle_der while tls->ca_der.len remains zero, and mg_tls_recv_cert() uses tls_bundle_find() to accept a Common Name match without calling mg_tls_verify_cert_signature(). A forged self-signed certificate can therefore satisfy hostname and CertificateVerify checks and enable interception, credential disclosure, traffic modification, and malicious responses. This issue is fixed in version 7.23.
AI Analysis
Technical Summary
CVE-2026-73251 is a critical vulnerability in the cesanta mongoose library affecting versions prior to 7.23. The flaw arises from improper certificate validation in the TLS implementation. Specifically, in src/tls_builtin.c, the mg_tls_init() function stores the CA bundle incorrectly, leaving tls->ca_der.len at zero. Consequently, mg_tls_recv_cert() uses tls_bundle_find() to accept a Common Name match without verifying the certificate signature via mg_tls_verify_cert_signature(). This allows a network attacker to present a forged self-signed certificate that satisfies hostname and CertificateVerify checks, enabling man-in-the-middle attacks such as interception, credential disclosure, traffic modification, and malicious responses. The vulnerability is addressed in mongoose version 7.23.
Potential Impact
An attacker on the network can impersonate a TLS server to a vulnerable Mongoose client configured with a multi-certificate CA bundle. This impersonation can lead to interception of sensitive data, disclosure of credentials, modification of network traffic, and delivery of malicious responses. The vulnerability undermines the trust model of TLS connections by allowing acceptance of forged self-signed certificates without proper signature verification.
Mitigation Recommendations
This vulnerability is fixed in mongoose version 7.23. Users should upgrade to version 7.23 or later to remediate the issue. No official patch or temporary workaround is documented in the provided data. Patch status is not yet confirmed beyond the stated fix version—check the vendor advisory for current remediation guidance.
CVE-2026-73251: CWE-295: Improper Certificate Validation in cesanta mongoose
Description
Mongoose is an embedded web server and network library. Prior to 7.23, a network attacker can impersonate a TLS server to a Mongoose client configured with a multi-certificate CA bundle. In src/tls_builtin.c, the mg_tls_init() function stores the bundle in tls->ca_bundle_der while tls->ca_der.len remains zero, and mg_tls_recv_cert() uses tls_bundle_find() to accept a Common Name match without calling mg_tls_verify_cert_signature(). A forged self-signed certificate can therefore satisfy hostname and CertificateVerify checks and enable interception, credential disclosure, traffic modification, and malicious responses. This issue is fixed in version 7.23.
CVSS v4.0
Score 9.3critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-73251 is a critical vulnerability in the cesanta mongoose library affecting versions prior to 7.23. The flaw arises from improper certificate validation in the TLS implementation. Specifically, in src/tls_builtin.c, the mg_tls_init() function stores the CA bundle incorrectly, leaving tls->ca_der.len at zero. Consequently, mg_tls_recv_cert() uses tls_bundle_find() to accept a Common Name match without verifying the certificate signature via mg_tls_verify_cert_signature(). This allows a network attacker to present a forged self-signed certificate that satisfies hostname and CertificateVerify checks, enabling man-in-the-middle attacks such as interception, credential disclosure, traffic modification, and malicious responses. The vulnerability is addressed in mongoose version 7.23.
Potential Impact
An attacker on the network can impersonate a TLS server to a vulnerable Mongoose client configured with a multi-certificate CA bundle. This impersonation can lead to interception of sensitive data, disclosure of credentials, modification of network traffic, and delivery of malicious responses. The vulnerability undermines the trust model of TLS connections by allowing acceptance of forged self-signed certificates without proper signature verification.
Mitigation Recommendations
This vulnerability is fixed in mongoose version 7.23. Users should upgrade to version 7.23 or later to remediate the issue. No official patch or temporary workaround is documented in the provided data. Patch status is not yet confirmed beyond the stated fix version—check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-11T17:18:01.598Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a873eeeacd9273b49f2b5de
Added to database: 08/20/2026, 17:52:46 UTC
Last enriched: 08/20/2026, 18:07:35 UTC
Last updated: 08/20/2026, 23:16:37 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.