製品・ソフトウェアに関する情報
nearformのfast-jwtにおける暗号アルゴリズムの使用に関する脆弱性
Title nearformのfast-jwtにおける暗号アルゴリズムの使用に関する脆弱性
Summary

fast-jwtは高速なJSON Web Token(JWT)実装を提供します。バージョン6.1.0以前では、fast-jwt/src/crypto.js内のpublicKeyPemMatcher正規表現が、キー文字列の先頭の空白文字によって無効化される^アンカーを使用していました。その結果、JWTアルゴリズム混乱攻撃が再び可能となっていました。

Possible impacts 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 6, 2026, midnight
Registration Date April 24, 2026, 11:44 a.m.
Last Update April 24, 2026, 11:44 a.m.
CVSS3.0 : 緊急
Score 9.1
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected System
nearform
fast-jwt 6.2.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年04月24日]
  掲載
April 24, 2026, 11:44 a.m.

NVD Vulnerability Information
CVE-2026-34950
Summary

fast-jwt provides fast JSON Web Token (JWT) implementation. In 6.1.0 and earlier, the publicKeyPemMatcher regex in fast-jwt/src/crypto.js uses a ^ anchor that is defeated by any leading whitespace in the key string, re-enabling the exact same JWT algorithm confusion attack that CVE-2023-48223 patched.

Publication Date April 7, 2026, 1:16 a.m.
Registration Date April 15, 2026, 11:27 a.m.
Last Update April 23, 2026, 5:17 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:node.js:*:* 6.2.0
Related information, measures and tools
Common Vulnerabilities List