Vulnerabilityin the jwe package.
Proof of concept public (GitHub).
jwe is a Ruby implementation of the RFC 7516 JSON Web Encryption (JWE) standard. In versions 1.1.0 and below, authentication tags of encrypted JWEs can be brute forced, which may result in loss of confidentiality for those JWEs and provide ways to craft arbitrary JWEs. This puts users at risk because JWEs can be modified to decrypt to an arbitrary value, decrypted by observing parsing differences and the GCM internal GHASH key can be recovered. Users are affected by this vulnerability even if they do not use an AES-GCM encryption algorithm for their JWEs. As the GHASH key may have been leaked, users must rotate the encryption keys after upgrading. This issue is fixed in version 1.1.1.
- Upgrade ruby-jwe to 1.1.1 or later.
- Upgrade jwe (RubyGems) to 1.1.1 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 31 Jul 2025CVE ID reserved by GitHub_M.
- 8 Aug 2025Published in the CVE List.
- 8 Aug 2025CVE record last updated.
- 12 Aug 2025First public proof of concept on GitHub.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Same weakness:
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
Patchminder. CVE-2025-54887: Vulnerability in the jwe package. https://patchminder.com/cve/cve-2025-54887/ (accessed 5 December 2026).