CVE-2026-111045: CWE-59: Improper Link Resolution Before File Access ('Link Following') in anshupriyan cli-bridge
Description
CLI Bridge provides filesystem access within a workspace root. Prior to 0.0.2, a dangling symlink pointing outside the workspace root bypasses resolveSafePath when fs.realpathSync throws ENOENT for a nonexistent target. The fallback resolves only the parent directory and returns the symlink path as safe, so write_file follows the link and can write arbitrary files outside the workspace root. This issue is fixed in version 0.0.2.
CVSS v3.1
Score 7.5high
Affected software
anshupriyan
cli-bridge
pkg:github/anshupriyan/cli-bridgeRun 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 vulnerability in anshupriyan cli-bridge versions before 0.0.2 arises from improper handling of dangling symbolic links during filesystem access within a workspace root. When fs.realpathSync throws ENOENT for a nonexistent target, the fallback mechanism only resolves the parent directory and incorrectly treats the symlink path as safe. Consequently, the write_file function follows the symlink and can write files outside the workspace root, leading to potential unauthorized file modification. This flaw is classified under CWE-59 (Improper Link Resolution Before File Access). The issue is resolved in version 0.0.2.
Potential Impact
An attacker can exploit this vulnerability to write arbitrary files outside the workspace root directory, potentially overwriting critical system or application files. This could lead to unauthorized modification of files, impacting system integrity. The CVSS 3.1 score is 7.5 (high severity) with no confidentiality or availability impact but with high integrity impact.
Mitigation Recommendations
Upgrade to anshupriyan cli-bridge version 0.0.2 or later, where this vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-10-15T12:47:13.663Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ad63bfb2cdf04f65667d8a9
Added to database: 10/19/2026, 15:49:15 UTC
Last enriched: 10/19/2026, 16:03:37 UTC
Last updated: 10/19/2026, 19:06:46 UTC
Views: 9
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.