Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

bubbuild/bub
main @ 66f105a
2
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
src/bub/channels/telegram.py: most-fixed (1 issue). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: The chat allowlist is enforced only in _on_text and _on_start; any other Telegram update handler (e.g., callback queries, edited messages, channel posts) that reads update.message.chat_id without the same check would reintroduce unauthorized access.
Prompt Injection: HTML escaping of command name, status, and output prevents forged command tags, but any alternate rendering path (e.g., logging, error messages, or a different output formatter) that concatenates raw command data without escaping would reopen the injection vector.