External Entity Reference in TwelveMonkeys ImageIOGHSA-pjch-4g28-fxx7
CRITICALFix: haraldk/TwelveMonkeys@da4efe9GHSA-pjch-4g28-fxx7 is a critical-severity (CVSS 9.8) XML External Entity (XXE) vulnerability in com.twelvemonkeys.imageio:imageio-metadata. A fix is available for com.twelvemonkeys.imageio:imageio-metadata — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
com.twelvemonkeys.imageio:imageio-metadataReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
The package com.twelvemonkeys.imageio:imageio-metadata before version 3.7.1 is vulnerable to XML External Entity (XXE) Injection due to an insecurely initialized XML parser for reading XMP Metadata. An attacker can exploit this vulnerability if they are able to supply a file (e.g. when an online profile picture is processed) with a malicious XMP segment. If the XMP metadata of the uploaded image is parsed, then the XXE vulnerability is triggered.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | com.twelvemonkeys.imageio:imageio-metadata | all versions | 3.7.1com.twelvemonkeys.imageio:imageio-metadata:3.7.1 |
Affected Products
twelvemonkeystwelvemonkeys_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.twelvemonkeys.imageio:imageio-metadata, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update com.twelvemonkeys.imageio:imageio-metadata to 3.7.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-pjch-4g28-fxx7 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-pjch-4g28-fxx7 in your dependencies?
Find it across Maven, including transitive dependencies.