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.
{
"license": "CC-BY-4.0",
"sources": [
{
"id": "CVE-2026-73258",
"database_specific": {
"status": "Received"
},
"published": "2026-08-20T18:16:47.323Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-73258",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-73258",
"modified": "2026-08-20T19:17:01.313Z",
"imported": "2026-08-23T06:20:54.913Z"
},
{
"id": "EUVD-2026-63495",
"published": "2026-08-20T17:36:39Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-63495",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-63495",
"modified": "2026-08-20T18:32:51Z",
"affected": {
"Cesanta:Mongoose": [
"< 7.22"
]
},
"imported": "2026-08-23T06:20:06.545Z"
}
]
}