Vulnerabilities in pkg:npm/@kilocode/cli

PACKAGE
Advisory Identifier: GHSA-rpc6-9c4p-j5cg
Advisory Summary

CVE-2026-8766 is a LOW (CVSS 4.3) @kilocode/cli vulnerable to exposure of vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting @kilocode/cli libraries in the npm ecosystem. The issue involves @kilocode/cli vulnerable to exposure of sensitive information to an unauthorized actor. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@kilocode/cli

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@kilocode/cli. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-rpc6-9c4p-j5cg CVE-2026-8766 LOW @kilocode/cli Vulnerable to Exposure of Sensitive Information to an Unauthorized Actor

CVE-2026-8766 at a Glance

CVE Identifier CVE-2026-8766
GHSA Identifier GHSA-rpc6-9c4p-j5cg
Severity LOW
CVSS v3.1 Base Score 4.3
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product @kilocode/cli
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-8766

To remediate this vulnerability, upgrade all affected @kilocode/cli dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@kilocode/cli fixed: Latest secure release
npm install @kilocode/cli@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @kilocode/cli

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-8766, inspect your project dependencies using npm:

npm ls @kilocode/cli

Analyze the terminal output to locate any version of @kilocode/cli in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls @kilocode/cli command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In @kilocode/cli, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A flaw has been found in Kilo-Org kilocode up to 7.0.47. This issue affects the function Load of the file packages/opencode/src/config/config.ts of the component Environment Variable Handler. Executing a manipulation of the argument KILO_CONFIG_CONTENT can lead to information disclosure. It is possible to launch the attack remotely. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

CVE-2026-8766 Affected @kilocode/cli Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
@kilocode/cli
npm
≤ 7.0.47

References

Frequently Asked Questions

What is CVE-2026-8766?
CVE-2026-8766 is a security vulnerability in @kilocode/cli involving @kilocode/cli Vulnerable to Exposure of Sensitive Information to an Unauthorized Actor under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which @kilocode/cli versions are affected?
Affected versions include releases prior to current release patches across affected packages: @kilocode/cli.
What version fixes CVE-2026-8766?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is @kilocode/cli affected?
Yes, @kilocode/cli is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-8766?
CVE-2026-8766 has a CVSS v3.1 base score of 4.3 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-8766?
CVE-2026-8766 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check npm dependencies for CVE-2026-8766?
Run the dependency tree command: 'npm ls @kilocode/cli'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rpc6-9c4p-j5cg",
  "modified" : "2026-05-28T20:05:02Z",
  "published" : "2026-05-18T00:31:36Z",
  "aliases" : [ "CVE-2026-8766" ],
  "summary" : "@kilocode/cli Vulnerable to Exposure of Sensitive Information to an Unauthorized Actor",
  "details" : "A flaw has been found in Kilo-Org kilocode up to 7.0.47. This issue affects the function Load of the file packages/opencode/src/config/config.ts of the component Environment Variable Handler. Executing a manipulation of the argument KILO_CONFIG_CONTENT can lead to information disclosure. It is possible to launch the attack remotely. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@kilocode/cli"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "7.0.47"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-8766"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/YLChen-007/32b444e49ced1a46bde5a68933ccd09f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Kilo-Org/kilocode"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/submit/811400"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/364391"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/364391/cti"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-28T20:05:02Z",
    "nvd_published_at" : "2026-05-17T23:17:02Z"
  }
}