PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-73259 cesanta CVE debrief

A reflected cross-site scripting vulnerability exists in Mongoose, an embedded web server and network library, prior to version 7.22. This issue allows a remote attacker to send a crafted percent-encoded request path to a deployment using MG_ENABLE_DIRLIST, potentially persuading a user to visit it. The vulnerability is due to the mg_http_serve_dir() and listdir() paths in src/http.c placing the decoded request URI into the title and h1 elements without HTML entity encoding. As a result, the reflected cross-site scripting can execute in the Mongoose origin, potentially exposing session data or allowing actions to be performed as the victim.

Vendor
cesanta
Product
mongoose
CVSS
MEDIUM 5.4
CISA KEV
Not listed in stored evidence
Original CVE published
2026-08-20
Original CVE updated
2026-09-29
Advisory published
2026-08-20
Advisory updated
2026-09-29

Who should care

Defenders responsible for Mongoose deployments, particularly those using MG_ENABLE_DIRLIST, should assess their exposure and prioritize upgrading to version 7.22 or later. Web application security teams and developers using Mongoose should verify their inventory and monitor for suspicious requests.

Why it matters

CVE-2026-73259 is a reflected cross-site scripting vulnerability in Mongoose prior to version 7.22. Defenders should prioritize verifying exposure, upgrading, and monitoring for suspicious requests. Web application security teams and developers using Mongoose should assess their inventory and take action.

  • Exposed session data due to reflected cross-site scripting
  • Potential actions performed as the victim
  • Need for inventory checks to identify affected deployments
  • Priority on upgrading to Mongoose version 7.22 or later

Technical summary

The mg_http_serve_dir() and listdir() paths in src/http.c of Mongoose prior to version 7.22 do not HTML entity encode the decoded request URI when placing it into the title and h1 elements. This allows a remote attacker to send a crafted percent-encoded request path to a deployment using MG_ENABLE_DIRLIST, potentially persuading a user to visit it and execute reflected cross-site scripting in the Mongoose origin.

Defensive priority

Defenders should prioritize verifying exposure of Mongoose deployments using MG_ENABLE_DIRLIST and upgrading to version 7.22 or later. Inventory checks and monitoring for suspicious requests can help detect potential exploitation attempts.

Recommended defensive actions

  • Verify Mongoose deployments using MG_ENABLE_DIRLIST for exposure
  • Upgrade to Mongoose version 7.22 or later
  • Monitor for suspicious requests to detect potential exploitation attempts
  • Perform inventory checks to identify affected deployments
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented

Evidence notes

The CVE record and NVD vulnerability detail provide information on the vulnerability, its impact, and the fixed version. Additional details are available in the source references, including patches, issue tracking, and release notes.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-73259 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-73259

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-73259 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-73259

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.