CVE-2026-131902
XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3
- Severity
- medium CVSS 5.9 (v4.0)
- Affects
- ex_aws_s3 · ex-aws
- Weakness
- CWE-91 XML Injection
- Published
- 24 November 2026 by EEF
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.