Security context

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

GitbookIO/gitbook
main @ db67585
17
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
packages/gitbook/src/app/(global)/~gitbook/image/route.ts: most-fixed (3 issues). Treat as high-risk during review.
13 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.

SSRF: Multiple fixes target the OpenAPI proxy, indicating a persistent SSRF risk. Initial fixes added token/origin verification and host allowlists, but the surface remains complex and prone to incomplete validation.
Signature Verification Bypass: The image route has had multiple signature bypass fixes, showing a recurring weakness in how signature versions and hosts are validated. Incomplete validation can allow attackers to forge signatures and redirect to arbitrary URLs.
Open Redirect: The image route's redirect behavior has been a repeated source of open redirect vulnerabilities, related to signature version and host binding. This is a high-risk surface because it can be used for phishing.