PythonSeverity: MediumStatus: Fixed
JWE decrypt: no limit on number of recipients (hardening)
JWE.decrypt tried every entry in the recipients array with no cap; public hardening PR adds an overridable default_max_recipients (10) and an early exit after the first successful decrypt.
Timeline
Fixed upstream 3 days after it was found.
- Found
- Reported via pull request
- Fix merged
- Disclosed publicly
- Entry last updated
Machine-readable: JSON · Markdown · ID security/python/latchset__jwcrypto/2026-10-03-pbes2-recipients-cpu-amplification
If this work is useful to you, you can support it on Buy Me a Coffee.