{"answers":{"affected":"3 open source packages ship an affected version, including ms-agent.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-2256 exists.","fix":"No fix has been published for CVE-2026-2256 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-2256 is a medium-severity command injection vulnerability in ModelScope ms-agent, published on 2 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-2256 and fix it if it is affected.\n\nWhat it is: CVE-2026-2256 is a medium-severity command injection vulnerability in ModelScope ms-agent, published on 2 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-2256 exists.\n\nAffected packages and fixed versions:\n- ms-agent (PyPI): affected all versions up to 1.6.0rc1; no fix listed\n- ms-agent (PyPI): affected all versions up to 1.6.0rc1; no fix listed\n- ms-agent (PyPI): affected all versions up to 1.6.0rc1; no fix listed\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-2256/ (Markdown: https://insights.sbomify.com/CVE-2026-2256/index.md)","id":"CVE-2026-2256","markdown":"https://insights.sbomify.com/CVE-2026-2256/index.md","name":"CVE-2026-2256","record":{"aliases":["GHSA-4gc2-344q-r2rw","PYSEC-2026-2668"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python AI agent library","requires_auth":"none","summary":"Attackers can execute arbitrary OS commands via crafted prompts in ModelScope's ms-agent library, requiring an upgrade to mitigate.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"certcc","cpe":[],"cvss":{"score":6.5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"A command injection vulnerability in ModelScope's ms-agent versions v1.6.0rc1 and earlier exists, allowing an attacker to execute arbitrary operating system commands through crafted prompt-derived input.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-02-09","github_poc":3,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-02-09T08:40:00Z","kind":"github_poc","ref":"https://github.com/Itamar-Yochpaz/CVE-2026-2256-PoC","stars":2,"title":null},{"date":"2026-06-03T19:43:46Z","kind":"github_poc","ref":"https://github.com/melbratic/CVE-2026-2256-Threat-Model----ms-agent-Command-Injection","stars":0,"title":null},{"date":"2026-06-04T01:27:37Z","kind":"github_poc","ref":"https://github.com/mruniversity/CVE-2026-2256-","stars":0,"title":"CVE-2026-2256  diagram"}],"tier":"weaponised"},"has_fix":false,"headline":"Command injection vulnerability in ModelScope's ms-agent","id":"CVE-2026-2256","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":3,"n_references":4,"next":{"headline":"Cross-site scripting in GetGenie – AI Content Writer with Keyword Research \u0026 SEO Tracking Tools","id":"CVE-2026-2257"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["1.6.0rc1"],"package":"ms-agent","purl":null,"source":"GHSA-4gc2-344q-r2rw"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["1.6.0rc1"],"package":"ms-agent","purl":"pkg:pypi/ms-agent","source":"GHSA-4gc2-344q-r2rw"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["1.6.0rc1"],"package":"ms-agent","purl":"pkg:pypi/ms-agent","source":"PYSEC-2026-2668"}],"prev":{"headline":"Hitachi Vantara Pentaho Data Integration \u0026 Analytics - Insufficiently Protected Credentials","id":"CVE-2026-2255"},"products":["ms-agent"],"published":"2026-03-02","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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-03","vendors":["ModelScope"]},"summary":"Attackers can execute arbitrary OS commands via crafted prompts in ModelScope's ms-agent library, requiring an upgrade to mitigate.","url":"https://insights.sbomify.com/CVE-2026-2256/"}