email-header-injection

Identify SMTP header injection vulnerabilities in web forms with crafted payloads.

846|152|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill email-header-injection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: email-header-injection
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/vulnerabilities/email-header-injection
Command: npx skills add https://github.com/xalgord/xalgorix --skill email-header-injection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Email header injection occurs when user input is included in email headers (To, From, Subject, Cc, Bcc) without sanitization. Attackers inject CRLF characters to add headers, enabling spam relay, Bcc-based data exfiltration, and email spoofing.

Core Features & Use Cases

  • Payload-based testing of header manipulation in common vectors including contact forms and registration flows.
  • Demonstrations of Bcc and Cc header insertion to verify real-world impact and assist remediation.
  • Guidance for developers on input sanitization, header validation, and safe mail library usage.

Quick Start

Test your target web forms for SMTP header injection by submitting crafted payloads to identify header manipulation vulnerabilities.

Frequently Asked Questions about email-header-injection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is SMTP header injection in web forms?

SMTP header injection is a vulnerability where attackers insert CRLF characters into web form inputs to manipulate email headers like Bcc and Cc, enabling spam relay, data exfiltration, and email spoofing.

How do I test contact forms for email header injection vulnerabilities?

You can test contact forms for email header injection by submitting crafted CRLF payloads into form fields to identify header manipulation, verify real-world impact through Bcc insertion, and document exploitable scenarios.

Can email header injection be used for data exfiltration through Bcc headers?

Yes, email header injection allows data exfiltration by injecting Bcc headers via unsanitized user input, automatically copying sensitive form submissions or application data to an attacker-controlled email address.

Does SMTP header injection testing work on password reset and registration flows?

Yes, SMTP header injection testing applies to password reset and registration flows, allowing you to assess header manipulation risks and document remediation steps for these specific web form endpoints.

What is the best way to prevent CRLF injection in email headers?

The best way to prevent CRLF injection in email headers is to apply strict input sanitization, validate header fields, and use safe mail libraries that properly encode user-supplied data before sending.