Security context

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

emicklei/go-restful
v3 @ a3a83e0
2
Fixes
1
CVEs
CRITICAL
Peak severity
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
cors_filter.go: 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: Inconsistent URL path normalization within route construction allowed path-merging discrepancies, leading to route mismatches and authorization bypasses (CVE-2022-1996). Developers must ensure the strict PathJoinStrategy is utilized for all route definitions.
Cross-Origin Resource Sharing (CORS) Bypass: Allowed origin domains were previously compiled and evaluated as loose regular expressions rather than performing exact string matching, potentially allowing malicious subdomains or similarly named domains to pass CORS checks.