Skip to main content
EPSS 0.3%top 74%

CVE-2026-73254: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cesanta mongoose

0
Medium
VulnerabilityCVE-2026-73254cvecve-2026-73254cwe-79
Published: 08/20/2026 (08/20/2026, 17:37:17 UTC)
Source: CVE Database V5
Vendor/Project: cesanta
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Affected software

cesanta

mongoose

Affected versions
<7.22
GitHub Actionsmore threats →ai
cesanta/mongoose
pkg:github/cesanta/mongoose
Affected versions
<7.22

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/11/2026, 04:18:50 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses