CVE-2026-86542: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in knowns-dev knowns
Description
knowns before 0.30.0 fails to validate import names in the import routes, allowing unauthenticated attackers to write files outside the imports directory. Attackers can supply traversal sequences in the name parameter to escape the imports directory and overwrite arbitrary files writable by the server process.
CVSS v4.0
Score 8.8high
Affected software
knowns-dev
knowns
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The knowns-dev knowns software prior to version 0.30.0 contains an improper limitation of a pathname to a restricted directory vulnerability (CWE-22). Specifically, the import routes do not validate the 'name' parameter correctly, enabling unauthenticated attackers to supply path traversal sequences to escape the imports directory. This allows attackers to write arbitrary files outside the imports directory, potentially overwriting files writable by the server process.
Potential Impact
Successful exploitation allows unauthenticated attackers to write arbitrary files outside the intended imports directory, potentially overwriting critical files writable by the server process. This can lead to significant security risks including code execution or system compromise depending on the files overwritten.
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, restrict file system permissions to limit writable files by the server process and monitor for suspicious file modifications related to import routes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-09-07T22:18:52.898Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9f43bfacd9273b497857dc
Added to database: 09/07/2026, 23:07:43 UTC
Last enriched: 09/25/2026, 02:48:31 UTC
Last updated: 10/22/2026, 01:15:26 UTC
Views: 90
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.