CVE-2026-120362: Email::Address::XS versions before 1.06 for Perl allow injection of extra addresses when formatting a display name that contains "=?"
Email::Address::XS versions before 1.06 for Perl allow injection of extra addresses when formatting a display name that contains "=?".
The formatter treats any display name or group name containing "=?" as an RFC 2047 encoded word and writes it without quoting or escaping. A name such as "=? <admin@example.com>, x" is emitted as address-list syntax.
An attacker who controls a display name passed to formatemailaddresses or format can add recipients to the formatted address list.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Email::Address::XSto a version that resolves this vulnerability.Fixed in 1.06
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using Email::Address::XS before 1.06 are exposed if they format email addresses with format_email_addresses or format and allow an attacker to control a display name or group name.
What does an attacker need to exploit it?
The attacker needs control of a display name supplied to the formatter. A name containing "=?", such as "=? <admin@example.com>, x", can be emitted as address-list syntax and add recipients.
Are applications affected by default?
The issue is triggered only when formatting a display name or group name containing "=?". Applications that do not process attacker-controlled names through the affected formatting functions are not described as exploitable.
What should be done if an immediate upgrade is not possible?
Do not pass untrusted display names or group names containing "=?" to format_email_addresses or format. Reject or sanitize such input before formatting to prevent it from being treated as an RFC 2047 encoded word.