{"answers":{"affected":"2 open source packages ship an affected version, including ChatterBot and chatterbot.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58198 exists.","fix":"Upgrade ChatterBot to 1.2.14 or later.","what":"CVE-2026-58198 is a medium-severity path traversal vulnerability in gunthercox ChatterBot, published on 9 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-58198 and fix it if it is affected.\n\nWhat it is: CVE-2026-58198 is a medium-severity path traversal vulnerability in gunthercox ChatterBot, published on 9 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58198 exists.\n\nAffected packages and fixed versions:\n- ChatterBot (PyPI): affected all versions; fixed in 1.2.14\n- chatterbot (PyPI): affected all versions; fixed in 1.2.14\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-2026-58198/ (Markdown: https://insights.sbomify.com/CVE-2026-58198/index.md)","id":"CVE-2026-58198","markdown":"https://insights.sbomify.com/CVE-2026-58198/index.md","name":"CVE-2026-58198","record":{"aliases":["GHSA-wvrh-2f4m-924v"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python chatbot library","requires_auth":"low_privilege","summary":"A local attacker can exploit a symlink race condition in UbuntuCorpusTrainer to write arbitrary files to attacker-chosen directories.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"description":"ChatterBot is a machine learning, conversational dialog engine for creating chat bots. Prior to 1.2.14, UbuntuCorpusTrainer.extract() uses a predictable home-rooted output directory (~/ubuntu_data/ubuntu_dialogs) with a check-then-create pattern followed by tar.extractall(path=self.data_path), allowing a local attacker who pre-plants a symlink at the predictable path to cause archive contents to be written through the symlink to an attacker-chosen directory. This issue is fixed in version 1.2.14.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"ChatterBot: Symlink-Following Arbitrary Write via UbuntuCorpusTrainer","id":"CVE-2026-58198","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"@jhb.software/payload-cloudinary-plugin: Arbitrary Cloudinary API Parameter Signing","id":"CVE-2026-58200"},"packages":[{"ecosystem":"PyPI","fixed":["1.2.14"],"introduced":["0"],"last_affected":[],"package":"ChatterBot","purl":null,"source":"GHSA-wvrh-2f4m-924v"},{"ecosystem":"PyPI","fixed":["1.2.14"],"introduced":["0"],"last_affected":[],"package":"chatterbot","purl":"pkg:pypi/chatterbot","source":"GHSA-wvrh-2f4m-924v"}],"prev":{"headline":"ToolHive: containerized MCP servers can reach host services via host.docker.internal, enabling lateral movement","id":"CVE-2026-58197"},"products":["ChatterBot"],"published":"2026-07-09","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-09","vendors":["gunthercox"]},"summary":"A local attacker can exploit a symlink race condition in UbuntuCorpusTrainer to write arbitrary files to attacker-chosen directories.","url":"https://insights.sbomify.com/CVE-2026-58198/"}