Duplicate Advisory: knowns vulnerable to command injection
Affects knownsSource GCVE Database
CVSS 7.8 High : upgrade to 0.30.0 soon.
Data as of 6 Oct 2026, 21:43 UTC
- Patch
- Available – fixed in 0.30.0
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HWhat to do
Upgrade knowns to 0.30.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmknowns | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in knowns version 0.30.0 that properly validates the settings.lsp.languages binary field to prevent command injection. Users and administrators should upgrade to version 0.30.0 or later to remediate this vulnerability. No additional mitigations are specified or required beyond applying the official fix.
Description
A command injection vulnerability exists in knowns versions before 0.30.0 due to improper validation of the settings.lsp.languages binary field in project configuration files. This allows attackers to execute arbitrary binaries by crafting a malicious .knowns/config.json file. The malicious binary path is executed twice under the user's account when a repository with the crafted configuration is opened. The vulnerability has a high severity with a CVSS score of 7.8 and has been patched in version 0.30.0.
References
- github.com/knowns-dev/knowns/security/advisories/GHSA-mc52-mwq4-vfx3 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-86540 (opens in a new tab)
- github.com/knowns-dev/knowns/commit/d3989829fb5095666d23d005b2f78a082832a396 (opens in a new tab)
- github.com/knowns-dev/knowns (opens in a new tab)
- github.com/knowns-dev/knowns/blob/v0.29.1/internal/lsp/detect.go (opens in a new tab)
- github.com/knowns-dev/knowns/blob/v0.29.1/internal/models/config.go (opens in a new tab)
- github.com/knowns-dev/knowns/releases/tag/v0.30.0 (opens in a new tab)
- vulncheck.com/advisories/knowns-before-0.30.0-arbitrary-code-execution-via-lsp-binary (opens in a new tab)