CVE-2026-73255: Mongoose: Path traversal in SSI #include directives enables arbitrary file read

Published Aug 20, 2026
·
Updated

Mongoose is an embedded web server and network library. Prior to 7.22, an attacker who can control an SSI-enabled file can place directory traversal sequences in an #include file or #include virtual directive. The mgssi() function in src/ssi.c concatenates the directive argument into a filesystem path without calling mgpathissane(), allowing an MGENABLESSI deployment with ssipattern configured to disclose files readable by the Mongoose process. This issue is fixed in version 7.22.

Affected Software

1 affected component
Mongoose 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:40 PM
Data Sourced
via MITRE·05:40 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using Mongoose before version 7.22 are exposed when SSI is enabled with MG_ENABLE_SSI and ssi_pattern is configured. The disclosed files are limited to those readable by the Mongoose process.

2

What access does an attacker need to exploit this issue?

An attacker must be able to control the contents of an SSI-enabled file. They can then place directory-traversal sequences in an #include file or #include virtual directive.

3

How can the issue be remediated?

Upgrade Mongoose to version 7.22, which fixes the issue. If upgrading cannot happen immediately, removing attacker control over SSI-enabled files prevents the described exploitation path.

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