CVE-2026-73255: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in cesanta mongoose
CVE-2026-73255 is a path traversal vulnerability in the cesanta mongoose embedded web server prior to version 7.22. It allows an attacker who controls an SSI-enabled file to use directory traversal sequences in #include directives, potentially disclosing files readable by the Mongoose process. The vulnerability arises because the mg_ssi() function concatenates directive arguments into filesystem paths without proper sanitization. This issue is fixed in version 7.22.
AI Analysis
Technical Summary
The vulnerability exists in the mg_ssi() function of the cesanta mongoose embedded web server and network library before version 7.22. When SSI (Server Side Includes) is enabled, an attacker controlling an SSI-enabled file can insert directory traversal sequences in #include file or #include virtual directives. The function mg_ssi() concatenates these directives into filesystem paths without validating them using mg_path_is_sane(), allowing unauthorized file disclosure. This improper limitation of pathname to a restricted directory is classified as CWE-22. The issue is resolved in mongoose version 7.22.
Potential Impact
An attacker with the ability to control an SSI-enabled file can exploit this vulnerability to read arbitrary files accessible by the Mongoose process. This can lead to disclosure of sensitive information. The CVSS score of 6.5 (medium severity) reflects the network attack vector with low complexity and no user interaction required, but requires some privileges (PR:L). There is no indication of integrity or availability impact.
Mitigation Recommendations
This vulnerability is fixed in mongoose version 7.22. Users should upgrade to version 7.22 or later to remediate this issue. No official patch or temporary fix details are provided beyond this version update. Until upgrading, restricting access to SSI-enabled files and limiting permissions of the Mongoose process may reduce exposure.
CVE-2026-73255: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in cesanta mongoose
Description
CVE-2026-73255 is a path traversal vulnerability in the cesanta mongoose embedded web server prior to version 7.22. It allows an attacker who controls an SSI-enabled file to use directory traversal sequences in #include directives, potentially disclosing files readable by the Mongoose process. The vulnerability arises because the mg_ssi() function concatenates directive arguments into filesystem paths without proper sanitization. This issue is fixed in version 7.22.
CVSS v3.1
Score 6.5medium
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
The vulnerability exists in the mg_ssi() function of the cesanta mongoose embedded web server and network library before version 7.22. When SSI (Server Side Includes) is enabled, an attacker controlling an SSI-enabled file can insert directory traversal sequences in #include file or #include virtual directives. The function mg_ssi() concatenates these directives into filesystem paths without validating them using mg_path_is_sane(), allowing unauthorized file disclosure. This improper limitation of pathname to a restricted directory is classified as CWE-22. The issue is resolved in mongoose version 7.22.
Potential Impact
An attacker with the ability to control an SSI-enabled file can exploit this vulnerability to read arbitrary files accessible by the Mongoose process. This can lead to disclosure of sensitive information. The CVSS score of 6.5 (medium severity) reflects the network attack vector with low complexity and no user interaction required, but requires some privileges (PR:L). There is no indication of integrity or availability impact.
Mitigation Recommendations
This vulnerability is fixed in mongoose version 7.22. Users should upgrade to version 7.22 or later to remediate this issue. No official patch or temporary fix details are provided beyond this version update. Until upgrading, restricting access to SSI-enabled files and limiting permissions of the Mongoose process may reduce exposure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-11T17:18:01.598Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a873eeeacd9273b49f2b5e4
Added to database: 08/20/2026, 17:52:46 UTC
Last enriched: 08/20/2026, 18:08:10 UTC
Last updated: 08/20/2026, 18:12:07 UTC
Views: 4
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.