LiveActive security incident?Get immediate response
CVE Record

CVE-2026-1299: email BytesGenerator header injection due to unquoted newlines

The email module, specifically the "BytesGenerator" class, didn’t properly quote newlines for email headers when serializing an email message allowing for header injection when an email is serialized. This is only applicable if using "LiteralHeader" writing headers that don't respect email folding rules, the new behavior will reject the incorrectly folded headers in "BytesGenerator".

MediumCVSS 6Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2026-1299 affects CPython’s email serialization. In limited circumstances, software that builds email headers using LiteralHeader could allow unintended extra headers when messages are serialized. This can affect message integrity, routing, or policy decisions. It is not listed as actively exploited in KEV, and exposure depends on specific application usage.

Executive priority

Treat as a targeted medium-priority engineering fix. Prioritize systems that generate outbound email from user-controlled data, such as support, CRM, notification, or workflow platforms. No cited source indicates active exploitation, so handle through normal patch and code-review cycles unless critical mail workflows are exposed.

Technical view

The CPython email.BytesGenerator class did not properly quote newlines in headers during serialization. The issue is CWE-93 header injection and applies when LiteralHeader is used to write headers that violate email folding rules. The updated behavior rejects incorrectly folded headers. CVSS v4.0 is 6.0 with network attack vector, low complexity, privileges required, and high integrity impact.

Likely exposure

Exposure is likely limited to Python applications or services using CPython’s email module with LiteralHeader and untrusted or poorly validated header content. The source bundle identifies CPython 3.11, 3.12, 3.13, 3.14, and 3.15.0a1 lines, but exact fixed release mapping is not fully provided.

Exploitation context

The attacker needs some level of privilege or application access to influence email header content. The CVSS vector lists attack requirements present and no user interaction. Sources do not state public exploitation, weaponized exploit availability, or CISA KEV inclusion.

Researcher notes

The core condition is narrow: BytesGenerator plus LiteralHeader misuse with headers that do not respect folding rules. The record references CVE-2024-6923 as related. Version and release-status details should be confirmed from PSF and downstream package advisories before declaring remediation complete.

Mitigation direction

  • Review Python Software Foundation advisory and CPython issue for current fixed releases.
  • Apply vendor-provided CPython updates or downstream distribution patches when available.
  • Avoid using LiteralHeader with untrusted input unless strictly validated.
  • Reject or normalize header values containing invalid newline folding.
  • Add regression tests for email header serialization behavior.

Validation and detection

  • Inventory services using CPython email.BytesGenerator or LiteralHeader.
  • Identify Python versions across affected 3.11 through 3.15 alpha lines.
  • Review code paths where users can influence email headers.
  • Confirm deployed Python includes the referenced CPython patch set or vendor backport.
  • Test that incorrectly folded headers are rejected, not serialized.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-93: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-1299 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6 (4.0)
Known Exploited
No
Published

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
11Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6CVSS 4.0MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

6Medium
CVSS 4.0 vector shape for CVE-2026-1299Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Python Software FoundationCPython0, 3.11.0, 3.12.0, 3.13.0, 3.14.0, 3.15.0a1unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-93 · source CWE mapping

Improper Neutralization of CRLF Sequences ('CRLF Injection')

Improper Neutralization of CRLF Sequences ('CRLF Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.