CVE-2026-131902
XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3
- CVSS
- 5.9
- EPSS
- 0.47% (p33)
- Published
- 2026-11-24
- Age
- 5d old
- Modified
- 2026-11-25
- Product
- ex-aws ex_aws_s3
- Aliases
- EEF-CVE-2026-131902, GHSA-mwxg-gfj8-x32v
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
Description
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.
Fixed in
2.6.0 · eda0b9b9c63707f7db8d8f18c331df7fda57c397
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Hex | ex_aws_s3 | >=2.0.0, <2.6.0 | 2.6.0 |
| unknown | ex-aws/ex_aws_s3 | >=4ce4d72219c0cb8de9356278203d8ea780311b75, <eda0b9b9c63707f7db8d8f18c331df7fda57c397 | eda0b9b9c63707f7db8d8f18c331df7fda57c397 |
| unknown | ex_aws_s3 | >=2.0.0, <2.6.0 | 2.6.0 |
Sources
- NVD · first seen 5d ago · NVD terms of use
- OSV · first seen 5d ago · CC-BY 4.0
- CVE List · first seen 5d ago · CVE Terms of Use
References
- https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-mwxg-gfj8-x32v vendor-advisory
- https://cna.erlef.org/cves/CVE-2026-131902.html related
- https://osv.dev/vulnerability/EEF-CVE-2026-131902 related
- https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75 related
- https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397 patch
- https://hex.pm/packages/ex_aws_s3 package
- https://github.com web
- https://repo.hex.pm web
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/131xxx/CVE-2026-131902.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-131902 advisory
- https://github.com/ex-aws/ex_aws_s3 package