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-73258: CWE-697: Incorrect Comparison in cesanta mongoose

0
Medium
VulnerabilityCVE-2026-73258cvecve-2026-73258cwe-697
Published: 08/20/2026 (08/20/2026, 17:36:39 UTC)
Source: CVE Database V5
Vendor/Project: cesanta
Product: mongoose

Description

Mongoose is an embedded web server and network library. Prior to 7.22, a remote attacker can place a lone carriage return or line feed in multipart input processed by mg_http_next_multipart() in src/http.c. The loops comparing s[b] and s[b + 1], and s[h2] and s[h2 + 1], use an incorrect AND condition and stop when either character resembles part of a CRLF terminator. This truncates headers, filenames, or boundaries and can cause an application to accept dangerous content after seeing a misleading Content-Type value. This issue is fixed in version 7.22.

CVSS v3.1

Score 6.5medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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:08:03 UTC

Technical Analysis

The vulnerability arises from an incorrect AND condition in loops comparing characters in multipart input, specifically in mg_http_next_multipart() in src/http.c of mongoose. The loops stop when either character resembles part of a CRLF terminator, causing truncation of multipart headers, filenames, or boundaries. This truncation can mislead the application into accepting malicious content based on a false Content-Type. The flaw is resolved in mongoose version 7.22.

Potential Impact

An attacker can remotely exploit this flaw by sending specially crafted multipart input containing a lone carriage return or line feed. This can cause the application to truncate multipart headers or boundaries incorrectly, potentially allowing dangerous content to be accepted under misleading Content-Type headers. The impact includes limited confidentiality and integrity loss but no availability impact, as reflected by the CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).

Mitigation Recommendations

This vulnerability is fixed in mongoose version 7.22. Users should upgrade to version 7.22 or later to remediate this issue. Patch status is not explicitly confirmed in the provided data, but the vendor states the issue is fixed in 7.22. No other mitigation or temporary workaround is indicated.

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: 6a873eeeacd9273b49f2b5ea

Added to database: 08/20/2026, 17:52:46 UTC

Last enriched: 08/20/2026, 18:08:03 UTC

Last updated: 08/20/2026, 18:53:01 UTC

Views: 6

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