SEVERITY NOT PROVIDED · CVSS 4.0 EPSS 0.5% · 33th percentile CWE-91

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-26. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorLocal
Attack complexityLow
Attack requirementsPresent
Privileges requiredNone
User interactionNone
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
## Summary XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to `ExAws.S3.delete_multiple_objects/3` to add objects to the batch delete. `delete_multiple_objects/3` in `lib/ex_aws/s3.ex` builds the `<Delete>` request body by placing each object's `version` between `<VersionId>` tags without XML escaping. A version such as `v1</VersionId></Object><Object><Key>important-file</Key></Object><Object><Key>x</Key><VersionId>v2` closes the caller's object and opens new ones, so S3 deletes objects the application never listed, including other users' objects in the same bucket. This issue affects ex_aws_s3: from 2.0.0 before 2.6.0. ## Details **1. Selective escaping.** When `delete_multiple_objects/3` in `lib/ex_aws/s3.ex` builds the `<Delete>` body, it escapes each object's key with `escape_xml_string/1` but emits the version from the same tuple raw: `"<VersionId>", version, "</VersionId>"`. **2. Element break-out.** XML metacharacters in `version` are read as markup. A value beginning `</VersionId></Object>` closes the current object early, and the rest of the string can open further `<Object>...</Object>` elements while keeping the document well-formed. **3. Extra deletes.** The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket. ## Proof of concept 1. An application lets a user delete a version of their own object and calls `ExAws.S3.delete_multiple_objects("user-bucket", [{key, version}])` with the user's `key` and `version`. 2. The attacker sends the key `my-own-file` and the version `v1</VersionId></Object><Object><Key>important-file</Key></Object><Object><Key>x</Key><VersionId>v2`. 3. `delete_multiple_objects/3` interpolates the version unescaped into the `<Delete>` body. 4. The body contains three `<Object>` entries, one of them `important-file`, which S3 deletes although the user never named it. ## Impact An attacker who controls a version id passed to `delete_multiple_objects/3` can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected. ## Configurations Reachable only when the application passes a version id derived, even partially, from untrusted input to `ExAws.S3.delete_multiple_objects/3`, for example a service that lets users delete a specific object version by id.

References

Source records: EEF-CVE-2026-131902 (OSV.dev) · EPSS by FIRST, 2026-11-27.