CVE-2026-3644

Incomplete control character validation in http.cookies

State
Published
Severity
6.0 Medium
Published
Mar 16, 2026
Updated
Aug 13, 2026
Reserved
Mar 6, 2026

Read the record on cve.org

Description

The fix for CVE-2026-0672, which rejected control characters in http.cookies.Morsel, was incomplete. The Morsel.update(), |= operator, and unpickling paths were not patched, allowing control characters to bypass input validation. Additionally, BaseCookie.js_output() lacked the output validation applied to BaseCookie.output().

Scores

CVSSScoreVectorSource
4.06.0 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:NPSF

Weaknesses

  • CWE-20 Improper Input Validation
  • CWE-116 Improper Encoding or Escaping of Output

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.10.21Affected
  • 3.11.0 to before 3.11.16Affected
  • 3.12.0 to before 3.12.14Affected
  • 3.13.0 to before 3.13.13Affected
  • 3.14.0 to before 3.14.4Affected
  • 3.15.0a1 to before 3.15.0a8Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.