CVE-2026-73254: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cesanta mongoose
Description
CVE-2026-73254 is a stored cross-site scripting (XSS) vulnerability in the cesanta mongoose embedded web server and network library. The flaw exists in versions prior to 7.22 when directory listing is enabled (MG_ENABLE_DIRLIST). An attacker who can create a file with an HTML payload in its filename can cause the server to inject this raw filename into the HTML link text without proper neutralization, leading to script execution in the user's browser. This can expose session data or allow actions to be performed as the victim. The issue is fixed in version 7.22.
CVSS v3.1
Score 5.4medium
Affected software
cesanta
mongoose
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 arises from improper neutralization of input during web page generation in the printdirentry() function called by listdir() in src/http.c of mongoose. While the href attribute is URL-encoded, the raw filesystem filename is inserted directly into the HTML link text, enabling stored XSS when directory listing is enabled. This allows an attacker who can create files with crafted names to inject malicious HTML/JavaScript that executes in the context of the mongoose server origin. The vulnerability is addressed in mongoose version 7.22.
Potential Impact
Successful exploitation can lead to execution of arbitrary scripts in the context of the mongoose server origin. This may expose session information or allow the attacker to perform actions on behalf of the victim user. The CVSS 3.1 base score is 5.4 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction required, and limited confidentiality and integrity impact.
Mitigation Recommendations
Upgrade to mongoose version 7.22 or later where this vulnerability is fixed. No other mitigations are indicated or required once the official fix is applied.
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
Threat ID: 6a873eeeacd9273b49f2b5e2
Added to database: 08/20/2026, 17:52:46 UTC
Last enriched: 09/11/2026, 04:18:50 UTC
Last updated: 10/04/2026, 18:53:18 UTC
Views: 64
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.