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.

  1. Found
  2. Reported via pull request
  3. Fix merged
  4. Disclosed publicly
  5. 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.