Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply untrusted cookie attribute value
-
DeliveryApp sets it via Morsel attribute
-
ExploitSemicolon emitted verbatim in Set-Cookie
-
ExecutionBrowser parses injected Domain/SameSite
-
ImpactCookie scope restrictions relaxed
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Exploitation Conditions | Exploitation requires a host application to pass attacker-controlled input into a non-comment http.cookies.Morsel attribute value (e.g. Domain, SameSite, Path), causing a verbatim ';' separator to be emitted in the Set-Cookie output. It does NOT affect default or typical usage where cookie attribute values are developer-controlled constants, nor the 'comment' attribute (which is escaped). Limiting factors, consistent with the CVSS 4.0 vector: an attack requirement is present (AT:P), passive user interaction is needed (UI:P) since a victim's browser must parse the malformed cookie, and impact is confined to low integrity (VI:L) - relaxing cookie Domain/SameSite scoping - with no confidentiality or availability impact. |
| Impact | This is a genuinely low-priority issue, and the signals agree. The vuln.today decision label is 'monitor', there is no CISA KEV listing, no EPSS score was supplied, and no public exploit code or PoC reference appears in the input (the three references are the upstream fix PR, the tracking issue, and the PSF security-announce thread - remediation material, not exploit material). The only CVSS vector provided is CVSS 4.0 (base 2.3): AV:N/AC:L/AT:P/PR:N/UI:P with impact limited to VI:L (low integrity on the vulnerable system) and VC/VA/SC/SI/SA all N. The AT:P (attack requirement present) and UI:P (passive user interaction) metrics plus the description ('An attacker who can control these values') mean this is not a standalone remote flaw: it only matters when an application feeds attacker-controlled data into non-comment cookie attribute values via http.cookies.Morsel. That application-dependent precondition, combined with the N confidentiality/availability impact and low integrity impact, makes this a low-real-risk, defense-in-depth hardening fix rather than an emergency. No CVSS 3.1 vector and no EPSS were provided, so cross-signal comparison relies on the 4.0 vector and the 'monitor' label only. |
| Exploit ScenarioDerived | An application uses http.cookies.Morsel and sets a cookie attribute (such as Domain or SameSite) from untrusted, attacker-influenced input. Because the pre-fix Morsel emits a separator semicolon verbatim in attribute values, the attacker embeds 'value; SameSite=none' (or similar), and the victim's browser parses the injected text as additional cookie attributes, relaxing Domain or SameSite restrictions. No public exploit or PoC reference is present in the input; exploitation depends entirely on the hosting application passing untrusted data into cookie attributes. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 12, 2026
Attribute injection in CPython's http.cookies.Morsel class lets a ';' embedded in an attribute value such as Domain, SameSite or Path be emitted verbatim into the generated Set-Cookie header, so a browser parsing the result can read the trailing text as additional cookie attributes and have the cookie's Domain or SameSite scoping relaxed. Only applications that pass attacker-influenced strings into non-comment Morsel attribute values are exposed; normal use with developer-supplied constants is unaffected, and the comment attribute is already escaped on output. CVSS 4.0 scores this 2.3 (AT:P, UI:P, VI:L) and the independent assessment rates it a low-priority integrity issue with a vuln.today decision of monitor; no public exploit code was identified at time of analysis, and the fix exists only as an upstream pull request rather than a released patched version.
RemediationAI
No vendor-released patched version was identified at time of analysis; the fix exists as upstream pull request https://github.com/python/cpython/pull/161711 (referenced from issue https://github.com/python/cpython/issues/161707), whose documentation entries are marked for the next release, so the exact shipped version is not independently confirmed and operators should track the PSF security-announce thread https://mail.python.org/archives/list/security-announce@python.org/thread/IZL4QUFV7PKGT2JYSU2DCBMLTWYJDGKZ/ for the release that carries it. Until then, the actionable control is at the application layer, since exploitation requires the host program to place attacker-controlled text into a Morsel attribute: treat attribute values such as domain, samesite and path as developer-chosen constants, and where they must be derived from request data, validate them against an allowlist or reject any value containing the ';' separator before assigning it through morsel[...] =, set(), setdefault(), update() or |=. The trade-off is that strict allowlisting can reject legitimate values (for example multi-label Domain strings) and requires handling a validation error at each assignment site, while the comment attribute needs no such restriction because its semicolons are already escaped to \073 on output. Applications that adopt the upstream behaviour early by replicating the CookieError check should expect it to raise on previously accepted input, so error paths must be reviewed before enabling it.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The http.cookies module of the CPython standard library implements Morsel, a dict-like object holding the reserved Set-Cookie attributes (expires, path, comment, domain, max-age, secure, version, httponly, samesite). Assignments through __setitem__, set(), setdefault(), update() and |= previously validated attribute names against the internal _reserved mapping and rejected control characters via _has_control_character, but the reserved separator ';' was accepted in any value and written out unchanged by OutputString. Because ';' delimits attributes in a Set-Cookie header, a value such as 'foo; SameSite=none' assigned to the domain or samesite attribute produces a header whose trailing segment is re-parsed by the user agent as a separate attribute, which is the CWE-74 improper-neutralization-of-special-elements pattern (output/attribute injection). The only attribute that handled the separator safely was comment, which is quoted like a cookie value and has ';' escaped to \073. The trigger described in the sources is a host application placing attacker-controlled text into a non-comment attribute value; the flaw has no effect when attribute values are constants chosen by the developer, and the upstream patch therefore adds a _check_attribute helper that raises CookieError for ';' in every attribute except comment while preserving the existing escaping for comment.
Know when Cpython gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
AC:H and UI:R because exploitation needs an application that routes untrusted data into Morsel cookie attributes plus a victim browser parsing it; impact is limited to low integrity (cookie scope relaxation), so C:N/A:N.
Primary rating from Vendor (PSF).
CVSS VectorVendor: PSF
Lifecycle Timeline
2DescriptionCVE.org
The http.cookies.Morsel class allows separator semicolons in attribute values and includes them verbatim in all output formats. An attacker who can control these values could use this to relax the cookie's Domain or SameSite restrictions.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Integrity bypass in CPython's stringprep module causes divergent domain name normalization when processing international
CPython's ssl module validates TLS certificate chains that anchor to known-compromised eMudhra CA certificates, so anyon
A use-after-free in CPython's ssl module lets a remote, unauthenticated TLS client crash a Python TLS server process - o
CPython decompression modules (lzma, bz2, gzip) allow memory corruption via use-after-free when decompressor instances a
Out-of-bounds buffer write in CPython's asyncio.ProactorEventLoop (Windows only) allows remote attackers to trigger memo
Denial of service in CPython's tarfile module allows remote attackers to trigger an infinite loop by supplying a crafted
Stack-based buffer overflow in CPython's bz2.BZ2Decompressor allows remote attackers to crash Python applications by sen
FIPS algorithm enforcement in CPython 3.14.10's hashlib module can fail for hash requests made with usedforsecurity=True
Path traversal in CPython's tarfile module allows a crafted tar archive to bypass the 'data' and 'tar' extraction filter
Certificate hostname verification is silently skipped in CPython's TLS stack when an application enables SSLContext.chec
Command injection in CPython's webbrowser.open() API bypasses previous CVE-2026-4519 mitigation via specially crafted UR
The webbrowser.open() API in CPython accepts URLs with leading dashes, which certain web browsers interpret as command-l
EUVD-2026-124537
GHSA-x8gr-g883-r98g
NVD
CVE.org
EPSS
VulDB
Exploit-DB