{"id":"JLSEC-2026-1382","details":"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.","modified":"2026-08-24T14:00:03.347585339Z","published":"2026-08-24T13:43:17.899Z","upstream":["CVE-2026-73258","EUVD-2026-63495"],"database_specific":{"sources":[{"imported":"2026-08-23T06:20:54.913Z","modified":"2026-08-20T19:17:01.313Z","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","database_specific":{"status":"Received"},"id":"CVE-2026-73258"},{"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","affected":{"Cesanta:Mongoose":["\u003c 7.22"]},"id":"EUVD-2026-63495","imported":"2026-08-23T06:20:06.545Z","modified":"2026-08-20T18:32:51Z"}],"license":"CC-BY-4.0"},"references":[{"type":"WEB","url":"https://github.com/cesanta/mongoose/commit/a9df523f76f43a38bd53b4232b9cfd4c16869e71"},{"type":"WEB","url":"https://github.com/cesanta/mongoose/pull/3611"},{"type":"WEB","url":"https://github.com/cesanta/mongoose/releases/tag/7.22"},{"type":"WEB","url":"https://github.com/cesanta/mongoose/security/advisories/GHSA-cc55-8v3r-59p8"}],"affected":[{"package":{"name":"Mongoose_jll","ecosystem":"Julia","purl":"pkg:julia/Mongoose_jll?uuid=0a8a3f5b-4c0e-5906-8e29-5b3fee15539c"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-1382.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","source":"CNA"}]}