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

Published Jan 23, 2026
·
Updated

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".

Affected Software

2 affected components
pypi/email
IBM Netezza Software<=11.3.0.3-IF2

Event History

Jan 23, 2026
CVE Published
via MITRE·04:27 PM
Data Sourced
via MITRE·04:27 PM
DescriptionWeakness
Data Sourced
via Red Hat·05:03 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeakness
Aug 20, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-1299?

CVE-2026-1299 has been classified as a moderate severity vulnerability due to potential email header injection.

2

How do I fix CVE-2026-1299?

To fix CVE-2026-1299, you should update the email module to a patched version that appropriately quotes newlines in headers.

3

What impact does CVE-2026-1299 have on email systems?

CVE-2026-1299 allows an attacker to inject malicious headers into serialized email messages, potentially leading to phishing or spam.

4

Which versions of the email module are affected by CVE-2026-1299?

CVE-2026-1299 affects all versions of the email module prior to the release of the patch that addresses this vulnerability.

5

Is CVE-2026-1299 specific to a certain programming language?

Yes, CVE-2026-1299 specifically affects the Python 'email' module, particularly the 'BytesGenerator' class.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203