Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

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

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

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: 08/20/2026, 18:07:56 UTC

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.

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
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 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