Improper Verification of Cryptographic Signature Affecting web-token/jwt-experimental package, versions <3.4.10>=4.0.0, <4.0.7>=4.1.0, <4.1.7


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-WEBTOKENJWTEXPERIMENTAL-17420443
  • published23 Jun 2026
  • disclosed17 Jun 2026
  • creditUnknown

Introduced: 17 Jun 2026

CVE NOT AVAILABLE CWE-347  (opens in a new tab)

How to fix?

Upgrade web-token/jwt-experimental to version 3.4.10, 4.0.7, 4.1.7 or higher.

Overview

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via missing authentication tag verification in the experimental Chacha20Poly1305 key-encryption algorithm. An attacker can modify an encrypted content-encryption key (CEK) in transit without detection because the Poly1305 authentication tag generated during encryption is discarded and never verified during decryption. As a result, the intended AEAD construction is reduced to unauthenticated ChaCha20, allowing tampering with the wrapped key while bypassing integrity protection.

Note: This is only exploitable if the application registers Jose\Experimental\KeyEncryption\Chacha20Poly1305 (web-token/jwt-experimental) as a JWE key-encryption algorithm.

CVSS Base Scores

version 4.0
version 3.1