CVE-2026-42874: CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') in miguelgrinberg microdot
Microdot is a minimalistic Python web framework. Prior to 2.6.1, the Response.set_cookie() method does not sanitize its string arguments, and in particular will not detect the presence of the \r\n sequence in them. This can be a potential source of header injection attacks. For a header injection attack through this issue to be possible, an attacker must first infiltrate the client (for example through an independent XSS attack), so that it can send malicious information that is destined to be stored in a cookie by the server on behalf of the victim. An attacker that infiltrates one client can only orchestrate a header injection attack for that client, all other clients that were not infiltrated are safe. This vulnerability is fixed in 2.6.1.
AI Analysis
Technical Summary
Microdot versions before 2.6.1 have an improper neutralization of CRLF sequences in HTTP headers due to the Response.set_cookie() method not sanitizing input strings. This allows an attacker who has already infiltrated a client to perform HTTP header injection by injecting CRLF sequences into cookie values. Exploitation requires prior client compromise, limiting the scope of impact to that client only. The vulnerability is classified under CWE-113 and has a CVSS 3.1 base score of 3.7 (low severity). The issue is resolved in microdot 2.6.1.
Potential Impact
The vulnerability allows HTTP header injection via unsanitized cookie values, which can lead to HTTP response splitting attacks. However, exploitation requires prior compromise of the client to inject malicious data, restricting the attacker's ability to affect only the infiltrated client. There is no impact on confidentiality or availability, and the integrity impact is low. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade microdot to version 2.6.1 or later, where the Response.set_cookie() method properly sanitizes input to prevent CRLF injection. Since this is an official fix, applying the update fully mitigates the vulnerability. Patch status is not explicitly stated in the advisory, but the fix is confirmed in version 2.6.1.
CVE-2026-42874: CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') in miguelgrinberg microdot
Description
Microdot is a minimalistic Python web framework. Prior to 2.6.1, the Response.set_cookie() method does not sanitize its string arguments, and in particular will not detect the presence of the \r\n sequence in them. This can be a potential source of header injection attacks. For a header injection attack through this issue to be possible, an attacker must first infiltrate the client (for example through an independent XSS attack), so that it can send malicious information that is destined to be stored in a cookie by the server on behalf of the victim. An attacker that infiltrates one client can only orchestrate a header injection attack for that client, all other clients that were not infiltrated are safe. This vulnerability is fixed in 2.6.1.
CVSS v3.1
Score 3.7low
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
Microdot versions before 2.6.1 have an improper neutralization of CRLF sequences in HTTP headers due to the Response.set_cookie() method not sanitizing input strings. This allows an attacker who has already infiltrated a client to perform HTTP header injection by injecting CRLF sequences into cookie values. Exploitation requires prior client compromise, limiting the scope of impact to that client only. The vulnerability is classified under CWE-113 and has a CVSS 3.1 base score of 3.7 (low severity). The issue is resolved in microdot 2.6.1.
Potential Impact
The vulnerability allows HTTP header injection via unsanitized cookie values, which can lead to HTTP response splitting attacks. However, exploitation requires prior compromise of the client to inject malicious data, restricting the attacker's ability to affect only the infiltrated client. There is no impact on confidentiality or availability, and the integrity impact is low. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade microdot to version 2.6.1 or later, where the Response.set_cookie() method properly sanitizes input to prevent CRLF injection. Since this is an official fix, applying the update fully mitigates the vulnerability. Patch status is not explicitly stated in the advisory, but the fix is confirmed in version 2.6.1.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-30T18:49:06.711Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a022c38cbff5d86104f7cd9
Added to database: 05/11/2026, 19:21:28 UTC
Last enriched: 05/19/2026, 09:37:24 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 113
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.