CVE-2026-73258: CWE-697: Incorrect Comparison in cesanta mongoose
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.
AI Analysis
Technical Summary
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.
CVE-2026-73258: CWE-697: Incorrect Comparison in cesanta 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
Affected software
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 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.
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 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.