CAPEC-134
Email Injection
An adversary manipulates the headers and content of an email message by injecting data via the use of delimiter characters native to the protocol.
On this page
Many applications allow users to send email messages by filling in fields. For example, a web site may have a link to "share this site with a friend" where the user provides the recipient's email address and the web application fills out all the other fields, such as the subject and body. In this pattern, an adversary adds header and body information to an email message by injecting additional content in an input field used to construct a header of the mail message. This attack takes advantage of the fact that RFC 822 requires that headers in a mail message be separated by a carriage return. As a result, an adversary can inject new headers or content simply by adding a delimiting carriage return and then supplying the new heading and body information. This attack will not work if the user can only supply the message body since a carriage return in the body is treated as a normal character.
Ask an AI about this attack pattern
Show the prompt
Explain the attack pattern CAPEC-134: Email Injection: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/134.html and https://cve.bz/cve/capec/134?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.
Prerequisites
The target application must allow the user to send email to some recipient, to specify the content at least one header field in the message, and must fail to sanitize against the injection of command separators.
The adversary must have the ability to access the target mail application.
Resources required
None: No specialized resources are required to execute this type of attack.
Weaknesses it exploits
- CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
Recent CVEs with these weaknesses
- 4.3CVE-2026-121478
A flaw was found in sequoia-sq. This flaw allows an attacker to spoof signature verification results displayed in terminal output. Because control characters in user identifiers are not properly sanitized in human-readable output, an attac…
- 5.1CVE-2026-136268
Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in leandrocp mdex allows Content Spoofing via code block content passed to MDEx.to_slack/2. An attacker who controls Markdown that an application converts to Slack…
- 2.1CVE-2026-136130
Improper Neutralization of Escape, Meta, or Control Sequences vulnerability in leandrocp mdex allows Slack mention and broadcast injection via link, image, and wikilink destinations. MDEx.to_slack/2 renders these nodes as Slack <url|label>…
- 2.1CVE-2026-138333
A security vulnerability has been detected in dailydotdev daily up to d8fc89d978eb4a454992349adafa283700c52e31. This affects the function render of the file statusline/statusline.mjs of the component Statusline Handler. The manipulation le…
- 3.1CVE-2026-115834
A flaw was found in sequoia-openpgp. Display and Debug formatting of User IDs and notation data does not escape control characters. When an application prints those values, a crafted User ID or notation can misrender the identity or alter …
- 4.8CVE-2026-134823
Kitty 0.43.0 before 0.51.0 contains a terminal escape sequence injection vulnerability that allows attackers to emit escape sequences by crafting malicious file or archive member names. When a victim highlights such an entry in the choose-…
- 8.7CVE-2026-134359
AzuraCast before 0.24.1 fails to escape backslashes in Liquidsoap annotation values, allowing media managers to break out of quoted annotation strings. Attackers can set a crafted ID3 title ending in a backslash to inject a process: protoc…
- 4.8CVE-2026-18553
Mattermost versions 11.11.x <= 11.11.0, 11.7.x <= 11.7.11, 11.10.x <= 11.10.2 fail to sanitize terminal escape sequences when rendering server logs via {{mmctl logs}}, which allows an unauthenticated attacker to hijack a system administrat…
The newest records naming one of them. Each weakness's page lists them all.
Related attack patterns
- Part of
- CAPEC-137 Parameter Injection
- More specific patterns
- CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads
MITRE's words, unchanged: CAPEC-134 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.