Vulnerabilities in pkg:maven/org.eclipse.jetty/jetty-xml
PACKAGEGHSA-58qw-p7qm-5rvh is a LOW (CVSS 3.9) eclipse jetty xmlparser allows arbitrary vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Jetty xml libraries in the Maven ecosystem. The issue involves eclipse jetty xmlparser allows arbitrary doctype declarations. Remediation is available by upgrading affected packages to version 10.0.16, 11.0.16, 12.0.0, 9.4.52.v20230823.
pkg:maven/org.eclipse.jetty/jetty-xml
Vulnerability advisories affecting package pkg:maven/org.eclipse.jetty/jetty-xml. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-58qw-p7qm-5rvh | - | LOW | Eclipse Jetty XmlParser allows arbitrary DOCTYPE declarations |
GHSA-58qw-p7qm-5rvh at a Glance
Security Impact
CVSS: 3.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L).
How to Fix GHSA-58qw-p7qm-5rvh
To remediate this vulnerability, upgrade all affected Jetty xml dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-xml</artifactId>
<version>10.0.16</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-xml</artifactId>
<version>11.0.16</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-xml</artifactId>
<version>12.0.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-xml</artifactId>
<version>9.4.52.v20230823</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.eclipse.jetty
How to Check if You Are Affected
To determine whether your Java application is affected by GHSA-58qw-p7qm-5rvh, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.eclipse.jetty
Analyze the terminal output to locate any version of Jetty xml in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 10.0.16), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.eclipse.jetty command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Jetty xml, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-58qw-p7qm-5rvh Affected Jetty xml Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.eclipse.jetty:jetty-xml
|
Maven |
≥ 10.0.0-alpha0
< 10.0.16
|
10.0.16
|
|
org.eclipse.jetty:jetty-xml
|
Maven |
≥ 11.0.0-alpha0
< 11.0.16
|
11.0.16
|
|
org.eclipse.jetty:jetty-xml
|
Maven |
≥ 12.0.0.alpha0
< 12.0.0
|
12.0.0
|
|
org.eclipse.jetty:jetty-xml
|
Maven |
< 9.4.52.v20230823
|
9.4.52.v20230823
|
References
Frequently Asked Questions
What is GHSA-58qw-p7qm-5rvh?
Which Jetty xml versions are affected?
What version fixes GHSA-58qw-p7qm-5rvh?
Is jetty-xml affected?
What is the CVSS score of GHSA-58qw-p7qm-5rvh?
What CWE is associated with GHSA-58qw-p7qm-5rvh?
How can I check Maven dependencies for GHSA-58qw-p7qm-5rvh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-58qw-p7qm-5rvh",
"modified" : "2026-02-10T20:06:17Z",
"published" : "2023-07-10T21:52:39Z",
"aliases" : [ ],
"summary" : "Eclipse Jetty XmlParser allows arbitrary DOCTYPE declarations",
"details" : "### From the reporter\n\n> `XmlParser` is vulnerable to XML external entity (XXE) vulnerability.\n> XmlParser is being used when parsing Jetty’s xml configuration files. An attacker might exploit\n> this vulnerability in order to achieve SSRF or cause a denial of service.\n> One possible scenario is importing a (remote) malicious WAR into a Jetty’s server, while the\n> WAR includes a malicious web.xml.\n\n### Impact\nThere are no circumstances in a normally deployed Jetty server where potentially hostile XML is given to the XmlParser class without the attacker already having arbitrary access to the server. I.e. in order to exploit `XmlParser` the attacker would already have the ability to deploy and execute hostile code. Specifically, Jetty has no protection against malicious web application and potentially hostile web applications should only be run on an isolated virtualisation. \n\nThus this is not considered a vulnerability of the Jetty server itself, as any such usage of the jetty XmlParser is equally vulnerable as a direct usage of the JVM supplied SAX parser. No CVE will be allocated to this advisory.\n\nHowever, any direct usage of the `XmlParser` class by an application may be vulnerable. The impact would greatly depend on how the application uses `XmlParser`, but it could be a denial of service due to large entity expansion, or possibly the revealing local files if the XML results are accessible remotely.\n\n### Patches\nAbility to configure the SAXParserFactory to fit the needs of your particular XML parser implementation have been merged as part of PR #10067\n\n### Workarounds\nDon't use Jetty's `XmlParser` to parse data from users.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.eclipse.jetty:jetty-xml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.0.0-alpha0"
}, {
"fixed" : "10.0.16"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 10.0.15"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.eclipse.jetty:jetty-xml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.0.0-alpha0"
}, {
"fixed" : "11.0.16"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 11.0.15"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.eclipse.jetty:jetty-xml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.0.0.alpha0"
}, {
"fixed" : "12.0.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 12.0.0.beta4"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.eclipse.jetty:jetty-xml"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.4.52.v20230823"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 9.4.51"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/eclipse/jetty.project/security/advisories/GHSA-58qw-p7qm-5rvh"
}, {
"type" : "WEB",
"url" : "https://github.com/jetty/jetty.project/security/advisories/GHSA-58qw-p7qm-5rvh"
}, {
"type" : "WEB",
"url" : "https://github.com/eclipse/jetty.project/pull/10067"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/eclipse/jetty.project"
}, {
"type" : "WEB",
"url" : "https://github.com/eclipse/jetty.project/releases/tag/jetty-10.0.16"
}, {
"type" : "WEB",
"url" : "https://github.com/eclipse/jetty.project/releases/tag/jetty-11.0.16"
}, {
"type" : "WEB",
"url" : "https://github.com/eclipse/jetty.project/releases/tag/jetty-12.0.0"
}, {
"type" : "WEB",
"url" : "https://github.com/eclipse/jetty.project/releases/tag/jetty-9.4.52.v20230823"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-10T21:52:39Z",
"nvd_published_at" : null
}
}