CVE-2026-73253: Mongoose: TLS Hostname Verification Bypass via Overly Permissive Wildcard Matching

Published Aug 20, 2026
·
Updated

Mongoose is an embedded web server and network library. Prior to version 7.22, an on-path network attacker with a wildcard certificate for a parent domain can impersonate deeper subdomains to a client using the built-in TLS stack. The mgtlsverifycertsan() and mgtlsverifycertcn() functions in src/tlsbuiltin.c call mgmatch(), whose wildcard can cross DNS label boundaries, so a pattern such as .example.com can match foo.bar.example.com. The resulting hostname verification bypass permits interception and modification of TLS traffic. This issue is fixed in version 7.22.

Affected Software

1 affected component
Mongoose<7.22

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Mongoose to a version that resolves this vulnerability.

    Fixed in 7.22

Event History

Aug 20, 2026
CVE Published
via MITRE·05:41 PM
Data Sourced
via MITRE·05:41 PM
DescriptionWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Clients using Mongoose's built-in TLS stack in versions before 7.22 are exposed when they connect to deeper subdomains whose hostname is validated against a wildcard certificate for a parent domain.

2

What does an attacker need to exploit the bypass?

The attacker must be on the network path between the client and server and possess a wildcard certificate for the parent domain. They can then use that certificate to impersonate a deeper subdomain because the affected wildcard matching crosses DNS label boundaries.

3

What is the impact of successful exploitation?

An attacker can impersonate the intended TLS endpoint, intercept TLS traffic, and modify that traffic.

4

What should be done if the affected TLS stack is in use?

Upgrade Mongoose to version 7.22, which fixes the hostname verification behavior.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203