CVE-2026-73259: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cesanta mongoose
CVE-2026-73259 is a reflected cross-site scripting (XSS) vulnerability in the cesanta mongoose embedded web server prior to version 7.22. It occurs when a remote attacker sends a crafted percent-encoded request path to a deployment using MG_ENABLE_DIRLIST. The vulnerable code places the decoded request URI into HTML title and h1 elements without proper HTML entity encoding, allowing script execution in the context of the Mongoose origin. This can expose session data or allow actions to be performed as the victim user. The issue is fixed in version 7.22.
AI Analysis
Technical Summary
Mongoose versions prior to 7.22 contain a reflected cross-site scripting vulnerability (CWE-79) due to improper neutralization of input during web page generation. Specifically, the mg_http_serve_dir() and listdir() functions in src/http.c insert the decoded request URI into the title and h1 HTML elements without HTML entity encoding. An attacker can exploit this by sending a crafted percent-encoded request path to a deployment with MG_ENABLE_DIRLIST enabled, causing script execution in the victim's browser under the Mongoose origin. This vulnerability has a CVSS 3.1 base score of 5.4 (medium severity) and was published on 2026-08-20. The vulnerability is fixed in version 7.22.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary scripts in the context of the vulnerable Mongoose web server origin. This can lead to exposure of session data or unauthorized actions performed as the victim user. The vulnerability does not require privileges or authentication but does require user interaction (UI:R). There is no indication of 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 other official remediation or temporary fixes are documented. Since this is not a cloud service, remediation depends on applying the vendor's fix.
CVE-2026-73259: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cesanta mongoose
Description
CVE-2026-73259 is a reflected cross-site scripting (XSS) vulnerability in the cesanta mongoose embedded web server prior to version 7.22. It occurs when a remote attacker sends a crafted percent-encoded request path to a deployment using MG_ENABLE_DIRLIST. The vulnerable code places the decoded request URI into HTML title and h1 elements without proper HTML entity encoding, allowing script execution in the context of the Mongoose origin. This can expose session data or allow actions to be performed as the victim user. The issue is fixed in version 7.22.
CVSS v3.1
Score 5.4medium
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
Mongoose versions prior to 7.22 contain a reflected cross-site scripting vulnerability (CWE-79) due to improper neutralization of input during web page generation. Specifically, the mg_http_serve_dir() and listdir() functions in src/http.c insert the decoded request URI into the title and h1 HTML elements without HTML entity encoding. An attacker can exploit this by sending a crafted percent-encoded request path to a deployment with MG_ENABLE_DIRLIST enabled, causing script execution in the victim's browser under the Mongoose origin. This vulnerability has a CVSS 3.1 base score of 5.4 (medium severity) and was published on 2026-08-20. The vulnerability is fixed in version 7.22.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary scripts in the context of the vulnerable Mongoose web server origin. This can lead to exposure of session data or unauthorized actions performed as the victim user. The vulnerability does not require privileges or authentication but does require user interaction (UI:R). There is no indication of 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 other official remediation or temporary fixes are documented. Since this is not a cloud service, remediation depends on applying the vendor's fix.
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: 6a873eeeacd9273b49f2b5ec
Added to database: 08/20/2026, 17:52:46 UTC
Last enriched: 08/20/2026, 18:07:56 UTC
Last updated: 08/20/2026, 18:42:14 UTC
Views: 5
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.