Skip to content

CVE-2026-42874 Microdot: HTTP response splitting in Response.set_cookie()

LowCVSS 3.7 EPSS 0.22%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
pypi microdot(PyPI) < 2.6.1 2.6.1
pypi microdot(PyPI) = 0.1.0 No fix listed
pypi microdot(PyPI) = 0.1.1 No fix listed
pypi microdot(PyPI) = 0.2.0 No fix listed
pypi microdot(PyPI) = 0.3.0 No fix listed
pypi microdot(PyPI) = 0.3.1 No fix listed
pypi microdot(PyPI) = 0.4.0 No fix listed
pypi microdot(PyPI) = 0.5.0 No fix listed
pypi microdot(PyPI) = 0.6.0 No fix listed
pypi microdot(PyPI) = 0.7.0 No fix listed
pypi microdot(PyPI) = 0.7.1 No fix listed
pypi microdot(PyPI) = 0.7.2 No fix listed
pypi microdot(PyPI) = 0.8.0 No fix listed
pypi microdot(PyPI) = 0.8.1 No fix listed
pypi microdot(PyPI) = 0.8.2 No fix listed
pypi microdot(PyPI) = 0.9.0 No fix listed
pypi microdot(PyPI) = 1.0.0 No fix listed
pypi microdot(PyPI) = 1.1.0 No fix listed
pypi microdot(PyPI) = 1.1.1 No fix listed
pypi microdot(PyPI) = 1.2.0 No fix listed
pypi microdot(PyPI) = 1.2.1 No fix listed
pypi microdot(PyPI) = 1.2.2 No fix listed
pypi microdot(PyPI) = 1.2.3 No fix listed
pypi microdot(PyPI) = 1.2.4 No fix listed
pypi microdot(PyPI) = 1.3.0 No fix listed
Show 25 more
ProductAffected versionsFixed in
pypi microdot(PyPI) = 1.3.1 No fix listed
pypi microdot(PyPI) = 1.3.2 No fix listed
pypi microdot(PyPI) = 1.3.3 No fix listed
pypi microdot(PyPI) = 1.3.4 No fix listed
pypi microdot(PyPI) = 2.0.0 No fix listed
pypi microdot(PyPI) = 2.0.1 No fix listed
pypi microdot(PyPI) = 2.0.2 No fix listed
pypi microdot(PyPI) = 2.0.3 No fix listed
pypi microdot(PyPI) = 2.0.4 No fix listed
pypi microdot(PyPI) = 2.0.5 No fix listed
pypi microdot(PyPI) = 2.0.6 No fix listed
pypi microdot(PyPI) = 2.0.7 No fix listed
pypi microdot(PyPI) = 2.1.0 No fix listed
pypi microdot(PyPI) = 2.2.0 No fix listed
pypi microdot(PyPI) = 2.3.0 No fix listed
pypi microdot(PyPI) = 2.3.1 No fix listed
pypi microdot(PyPI) = 2.3.2 No fix listed
pypi microdot(PyPI) = 2.3.3 No fix listed
pypi microdot(PyPI) = 2.3.4 No fix listed
pypi microdot(PyPI) = 2.3.5 No fix listed
pypi microdot(PyPI) = 2.4.0 No fix listed
pypi microdot(PyPI) = 2.5.0 No fix listed
pypi microdot(PyPI) = 2.5.1 No fix listed
pypi microdot(PyPI) = 2.6.0 No fix listed
miguelgrinberg microdot = < 2.6.1 No fix listed

References