Description
web-token jwt-framework 1.2.0 before 3.4.10, jwt-experimental before 3.4.10, 4.0.x before 4.0.7, and 4.1.x before 4.1.7 contain a missing integrity check in the experimental Chacha20Poly1305 key-encryption algorithm, which discards the Poly1305 tag in encryptKey() and calls openssl_decrypt() without it in decryptKey(). Attackers on the token path can modify the encrypted content encryption key undetected.
Affected products and versions
web-token jwt-experimental3.3.0 – < 3.4.10Fixed in: 3.4.10
web-token jwt-experimental4.0.0 – < 4.0.7Fixed in: 4.0.7
web-token jwt-experimental4.1.0 – < 4.1.7Fixed in: 4.1.7
web-token jwt-framework1.2.0 – < 3.4.10Fixed in: 3.4.10
web-token jwt-framework4.0.0 – < 4.0.7Fixed in: 4.0.7
web-token jwt-framework4.1.0 – < 4.1.7Fixed in: 4.1.7
CVSS vector, explained
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- High
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- Low impact
- Availability
- None
Weakness type (CWE)
- CWE-353 Missing Support for Integrity Check
References
- github.com/web-token/jwt-framework/security/advisories/GHSA-6vvh-pxr4-25r7 vendor advisory
- www.vulncheck.com/advisories/web-token-jwt-framework-1.2.0-before-3.4.10-missing-authentic
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.