Live threats

All CVEs / miguelgrinberg

CVE-2026-42874miguelgrinberg microdot

Low 3.7 No auth needed

Priority
37
CVSS 3.1
3.7
EPSS
—
Auth required
No
Published
May 11, 2026
Updated
Oct 26, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-113
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for microdot.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI microdot < 2.6.1 2.6.1 pip install "microdot>=2.6.1"
PyPI microdot < 2.6.1 2.6.1 pip install "microdot>=2.6.1"

Per OSV / GitHub Advisories (GHSA-7wc8-wvc4-m498, PYSEC-2026-2646). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.