Security context

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

square/go-jose
master @ 1e66431
10
Fixes
5
CVEs
CRITICAL
Peak severity
Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
cipher/ecdh_es.go: most-fixed (2 issues). Treat as high-risk during review.
6 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.

Cryptographic Issues: Failure to verify that an input public key lies on the expected elliptic curve allows attackers to perform invalid-curve attacks and compromise key derivation materials. This is a severe threat for key exchange protocols.
Signature Validation Bypass: Discrepancies in case-insensitivity during standard JSON parsing allow attackers to craft payloads that trigger validation bypasses because keys are matched differently during signature check vs subsequent application consumption.
Auth Bypass: Flaws in comparing JWT audience sets or validating optional claim times can allow attackers to construct valid tokens with modified claim ordering or trigger application failures (nil dereferences) on expected fields.