CVE-2025-54887CWE-354

jwe: Missing AES-GCM authentication tag validation in encrypted JWEs

Critical · published August 8, 2025

CVSS v3.1
9.1
EPSS
0%
Percentile
15.8
In the wild
Unconfirmed
What it is

🔥 A brute-force attack can crack the authentication tags of encrypted JWEs in jwe versions 1.1.0 and below — that's like leaving your diary unlocked while giving everyone a spare key! 🚪✨ Imagine if a hotel receptionist could replicate the master key just by listening to how the lock turns. This vulnerability allows attackers to potentially create their own keys, gaining unauthorized access to confidential information that should be tightly secured. This could lead to devastating consequences, including the exposure of sensitive data and potentially allowing malicious actors to modify encrypted messages. With the ability to craft arbitrary JWEs, an attacker could effectively control how information is interpreted by the system, resulting in catastrophic breaches of confidentiality.

Put simply

Imagine if a hotel receptionist could replicate the master key just by listening to how the lock turns. This vulnerability allows attackers to potentially create their own keys, gaining unauthorized access to confidential information that should be tightly secured. In jwe versions 1.1.0 and below, the authentication tags of encrypted JSON Web Encryption payloads are vulnerable to brute force attacks. Attackers can exploit this flaw to recover the internal GHASH key, compromising the security of the encrypted data, even if AES-GCM isn't used.

What to do

This could lead to devastating consequences, including the exposure of sensitive data and potentially allowing malicious actors to modify encrypted messages. With the ability to craft arbitrary JWEs, an attacker could effectively control how information is interpreted by the system, resulting in catastrophic breaches of confidentiality. Immediately upgrade to jwe version 1.1.1 to patch this vulnerability. After upgrading, ensure you rotate your encryption keys to mitigate any risk of GHASH key leakage. Don't leave anything to chance — security is paramount! You’ve got this! Follow these steps, and you’ll enhance your security posture in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00253 · 15.8th percentile
Weakness
CWE-354 · Improper Validation of Integrity Check Value
Published
2025-08-08T00:06Z
EPSS history
Timeline
  • 08 AUG 00:06Z
    jwe: Missing AES-GCM authentication tag validation in encrypted JWEs
    cvelistv5