Problem
inbox read prints raw text/HTML directly to the terminal. Attacker-controlled email content can:
- Inject terminal escape sequences (clear screen, move cursor, execute commands in some terminals)
- Inject prompt injection payloads that an AI agent reading the output would follow
Proposal
- Strip/escape ANSI escape codes from text bodies before printing
- Strip HTML tags for human-readable output (or use a text renderer like html2text)
- Add
--raw flag for unfiltered output when needed
- In JSON mode, content is safely escaped by serde — no change needed there
Priority: MEDIUM — security issue for agent inboxes
Problem
inbox readprints raw text/HTML directly to the terminal. Attacker-controlled email content can:Proposal
--rawflag for unfiltered output when neededPriority: MEDIUM — security issue for agent inboxes