{"answers":{"affected":"3 open source packages ship an affected version, including mcp-server-git. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-68143 in the wild and no public exploit code.","fix":"Upgrade mcp-server-git to 2025.9.25 or later.","what":"CVE-2025-68143 is a medium-severity path traversal vulnerability in modelcontextprotocol servers, published on 17 Dec 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-68143 and fix it if it is affected.\n\nWhat it is: CVE-2025-68143 is a medium-severity path traversal vulnerability in modelcontextprotocol servers, published on 17 Dec 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-68143 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mcp-server-git (PyPI): affected all versions; fixed in 2025.9.25\n- mcp-server-git (PyPI): affected all versions; fixed in 2025.9.25\n- mcp-server-git (PyPI): affected all versions; fixed in 2025.9.25\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/CVE-2025-68143/ (Markdown: https://insights.sbomify.com/CVE-2025-68143/index.md)","id":"CVE-2025-68143","markdown":"https://insights.sbomify.com/CVE-2025-68143/index.md","name":"CVE-2025-68143","record":{"aliases":["GHSA-5cgr-j3jf-jw3v","MINI-hc88-pj3p-hg9h","PYSEC-2026-1621"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","other"],"network_reachable":"yes","non_default_config":false,"product_category":"MCP Git server","requires_auth":"none","summary":"Attackers can create Git repositories at arbitrary filesystem locations via the git_init tool, potentially enabling unauthorized access to directories.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"model_context_protocol_servers","vendor":"lfprojects"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Model Context Protocol Servers is a collection of reference implementations for the model context protocol (MCP). In mcp-server-git versions prior to 2025.9.25, the git_init tool accepted arbitrary filesystem paths and created Git repositories without validating the target location. Unlike other tools which required an existing repository, git_init could operate on any directory accessible to the server process, making those directories eligible for subsequent git operations. The tool was removed entirely, as the server is intended to operate on existing repositories only. Users are advised to upgrade to 2025.9.25 or newer to remediate this issue.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"mcp-server-git's unrestricted git_init tool allows repository creation at arbitrary filesystem locations","id":"CVE-2025-68143","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":3,"n_references":2,"next":{"headline":"mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files","id":"CVE-2025-68144"},"packages":[{"ecosystem":"PyPI","fixed":["2025.9.25"],"introduced":["0"],"last_affected":[],"package":"mcp-server-git","purl":null,"source":"GHSA-5cgr-j3jf-jw3v"},{"ecosystem":"PyPI","fixed":["2025.9.25"],"introduced":["0"],"last_affected":[],"package":"mcp-server-git","purl":"pkg:pypi/mcp-server-git","source":"GHSA-5cgr-j3jf-jw3v"},{"ecosystem":"PyPI","fixed":["2025.9.25"],"introduced":["0"],"last_affected":[],"package":"mcp-server-git","purl":"pkg:pypi/mcp-server-git","source":"PYSEC-2026-1621"}],"prev":{"headline":"PyMdown Extensions has ReDOS bug in Figure Capture extension","id":"CVE-2025-68142"},"products":["servers"],"published":"2025-12-17","related":[{"cvss_score":6.4,"headline":"mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries","id":"CVE-2026-27735","kev_date_added":null,"published":"2026-02-25"},{"cvss_score":6.4,"headline":"mcp-server-git has missing path validation when using --repository flag","id":"CVE-2025-68145","kev_date_added":null,"published":"2025-12-17"},{"cvss_score":6.3,"headline":"mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files","id":"CVE-2025-68144","kev_date_added":null,"published":"2025-12-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-12-18","vendors":["modelcontextprotocol"]},"summary":"Attackers can create Git repositories at arbitrary filesystem locations via the git_init tool, potentially enabling unauthorized access to directories.","url":"https://insights.sbomify.com/CVE-2025-68143/"}