CVE-2026-86541: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in knowns-dev knowns
Description
knowns versions before 0.30.0 contain a path traversal vulnerability in the handleCodeReplace() function that allows attackers to overwrite arbitrary files outside the project root. Attackers can supply absolute paths or relative paths containing directory traversal sequences to write malicious content to sensitive files like shell startup scripts or SSH configuration files.
CVSS v4.0
Score 7.2high
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
CVE-2026-86541 describes a path traversal vulnerability in knowns-dev's knowns product affecting versions prior to 0.30.0. The vulnerability exists in the handleCodeReplace() function, which improperly limits pathname access, enabling attackers to write files outside the intended project directory. This can be exploited by providing absolute paths or relative paths containing directory traversal sequences, potentially allowing overwriting of critical system files.
Potential Impact
An attacker can overwrite arbitrary files outside the project root directory, including sensitive system files like shell startup scripts and SSH configuration files. This could lead to unauthorized code execution or persistent access if malicious content is injected into these files. The vulnerability is remotely exploitable without privileges and requires user interaction.
Mitigation Recommendations
No explicit patch or remediation details are provided in the input data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid running vulnerable versions or restrict access to the vulnerable functionality if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-07T22:18:48.043Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9f43bfacd9273b497857da
Added to database: 09/07/2026, 23:07:43 UTC
Last enriched: 09/25/2026, 02:48:23 UTC
Last updated: 10/23/2026, 01:15:27 UTC
Views: 83
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.