Security context

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

hyperium/headers
master @ c3e009e
4
Fixes
0
CVEs
HIGH
Peak severity
33.3%
Coverage
Highlights
CORS Misconfiguration: 1 prior fix. Scrutinize any change in this area.
src/common/authorization.rs: most-fixed (2 issues). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

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

Denial of Service: Unchecked slicing of raw header bytes when parsing short or malformed Basic Authentication credentials causes the runtime to panic, resulting in an immediate denial of service. Developers must always utilize safe accessor methods like get() rather than direct indexing.
CORS Misconfiguration: Improper handling of trailing slashes or path separators during Origin header parsing causes the parser to return None, resulting in unexpected header rejection or dangerous fallback behaviors that bypass CORS security policies.
HTTP Request Smuggling: Permitting duplicate instances of critical HTTP headers (such as Expect and Origin) instead of enforcing a single-value policy can lead to parsing disparities between downstream servers and the proxy, enabling HTTP request smuggling.