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…
EPSS 0.2%top 88%

CVE-2026-42874: CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') in miguelgrinberg microdot

0
Low
VulnerabilityCVE-2026-42874cvecve-2026-42874cwe-113
Published: 05/11/2026 (05/11/2026, 19:04:26 UTC)
Source: CVE Database V5
Vendor/Project: miguelgrinberg
Product: 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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected software

microdot
pkg:pypi/microdot
Affected versions
<2.6.1

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: 05/19/2026, 09:37:24 UTC

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.

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-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 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