CVE Catalog

CVE-2026-42874

LowCVSS 3.7
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.22%

12th percentile - higher than 12% of all known CVEs

Summary

Microdot, a minimalistic Python web framework, in versions prior to 2.6.1 does not sanitize string arguments of the Response.set_cookie() method, particularly not detecting the \r\n sequence. This can be a source of header injection attacks. For an attack to be possible, the attacker must first infiltrate the client (e.g., via an independent XSS attack) to send malicious information destined to be stored in a cookie by the server on behalf of the victim.

Risk Assessment

An attacker can perform header injection for an infiltrated client, potentially leading to further attacks. Non-infiltrated clients are safe.

Recommendation

Update Microdot to version 2.6.1 or later. Ensure XSS protection in the application to prevent initial client infiltration.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS