{"answers":{"affected":"2 open source packages ship an affected version, including knowns.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-86540 exists.","fix":"Upgrade knowns to 0.30.0 or later.","what":"CVE-2026-86540 is a high-severity command injection vulnerability in knowns-dev knowns, published on 7 Sep 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-86540 and fix it if it is affected.\n\nWhat it is: CVE-2026-86540 is a high-severity command injection vulnerability in knowns-dev knowns, published on 7 Sep 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-86540 exists.\n\nAffected packages and fixed versions:\n- knowns (npm): affected all versions; fixed in 0.30.0\n- knowns (npm): affected all versions; fixed in 0.30.0\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-86540/ (Markdown: https://insights.sbomify.com/CVE-2026-86540/index.md)","id":"CVE-2026-86540","markdown":"https://insights.sbomify.com/CVE-2026-86540/index.md","name":"CVE-2026-86540","record":{"aliases":["GHSA-mc52-mwq4-vfx3"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"knowns CLI tool","requires_auth":"none","summary":"Attackers can execute arbitrary code by tricking users into opening a malicious project configuration file in the knowns tool.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":8.5,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"knowns versions before 0.30.0 fail to validate the settings.lsp.languages binary field in project configuration files, allowing attackers to execute arbitrary binaries by crafting a malicious .knowns/config.json file. When a repository with a crafted configuration is opened, the unvalidated binary path is executed twice under the user's account without any verification.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"knowns before 0.30.0 Arbitrary Code Execution via LSP Binary","id":"CVE-2026-86540","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":6,"next":{"headline":"knowns before 0.30.0 Path Traversal via code.replace MCP action","id":"CVE-2026-86541"},"packages":[{"ecosystem":"npm","fixed":["0.30.0"],"introduced":["0"],"last_affected":[],"package":"knowns","purl":null,"source":"GHSA-mc52-mwq4-vfx3"},{"ecosystem":"npm","fixed":["0.30.0"],"introduced":["0"],"last_affected":[],"package":"knowns","purl":"pkg:npm/knowns","source":"GHSA-mc52-mwq4-vfx3"}],"prev":{"headline":"knowns through 0.33.0 Server-Side Request Forgery via embedding-models endpoint","id":"CVE-2026-86539"},"products":["knowns"],"published":"2026-09-07","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":"total"},"state":"PUBLISHED","updated":"2026-09-24","vendors":["knowns-dev"]},"summary":"Attackers can execute arbitrary code by tricking users into opening a malicious project configuration file in the knowns tool.","url":"https://insights.sbomify.com/CVE-2026-86540/"}