{"answers":{"affected":"16 open source packages ship an affected version, including org.geotools:gt-wfs-ng and org.geotools:gt-xsd-core.","exploited":"There is no known exploitation of GHSA-826p-4gcg-35vw in the wild and no public exploit code.","fix":"Upgrade org.geotools:gt-wfs-ng to a fixed version for your release line: 28.6.1, 31.7, 32.3 or 33.1.","what":"GHSA-826p-4gcg-35vw is a vulnerability in org.geotools:gt-wfs-ng, published on 9 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-826p-4gcg-35vw and fix it if it is affected.\n\nWhat it is: GHSA-826p-4gcg-35vw is a vulnerability in org.geotools:gt-wfs-ng, published on 9 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-826p-4gcg-35vw in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.geotools:gt-wfs-ng (Maven): affected all versions; fixed in 28.6.1\n- org.geotools:gt-wfs-ng (Maven): affected all versions; fixed in 28.6.1\n- org.geotools:gt-wfs-ng (Maven): affected from 29.0; fixed in 31.7\n- org.geotools:gt-wfs-ng (Maven): affected from 29.0; fixed in 31.7\n- org.geotools:gt-wfs-ng (Maven): affected from 32.0; fixed in 32.3\n- org.geotools:gt-wfs-ng (Maven): affected from 32.0; fixed in 32.3\n- org.geotools:gt-wfs-ng (Maven): affected from 33.0; fixed in 33.1\n- org.geotools:gt-wfs-ng (Maven): affected from 33.0; fixed in 33.1\n- org.geotools:gt-xsd-core (Maven): affected all versions; fixed in 28.6.1\n- org.geotools:gt-xsd-core (Maven): affected all versions; fixed in 28.6.1\n- org.geotools:gt-xsd-core (Maven): affected from 29.0; fixed in 31.7\n- org.geotools:gt-xsd-core (Maven): affected from 29.0; fixed in 31.7\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-826p-4gcg-35vw/ (Markdown: https://insights.sbomify.com/GHSA-826p-4gcg-35vw/index.md)","id":"GHSA-826p-4gcg-35vw","markdown":"https://insights.sbomify.com/GHSA-826p-4gcg-35vw/index.md","name":"GHSA-826p-4gcg-35vw","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Java GIS library","requires_auth":"none","summary":"Attackers can exploit XXE in GeoTools XSD handling to read local files or perform SSRF via crafted XML schemas.","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":"### Summary\n\nGeoTools Schema class use of Eclipse XSD library to represent schema data structure is vulnerable to XML External Entity (XXE) exploit.\n\n### Impact\n\nThis impacts whoever exposes XML processing with ``gt-xsd-core`` involved in parsing, when the documents carry a reference to an external XML schema. The ``gt-xsd-core`` Schemas class is not using the EntityResolver provided by the ParserHandler (if any was configured).\n\nThis also impacts users of ``gt-wfs-ng`` DataStore where the ENTITY_RESOLVER connection parameter was not being used as intended.\n\n### Resolution\n\nGeoTools API change allows EntityResolver to be supplied to the following methods:\n\n```java\nSchemas.parse( location, locators, resolvers, uriHandlers, entityResolver);\nSchemas.findSchemas(Configuration configuration, EntityResolver entityResolver);\n```\n\nWith this API change the `gt-wfs-ng` WFS DataStore ENTITY_RESOLVER parameter is now used.\n\n### Reference\n\n* [GHSA-jj54-8f66-c5pc](https://github.com/geoserver/geoserver/security/advisories/GHSA-jj54-8f66-c5pc): Describes the impact of the ``gt-xsd-core`` vulnerability on the GeoServer WFS protocol, resulting in both Service Side Request Forgery (SSRF) and Out-of-Band (OOB) data exfiltration of local files.\n\n* [GHSA-2p76-gc46-5fvc](https://github.com/geonetwork/core-geonetwork/security/advisories/GHSA-2p76-gc46-5fvc): Describes the impact of the ``gt-wfs-ng`` and ``gt-xsd-core`` vulnerability on the GeoNetwork WFS Index functionality.","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":"GeoTools has XML External Entity (XXE) Processing Vulnerability in XSD schema handling","id":"GHSA-826p-4gcg-35vw","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xxe","year":"2025"},"n_packages":16,"n_references":null,"packages":[{"ecosystem":"Maven","fixed":["28.6.1"],"introduced":["0"],"last_affected":[],"package":"org.geotools:gt-wfs-ng","purl":null,"source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["28.6.1"],"introduced":["0"],"last_affected":[],"package":"org.geotools:gt-wfs-ng","purl":"pkg:maven/org.geotools/gt-wfs-ng","source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["31.7"],"introduced":["29.0"],"last_affected":[],"package":"org.geotools:gt-wfs-ng","purl":null,"source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["31.7"],"introduced":["29.0"],"last_affected":[],"package":"org.geotools:gt-wfs-ng","purl":"pkg:maven/org.geotools/gt-wfs-ng","source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["32.3"],"introduced":["32.0"],"last_affected":[],"package":"org.geotools:gt-wfs-ng","purl":null,"source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["32.3"],"introduced":["32.0"],"last_affected":[],"package":"org.geotools:gt-wfs-ng","purl":"pkg:maven/org.geotools/gt-wfs-ng","source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["33.1"],"introduced":["33.0"],"last_affected":[],"package":"org.geotools:gt-wfs-ng","purl":null,"source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["33.1"],"introduced":["33.0"],"last_affected":[],"package":"org.geotools:gt-wfs-ng","purl":"pkg:maven/org.geotools/gt-wfs-ng","source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["28.6.1"],"introduced":["0"],"last_affected":[],"package":"org.geotools:gt-xsd-core","purl":null,"source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["28.6.1"],"introduced":["0"],"last_affected":[],"package":"org.geotools:gt-xsd-core","purl":"pkg:maven/org.geotools/gt-xsd-core","source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["31.7"],"introduced":["29.0"],"last_affected":[],"package":"org.geotools:gt-xsd-core","purl":null,"source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["31.7"],"introduced":["29.0"],"last_affected":[],"package":"org.geotools:gt-xsd-core","purl":"pkg:maven/org.geotools/gt-xsd-core","source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["32.3"],"introduced":["32.0"],"last_affected":[],"package":"org.geotools:gt-xsd-core","purl":null,"source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["32.3"],"introduced":["32.0"],"last_affected":[],"package":"org.geotools:gt-xsd-core","purl":"pkg:maven/org.geotools/gt-xsd-core","source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["33.1"],"introduced":["33.0"],"last_affected":[],"package":"org.geotools:gt-xsd-core","purl":null,"source":"GHSA-826p-4gcg-35vw"},{"ecosystem":"Maven","fixed":["33.1"],"introduced":["33.0"],"last_affected":[],"package":"org.geotools:gt-xsd-core","purl":"pkg:maven/org.geotools/gt-xsd-core","source":"GHSA-826p-4gcg-35vw"}],"products":null,"published":"2025-06-09","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":"Attackers can exploit XXE in GeoTools XSD handling to read local files or perform SSRF via crafted XML schemas.","url":"https://insights.sbomify.com/GHSA-826p-4gcg-35vw/"}