HTTP Response Splitting Affecting microdot package, versions [,2.6.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.22% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-MICRODOT-16431739
  • published6 May 2026
  • disclosed5 May 2026
  • creditLuan Tran

Introduced: 5 May 2026

CVE-2026-42874  (opens in a new tab)
CWE-113  (opens in a new tab)

How to fix?

Upgrade microdot to version 2.6.1 or higher.

Overview

microdot is a The impossibly small web framework for MicroPython

Affected versions of this package are vulnerable to HTTP Response Splitting in the set_cookie function. An attacker can inject arbitrary HTTP headers by supplying malicious input containing carriage return and line feed sequences, which are then stored in a cookie by the server on behalf of the victim.

Note: This is only exploitable if the attacker has already infiltrated the client, such as through a separate cross-site scripting attack, and can control the data sent to the server for cookie storage.

Workaround

This vulnerability can be mitigated by ensuring that untrusted data is not passed to the set_cookie function.

CVSS Base Scores

version 4.0
version 3.1