Skip to content
Medium 8.2

web-token jwt-frameworkで暗号鍵の長さを確認せず、トークンを復号・偽造される脆弱性

CVE-2026-137564 First seen on SecPulse

Summary

web-token jwt-frameworkとjwt-libraryでは、direct暗号化において鍵の長さが検査されず、短すぎる鍵が0で埋められて使われます。そのため、短い鍵で発行されたトークンを復号されたり、空の鍵で偽造されたトークンが受け入れられたりするおそれがあります。3.4.13、4.0.9、4.1.11、4.2.6の各修正版で対策されているので、これらへの更新をおすすめします。jwt-encryptionは3.2.10以前が対象で、修正版は確認できていません。最新の情報を確認してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

web-token jwt-frameworkとjwt-libraryでは、direct暗号化において鍵の長さが検査されず、短すぎる鍵が0で埋められて使われます。そのため、短い鍵で発行されたトークンを復号されたり、空の鍵で偽造されたトークンが受け入れられたりするおそれがあります。3.4.13、4.0.9、4.1.11、4.2.6の各修正版で対策されているので、これらへの更新をおすすめします。jwt-encryptionは3.2.10以前が対象で、修正版は確認できていません。最新の情報を確認してください。

Affected packages

PackageAffected → Fixed
web-tokenjwt-library
< 3.4.13→ 3.4.13
≥ 4.0.0, < 4.0.9→ 4.0.9
≥ 4.1.0, < 4.1.11→ 4.1.11
≥ 4.2.0, < 4.2.6→ 4.2.6
web-tokenjwt-framework
< 3.4.13→ 3.4.13
≥ 4.0.0, < 4.0.9→ 4.0.9
≥ 4.1.0, < 4.1.11→ 4.1.11
≥ 4.2.0, < 4.2.6→ 4.2.6
web-tokenjwt-encryption
≤ 3.2.10→ Not listed

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

web-token jwt-framework and jwt-library before 3.4.13, 4.0.x before 4.0.9, 4.1.x before 4.1.11, and 4.2.x before 4.2.6 (and jwt-encryption through 3.2.10) do not check the key length in JWEBuilder and JWEDecrypter for direct (dir) encryption, so undersized keys are zero-padded. Anyone holding a token issued with a half-size AES-CBC-HMAC key can decrypt it, and an empty key also allows forging tokens the decrypter accepts.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details