CVE-2026-65622: ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URLs
Improper Encoding or Escaping of Output vulnerability in ex-aws exawsses (ExAws.SES module) allows path injection into Amazon SES V2 request URLs.
This vulnerability is associated with program file lib/exaws/ses.ex and program routines ExAws.SES.deletecontactlist/1, ExAws.SES.getcontactlist/1, ExAws.SES.updatecontactlist/2, ExAws.SES.createcontact/3, ExAws.SES.getcontact/2, ExAws.SES.updatecontact/3, ExAws.SES.deletecontact/2 and ExAws.SES.listcontacts/1.
The V2 contact-list and contact functions interpolate the caller-supplied listname into the request path without URI-encoding it, unlike the email address in the same functions which is passed through ExAws.Request.Url.uriencode/1. An application that forwards untrusted input as a contact-list name lets an attacker embed /, .. or ? to escape the intended contact-lists/<name> path segment. A value such as x/../suppression/addresses/victim%40example.com makes a deletecontactlist/1 call arrive at the account-wide suppression list. The request is still signed with the application's own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller's own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected.
This issue affects exawsses: from 2.3.0 before 2.5.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.5.0 - Compensating control
Do not forward untrusted input as a contact-list name; use hardcoded or strictly validated list names that reject path segments such as / and ..
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications are exposed when they pass untrusted input as the SES contact-list name to the affected ExAws.SES contact-list or contact functions. The issue applies to delete_contact_list/1, get_contact_list/1, update_contact_list/2, create_contact/3, get_contact/2, update_contact/3, delete_contact/2, and list_contacts/1.
What does an attacker need to exploit it?
An attacker needs influence over a value used as list_name by one of the affected functions. They can use path characters such as /, .., or ? to alter the requested SES V2 path; the request is then signed using the application's AWS credentials.
What is the likely impact?
The attacker may cause requests to SES resources outside the intended contact-list path, within the same AWS account and permissions available to the application's configured credentials. For example, a crafted list name can make a delete_contact_list/1 request reach an account-wide suppression-list address path.
What can be done if updating is not immediately possible?
Do not forward untrusted values directly as contact-list names. Validate list_name against an application-defined allowlist or strict character set and reject values containing path traversal or query delimiters, including /, .., and ?.