Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-42874
Published:May 11, 2026
Updated:May 16, 2026
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.
Affected Packages
microdot (CONDA):
Affected version(s) >=2.0.2 <2.6.1
Fix Suggestion:
Update to version 2.6.1
https://github.com/miguelgrinberg/microdot.git (GITHUB):
Affected version(s) >=v0.1.0 <v2.6.1
Fix Suggestion:
Update to version v2.6.1
microdot (PYTHON):
Affected version(s) >=0.1.0 <2.6.1
Fix Suggestion:
Update to version 2.6.1
microdot (PYTHON):
Affected version(s) >=0.1.0 <2.6.1
Fix Suggestion:
Update to version 2.6.1
Do you need more information?
Contact Us
CVSS v4
Base Score:
6.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
3.7
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
EPSS
Base Score:
0.04