External security audit closed. 1 HIGH, 2 MEDIUM, and 1 LOW finding fixed.
Security fixes
- HIGH Prototype pollution via
__proto__keys in breakdown maps (parser.ts). Null-prototype maps now prevent attacker-controlled JSONL from mutatingObject.prototype. - MEDIUM Unbounded
readFileon session JSONL (13 sites across parser, Codex, Copilot, Pi, context-budget, optimize). Newsrc/fs-utils.tshelper caps reads at 128 MB and streams above 8 MB. - MEDIUM SwiftBar directive-separator and ANSI-escape injection via crafted model or category names. Allowlist-based sanitizer now covers every menubar label.
- LOW Silent error swallow on read failures. New
--verboseflag surfaces warnings to stderr.
Added
- Global
--verboseCLI flag - 11 new security tests (total suite: 209)
Credits
Full audit findings closed by @lfl1337 (PR #67). Thanks!
Full changelog: v0.7.0...v0.7.1