CVE-2026-131902: XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3
Published 2026-11-24 · Updated 2026-11-25 · Also known as EEF-CVE-2026-131902, GHSA-mwxg-gfj8-x32v
Summary
An XML injection vulnerability in the ExAws S3 library allows an attacker controlling an object version ID to delete arbitrary unintended objects within the same bucket. Maintainers and security teams using the affected Elixir package should review their batch delete implementations and update.
Who is affected
Affected deployments include applications using ExAws S3 versions 2.0.0 through 2.5.x that pass untrusted input representing object version IDs to `ExAws.S3.delete_multiple_objects/3`. If an attacker can supply a crafted version ID containing XML metacharacters, they can break out of the intended XML tags and cause S3 to delete extra objects that the application never listed, including other users' files.
Exploitability
The vulnerability requires local access context with low complexity and a privileged transition, though user interaction is not required. The EPSS score is 0.003 and it is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the Hex ex_aws_s3 package to version 2.6.0 or later.
- Ensure that any input used as an object version ID is properly validated or sanitized before being passed to ExAws.S3.delete_multiple_objects/3.
How to check your project
- Inspect project dependency files (such as mix.lock) to check if the ex_aws_s3 package version falls within the range 2.0.0 to 2.5.x.
- Search application codebase for calls to ExAws.S3.delete_multiple_objects/3 that handle untrusted version ID inputs.
Automated analysis of the published advisory data, generated 2026-11-26. 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.0, < 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:H/VA:H/SC:N/SI:N/SA:N
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | None |
| Integrity (vulnerable system) | High |
| Availability (vulnerable system) | High |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| 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 ExAws S3?
The vulnerability occurs because `ExAws.S3.delete_multiple_objects/3` escapes object keys but interpolates object version IDs raw without XML escaping, allowing structural XML elements to be injected.
Which versions of ex_aws_s3 are affected?
The issue affects ex_aws_s3 versions introduced in 2.0.0 and fixed in 2.6.0.
Is this vulnerability actively exploited in the wild?
No, CISA Known Exploited Vulnerabilities status is no.
Original advisory description
References
- ADVISORY https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-mwxg-gfj8-x32v
- WEB https://cna.erlef.org/cves/CVE-2026-131902.html
- WEB https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75
- FIX https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397
- PACKAGE https://hex.pm/packages/ex_aws_s3
Source records: EEF-CVE-2026-131902 (OSV.dev) · EPSS by FIRST, 2026-11-27.