CVE-2026-42874
LOW 3.7CVSS 3.1Microdot has HTTP response splitting in Response.set_cookie()
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.
- Published
- 11 May 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-113
- Also known as
- GHSA-7wc8-wvc4-m498PYSEC-2026-2646
- Sources
- NVDJSONOSV GHSA-7wc8-wvc4-m498JSONOSV PYSEC-2026-2646JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | microdot | < 2.6.1 | 2.6.1 |
References
- https://github.com/miguelgrinberg/microdot/blob/main/CHANGES.md · WEB
- https://github.com/miguelgrinberg/microdot/commit/99b281b45faef8472410f2d56bfef496dfbd95d5 · WEB
- https://github.com/miguelgrinberg/microdot/security/advisories/GHSA-7wc8-wvc4-m498 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-42874 · ADVISORY
- https://github.com/miguelgrinberg/microdot · PACKAGE
- https://pypi.org/project/microdot · PACKAGE
- https://github.com/advisories/GHSA-7wc8-wvc4-m498 · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 11 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 May 2026)