dkritarth / dkritarth/context-kernel
Bug/DoS: append_journal has no size or count limits
Open
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
src/mcp/tools.ts handleAppendJournal validates note/server are non-empty strings and tags is string array, but no cap on:
- note length
- number of tags / tag length
- server field length
A held write token (or compromised agent) can write unbounded-size entries, inflating KV storage cost and journal:index size indefinitely. Suggest adding sane max lengths (e.g. note <= 10000 chars, tags <= 20 items) enforced in handleAppendJournal before appendJournalEntry is called.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.