Security context

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

dvsekhvalnov/jose2go
master @ e126445
2
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Cryptographic Issue: 1 prior fix. Scrutinize any change in this area.
aes_gcm_kw.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.

Cryptographic Issue: Decryption path lacked nonce size validation, allowing malformed IVs to reach AES-GCM and potentially cause panics or incorrect plaintext.
Invalid Curve Attack: Ephemeral public key was not validated to be on the intended elliptic curve before key derivation, enabling invalid curve attacks that can leak the private key.