CVE-2026-86540: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in knowns-dev knowns
Description
CVE-2026-86540 is a critical arbitrary code execution vulnerability in the Knowns Language Server Protocol (LSP) detection and startup pipeline. It arises because the project-level configuration file (.knowns/config.json) allows an attacker to specify an arbitrary binary path in the 'settings.lsp.languages.<lang>.binary' field without validation. This untrusted binary is executed twice per session: once during a health check and again when the LSP server starts. When combined with a separate config overwrite vulnerability, this flaw enables unauthenticated remote code execution.
CVSS v4.0
Score 8.5high
Affected software
knowns-dev
knowns
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists due to missing validation of the 'binary' field in the LSP language settings within the project configuration file. The 'ProjectSettings.Validate()' function does not validate or restrict this field, allowing absolute paths and arbitrary executables. The LSP detection code blindly executes the specified binary during a version check and again when spawning the LSP server process. This leads to arbitrary code execution when a malicious repository containing a crafted '.knowns/config.json' is opened. The attack can be chained with a config overwrite vulnerability to achieve unauthenticated remote code execution.
Potential Impact
An attacker who can plant or overwrite the '.knowns/config.json' file in a repository can cause the victim's Knowns client to execute arbitrary code on their system twice per session. This can lead to full remote code execution without authentication when combined with the config overwrite vulnerability. The impact is critical as it allows execution of attacker-controlled binaries with the privileges of the user running the Knowns client.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid opening untrusted repositories with Knowns clients and monitor for updates from the vendor. Do not rely on the current configuration validation as it does not prevent this attack.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-07T22:18:47.705Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9f43bfacd9273b497857d8
Added to database: 09/07/2026, 23:07:43 UTC
Last enriched: 10/06/2026, 21:43:02 UTC
Last updated: 10/22/2026, 13:15:24 UTC
Views: 84
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.