{"id":"CVE-2026-134460","aliases":["CVE-2026-134460","GHSA-6vvh-pxr4-25r7"],"related":[],"kind":"vulnerability","state":"published","title":"web-token jwt-framework 1.2.0 before 3.4.10 Missing Authentication in Chacha20Poly1305 Key Encryption","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe experimental `Chacha20Poly1305` key-encryption algorithm generates the 16-byte Poly1305 authentication tag during `encryptKey()` but **discards it**: the tag is never written to the header and therefore never reaches the wire. On the receiving side, `decryptKey()` calls `openssl_decrypt('chacha20-poly1305', ...)` **without the tag argument**, which makes OpenSSL skip authentication entirely.\n\nAs a result the AEAD construction is silently degraded to unauthenticated ChaCha20: a tampered encrypted CEK is accepted, and because ChaCha20 is a stream cipher, a single-byte change in the ciphertext propagates as a single-byte change in the recovered CEK with no integrity check (CWE-353 / CWE-347). An attacker on the token path can manipulate the wrapped key without detection.\n\n### Affected configurations\n\nApplications that register `Jose\\Experimental\\KeyEncryption\\Chacha20Poly1305` (package `web-token/jwt-experimental`) as a JWE `alg`.\n\n### Patches\n\n`encryptKey()` now publishes the Poly1305 tag as the base64url `tag` header parameter (and asserts it is 16 bytes). `decryptKey()` requires the `tag` header, validates its length, and passes it to `openssl_decrypt()` so the tag is actually verified, in line with RFC 7539 / RFC 8439. Tampering now results in a decryption failure.\n\n> Note: this changes the wire format of tokens produced with this experimental algorithm (a `tag` header is now emitted and required).\n\n### Workarounds\n\nDo not use the experimental `Chacha20Poly1305` key-encryption algorithm for untrusted input until upgraded.\n\n### References\n\n- RFC 7539 / RFC 8439 (ChaCha20-Poly1305 AEAD)\n- CWE-353: Missing Support for Integrity Check\n\n## Résolution\n\nUn correctif a été préparé sur une branche dédiée basée sur `3.4.x`, avec des tests anti-régression dédiés (fork privé temporaire de cette advisory, PR #1).\n\n**ChaCha20-Poly1305** — le tag d'authentification Poly1305 est désormais publié dans le header au chiffrement et vérifié au déchiffrement (RFC 7539), rétablissant l'intégrité AEAD.\n\n**Validation :** `php -l` OK, PHPUnit vert, aucune nouvelle erreur PHPStan introduite (différentiel nul vs `3.4.x`), aucun commentaire ajouté dans le code source. Après merge, cascade prévue `3.4.x → 4.0.x → 4.1.x`.","format":"markdown","source":"ghsa"}],"published":"2026-06-18T21:08:15.000Z","modified":"2026-11-25T21:17:19.467Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.3,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:A/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-347","CWE-353"],"affected":[{"ranges":[{"type":"semver","introduced":"3.3.0","fixed":"3.4.10","status":"affected"},{"type":"semver","version":"3.4.10","status":"unaffected"}],"vendor":"web-token","product":"jwt-experimental","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","fixed":"4.0.7","status":"affected"},{"type":"semver","version":"4.0.7","status":"unaffected"}],"vendor":"web-token","product":"jwt-experimental","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.1.0","fixed":"4.1.7","status":"affected"},{"type":"semver","version":"4.1.7","status":"unaffected"}],"vendor":"web-token","product":"jwt-experimental","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.2.0","fixed":"3.4.10","status":"affected"},{"type":"semver","version":"3.4.10","status":"unaffected"}],"vendor":"web-token","product":"jwt-framework","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","fixed":"4.0.7","status":"affected"},{"type":"semver","version":"4.0.7","status":"unaffected"}],"vendor":"web-token","product":"jwt-framework","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.1.0","fixed":"4.1.7","status":"affected"},{"type":"semver","version":"4.1.7","status":"unaffected"}],"vendor":"web-token","product":"jwt-framework","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"4.1.6"}],"ecosystem":"Packagist","package":"web-token/jwt-experimental","purl":"pkg:composer/web-token/jwt-experimental","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.4.10"}],"ecosystem":"Packagist","package":"web-token/jwt-library","purl":"pkg:composer/web-token/jwt-library","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.7"}],"ecosystem":"Packagist","package":"web-token/jwt-library","purl":"pkg:composer/web-token/jwt-library","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.1.0","status":"affected","fixed":"4.1.7"}],"ecosystem":"Packagist","package":"web-token/jwt-library","purl":"pkg:composer/web-token/jwt-library","source":"ghsa"}],"references":[{"url":"https://github.com/web-token/jwt-framework/security/advisories/GHSA-6vvh-pxr4-25r7","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/web-token-jwt-framework-1.2.0-before-3.4.10-missing-authentication-in-chacha20poly1305-key-encryption","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/web-token/jwt-library/GHSA-6vvh-pxr4-25r7.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/web-token/jwt-framework","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-25T21:08:53.611Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-134460","url":"https://www.cve.org/CVERecord?id=CVE-2026-134460","licence":"CVE Terms of Use","modified":"2026-11-25T21:09:06.275Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6vvh-pxr4-25r7","url":"https://github.com/advisories/GHSA-6vvh-pxr4-25r7","licence":"CC-BY-4.0","modified":"2026-11-21T18:11:25.946Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-134460","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-134460","licence":"Public domain","modified":"2026-11-25T21:17:19.467Z"}],"updatedAt":"2026-11-25T23:18:26.865Z","epss":{"score":0.00172,"percentile":0.0696,"date":"2026-12-01T12:00:22.000Z"}}