If you're running Spring Security 6.5.0 through 6.6.x with DPoP (RFC 9449) enabled, you're exposed to a replay attack vector that undermines the core security guarantee you adopted DPoP to get. The implementation stores JWT ID (jti) claims in a bounded cache to detect token replays — but that cache has a hard size limit. An attacker can flood the cache with dummy jti values, forcing legitimate entries to evict, then replay a previously-valid token that the system will now accept as fresh.
This wasn't a regression — the vulnerability shipped with DPoP support in 6.5.0. The cache was added as a performance optimization, but it creates a deterministic eviction window that fundamentally breaks the replay protection DPoP is supposed to provide. The security model you believe you're getting (tokens bound to a key pair, non-replayable) is not what you're running.
The immediate action: upgrade to Spring Security 6.7.0 or later. But understand that this patch fixes the library, not the deployment gap — your application won't auto-upgrade, and you need to explicit version-bump. More critically, check whether your DPoP-protected resources are high-value: payment APIs, admin endpoints, privileged access. If they are, treat any anomalous request patterns (high volumes of unique JWTs) during your token validity window as potential cache exhaustion attempts. The vulnerability exploits silently — there's no error when replay detection fails, just the absence of protection.
The deeper problem is documentation. No release note or security advisory flagged the cache as a security-relevant configuration boundary. You likely had no way to know this tradeoff existed. That's the failure to fix in how you evaluate security libraries going forward: any bounded cache in a cryptographic validation path is a potential security boundary, and if it's not documented as such, assume it degrades your threat model.