CVE-2017-12621 — commons-jelly
CRITICALCVE-2017-12621 is a critical-severity (CVSS 9.8) XML External Entity (XXE) vulnerability in commons-jelly:commons-jelly. A fix is available for commons-jelly:commons-jelly — see the affected versions and patch details below.
Improper Restriction of XML External Entity Reference in Jelly
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
commons-jelly:commons-jellyReal-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
During Jelly (xml) file parsing with Apache Xerces, if a custom doctype entity is declared with a "SYSTEM" entity with a URL and that entity is used in the body of the Jelly file, during parser instantiation the parser will attempt to connect to said URL. This could lead to XML External Entity (XXE) attacks in Apache Commons Jelly before 1.0.1.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | commons-jelly:commons-jelly | all versions | 1.0.1commons-jelly:commons-jelly:1.0.1 |
Affected Products
commons jellyapacheDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for commons-jelly:commons-jelly, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update commons-jelly:commons-jelly to 1.0.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2017-12621 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 CVE-2017-12621 in your dependencies?
Find it across Maven, including transitive dependencies.