CVE-2026-62273: XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging
Published 2026-11-24 · Updated 2026-11-25 · Also known as EEF-CVE-2026-62273, GHSA-979q-5hj9-vvvv
Summary
An XML injection vulnerability exists in the ex_aws_s3 package due to unescaped tag keys and values in object and bucket tagging requests. Engineering teams using affected versions of ex_aws_s3 should upgrade to version 2.6.0.
Who is affected
Applications using ex_aws_s3 that pass user-influenced data as tag keys or values to put_object_tagging/4 or put_bucket_tagging/2 are affected. An attacker who controls part of a tag key or value can inject additional Tag elements into the S3 request, potentially forging tags used for access control and cost allocation.
Exploitability
The vulnerability requires local or low attack complexity with low privileged interaction conditions where user-influenced data reaches the tag functions. EPSS is not yet available, and CISA KEV lists active exploitation as no.
Remediation
- Upgrade the Hex ex_aws_s3 package to version 2.6.0.
- Validate and reject any user-influenced tag key or value containing XML metacharacters (<, >, &, ", ') before passing them to tagging functions if upgrading is not immediately possible.
How to check your project
- Check mix.exs and mix.lock for dependencies on the Hex package ex_aws_s3 with versions introduced at 2.0.2 and before 2.6.0.
- Review codebase for calls to ExAws.S3.put_object_tagging/4 or ExAws.S3.put_bucket_tagging/2 that process user-controlled inputs.
Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hex | ex_aws_s3 |
>= 2.0.2, < 2.6.0 | 2.6.0 | mix deps.update ex_aws_s3 |
CVSS 4.0 vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | None |
| Integrity (vulnerable system) | Low |
| Availability (vulnerable system) | None |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | Low |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What causes the XML injection in ex_aws_s3?
Tag keys and values are interpolated directly into XML elements via to_string/1 without applying the escape_xml_string/1 helper function.
Which functions are vulnerable?
ExAws.S3.put_object_tagging/4 and ExAws.S3.put_bucket_tagging/2 in lib/ex_aws/s3.ex.
What fixed version resolves this vulnerability?
Hex ex_aws_s3 version 2.6.0 resolves the issue.
Original advisory description
References
- ADVISORY https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-979q-5hj9-vvvv
- WEB https://cna.erlef.org/cves/CVE-2026-62273.html
- WEB https://github.com/ex-aws/ex_aws_s3/commit/c6331b84c80f09d24d4a25cf05d8604541ce162e
- FIX https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397
- PACKAGE https://hex.pm/packages/ex_aws_s3
Source records: EEF-CVE-2026-62273 (OSV.dev) · EPSS by FIRST, 2026-11-27.