Security context

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

0xPolygon/cometbft
develop @ 218634e
168
Fixes
0
CVEs
CRITICAL
Peak severity
60.0%
Coverage
Highlights
Denial of Service: 50 prior fixes. Scrutinize any change in this area.
state/execution.go: most-fixed (15 issues). Treat as high-risk during review.
112 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.

Consensus Verification Bypass: Multiple fixes replaced light commit verification with full verification to prevent acceptance of invalid blocks; a regression to light verification or incomplete signature checks would allow forged commits.
Authentication Bypass: Fixes ensure all signatures are verified in commits and that signatures for wrong block IDs are excluded; partial verification or incorrect block ID handling could allow invalid commits to pass.
Denial of Service: Oversized proposals, bit arrays, and malicious peer height reports can cause resource exhaustion or stalls; missing size/bounds checks on any path would enable DoS.