CVE-2026-138205
Deferred Deferred - Pending Action

Improper Authorization in shareAI-lab Kode-CLI

Vulnerability report for CVE-2026-138205, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-29

Last updated on: 2026-11-29

Assigner: VulDB

Description

A security vulnerability has been detected in shareAI-lab Kode-CLI up to 2.2.1. This affects the function readSettingsFile of the file packages/config/src/files.ts of the component Permission Settings Loader. The manipulation leads to improper authorization. The attack must be carried out locally. The exploit has been disclosed publicly and may be used. The identifier of the patch is 2b8a532ce9a7d4ca287306eceed446373fb79002. It is suggested to install a patch to address this issue.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-29
Last Modified
2026-11-29
Generated
2026-11-29
AI Q&A
2026-11-29
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
shareAI-lab Kode-CLI 2.2.0
shareAI-lab Kode-CLI 2.2.1

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-285 The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.
CWE-266 A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects shareAI-lab Kode-CLI up to version 2.2.1. It involves improper authorization due to the function readSettingsFile in packages/config/src/files.ts failing to enforce permission rules when the settings.json file cannot be read. This causes the system to drop deny/ask permissions silently, allowing unauthorized writes to protected paths without user prompts.

Detection Guidance

To detect this vulnerability, check if Kode-CLI versions up to 2.2.1 are installed. Verify if the settings.json file is readable and properly formatted. Look for unauthorized writes to protected paths without prompts. Check logs for errors during settings file loading.

Impact Analysis

The vulnerability allows unauthorized writes to sensitive files like .env or .npmrc without user approval, especially in unattended deployments such as CI jobs. It bypasses permission checks, potentially leading to data breaches or system compromise. The attack requires local access but can be exploited silently with no visible errors.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating compliance requirements for data protection (e.g., GDPR, HIPAA). It undermines access control and audit mechanisms, increasing the risk of regulatory penalties due to compromised sensitive data.

Mitigation Strategies

Immediately update Kode-CLI to the patched version using the commit 2b8a532ce9a7d4ca287306eceed446373fb79002. Ensure settings.json is readable and valid. Enable safe mode to enforce manual approvals for critical tasks. Monitor for unauthorized file writes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138205. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...