{"answers":{"affected":"8 open source packages ship an affected version, including org.eclipse.jetty:jetty-xml.","exploited":"There is no known exploitation of GHSA-58qw-p7qm-5rvh in the wild and no public exploit code.","fix":"Upgrade org.eclipse.jetty:jetty-xml to a fixed version for your release line: 9.4.52.v20230823, 10.0.16, 11.0.16 or 12.0.0.","what":"GHSA-58qw-p7qm-5rvh is a vulnerability in org.eclipse.jetty:jetty-xml, published on 10 Jul 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-58qw-p7qm-5rvh and fix it if it is affected.\n\nWhat it is: GHSA-58qw-p7qm-5rvh is a vulnerability in org.eclipse.jetty:jetty-xml, published on 10 Jul 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-58qw-p7qm-5rvh in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.eclipse.jetty:jetty-xml (Maven): affected all versions; fixed in 9.4.52.v20230823\n- org.eclipse.jetty:jetty-xml (Maven): affected all versions; fixed in 9.4.52.v20230823\n- org.eclipse.jetty:jetty-xml (Maven): affected from 10.0.0-alpha0; fixed in 10.0.16\n- org.eclipse.jetty:jetty-xml (Maven): affected from 10.0.0-alpha0; fixed in 10.0.16\n- org.eclipse.jetty:jetty-xml (Maven): affected from 11.0.0-alpha0; fixed in 11.0.16\n- org.eclipse.jetty:jetty-xml (Maven): affected from 11.0.0-alpha0; fixed in 11.0.16\n- org.eclipse.jetty:jetty-xml (Maven): affected from 12.0.0.alpha0; fixed in 12.0.0\n- org.eclipse.jetty:jetty-xml (Maven): affected from 12.0.0.alpha0; fixed in 12.0.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-58qw-p7qm-5rvh/ (Markdown: https://insights.sbomify.com/GHSA-58qw-p7qm-5rvh/index.md)","id":"GHSA-58qw-p7qm-5rvh","markdown":"https://insights.sbomify.com/GHSA-58qw-p7qm-5rvh/index.md","name":"GHSA-58qw-p7qm-5rvh","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Java web server library","requires_auth":"high_privilege","summary":"Developers using Jetty's XmlParser for untrusted input face XXE risks, allowing denial of service or local file disclosure.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### From the reporter\n\n\u003e `XmlParser` is vulnerable to XML external entity (XXE) vulnerability.\n\u003e  XmlParser is being used when parsing Jetty’s xml configuration files. An attacker might exploit\n\u003e this vulnerability in order to achieve SSRF or cause a denial of service.\n\u003e One possible scenario is importing a (remote) malicious WAR into a Jetty’s server, while the\n\u003e 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.","ecosystems":["Maven"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Eclipse Jetty XmlParser allows arbitrary DOCTYPE declarations","id":"GHSA-58qw-p7qm-5rvh","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2023"},"n_packages":8,"n_references":null,"packages":[{"ecosystem":"Maven","fixed":["9.4.52.v20230823"],"introduced":["0"],"last_affected":[],"package":"org.eclipse.jetty:jetty-xml","purl":null,"source":"GHSA-58qw-p7qm-5rvh"},{"ecosystem":"Maven","fixed":["9.4.52.v20230823"],"introduced":["0"],"last_affected":[],"package":"org.eclipse.jetty:jetty-xml","purl":"pkg:maven/org.eclipse.jetty/jetty-xml","source":"GHSA-58qw-p7qm-5rvh"},{"ecosystem":"Maven","fixed":["10.0.16"],"introduced":["10.0.0-alpha0"],"last_affected":[],"package":"org.eclipse.jetty:jetty-xml","purl":null,"source":"GHSA-58qw-p7qm-5rvh"},{"ecosystem":"Maven","fixed":["10.0.16"],"introduced":["10.0.0-alpha0"],"last_affected":[],"package":"org.eclipse.jetty:jetty-xml","purl":"pkg:maven/org.eclipse.jetty/jetty-xml","source":"GHSA-58qw-p7qm-5rvh"},{"ecosystem":"Maven","fixed":["11.0.16"],"introduced":["11.0.0-alpha0"],"last_affected":[],"package":"org.eclipse.jetty:jetty-xml","purl":null,"source":"GHSA-58qw-p7qm-5rvh"},{"ecosystem":"Maven","fixed":["11.0.16"],"introduced":["11.0.0-alpha0"],"last_affected":[],"package":"org.eclipse.jetty:jetty-xml","purl":"pkg:maven/org.eclipse.jetty/jetty-xml","source":"GHSA-58qw-p7qm-5rvh"},{"ecosystem":"Maven","fixed":["12.0.0"],"introduced":["12.0.0.alpha0"],"last_affected":[],"package":"org.eclipse.jetty:jetty-xml","purl":null,"source":"GHSA-58qw-p7qm-5rvh"},{"ecosystem":"Maven","fixed":["12.0.0"],"introduced":["12.0.0.alpha0"],"last_affected":[],"package":"org.eclipse.jetty:jetty-xml","purl":"pkg:maven/org.eclipse.jetty/jetty-xml","source":"GHSA-58qw-p7qm-5rvh"}],"products":null,"published":"2023-07-10","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Developers using Jetty's XmlParser for untrusted input face XXE risks, allowing denial of service or local file disclosure.","url":"https://insights.sbomify.com/GHSA-58qw-p7qm-5rvh/"}