{"answers":{"affected":"2 open source packages ship an affected version, including robrichards/xmlseclibs.","exploited":"There is no known exploitation of GHSA-2g98-f9jv-w8c5 in the wild and no public exploit code.","fix":"Upgrade robrichards/xmlseclibs to 3.0.2 or later.","what":"GHSA-2g98-f9jv-w8c5 is a vulnerability in robrichards/xmlseclibs, published on 20 May 2024. It can be exploited over the network."},"fix_prompt":"Check this codebase for GHSA-2g98-f9jv-w8c5 and fix it if it is affected.\n\nWhat it is: GHSA-2g98-f9jv-w8c5 is a vulnerability in robrichards/xmlseclibs, published on 20 May 2024. It can be exploited over the network.\nExploitation: There is no known exploitation of GHSA-2g98-f9jv-w8c5 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- robrichards/xmlseclibs (Packagist): affected from 1.0.0; fixed in 3.0.2\n- robrichards/xmlseclibs (Packagist): affected from 1.0.0; fixed in 3.0.2\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-2g98-f9jv-w8c5/ (Markdown: https://insights.sbomify.com/GHSA-2g98-f9jv-w8c5/index.md)","id":"GHSA-2g98-f9jv-w8c5","markdown":"https://insights.sbomify.com/GHSA-2g98-f9jv-w8c5/index.md","name":"GHSA-2g98-f9jv-w8c5","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","other"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP XML Security Library","requires_auth":"unknown","summary":"An attacker can inject malicious XPath expressions into the xmlseclibs library due to insufficient input filtering, potentially accessing unauthorized data.","user_interaction":"unknown","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"A vulnerability has been identified in the robrichards/xmlseclibs library, specifically related to XPath injection. The issue arises from inadequate filtering of user input before it is incorporated into XPath expressions.","ecosystems":["Packagist"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"robrichards/xmlseclibs XPath injection","id":"GHSA-2g98-f9jv-w8c5","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"other","year":"2024"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"Packagist","fixed":["3.0.2"],"introduced":["1.0.0"],"last_affected":[],"package":"robrichards/xmlseclibs","purl":null,"source":"GHSA-2g98-f9jv-w8c5"},{"ecosystem":"Packagist","fixed":["3.0.2"],"introduced":["1.0.0"],"last_affected":[],"package":"robrichards/xmlseclibs","purl":"pkg:composer/robrichards/xmlseclibs","source":"GHSA-2g98-f9jv-w8c5"}],"products":null,"published":"2024-05-20","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":"An attacker can inject malicious XPath expressions into the xmlseclibs library due to insufficient input filtering, potentially accessing unauthorized data.","url":"https://insights.sbomify.com/GHSA-2g98-f9jv-w8c5/"}