PyJWT の脆弱性 (CVE-2026-102275)
概要
PyJWT に 脆弱性 (CVE-2026-102275) が存在。データの不正な改ざんを許す可能性があります。cnf.jkt 経由で攻撃可能。対策: 2.15.0 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
PyJWT accepts internally inconsistent OKP private JWKs where the declared public key x does not correspond to the supplied private key d.
When d is present, OKPAlgorithm.from_jwk() constructs the Ed25519/Ed448 private key from d without verifying that the public key derived from d matches x. As a result, the original JWK can contain one public key identity while PyJWT performs cryptographic operations using a different key.
In affected DPoP integrations, this can allow a stolen sender-constrained access token to be used without possession of the legitimate holder's private key.
Details
The vulnerable logic is in jwt/algorithms.py:
if "x" not in obj:
raise InvalidKeyError('OKP should have "x" parameter')
x = base64url_decode(obj.get("x"))
if "d" not in obj:
if curve == "Ed25519":
return Ed25519PublicKey.from_public_bytes(x)
return Ed448PublicKey.from_public_bytes(x)
d = base64url_decode(obj.get("d"))
if curve == "Ed25519":
return Ed25519PrivateKey.from_private_bytes(d)
return Ed448PrivateKey.from_private_bytes(d)
When d is present, x is parsed but never compared with the public key derived from d.
For example, PyJWT accepts:
{
"kty": "OKP",
"crv": "Ed25519",
"x": "",
"d": ""
}
even though x and d belong to different key pairs.
The behavior has existed since OKP private-JWK import was introduced:
- Ed25519: PyJWT 2.1.0+
- Ed448: PyJWT 2.2.0+
- Confirmed through P…
出典: NIST National Vulnerability Database NVD GitHub Advisory
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
PyJWT という製品で、CVE-2026-102275 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに cnf.jkt のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
データの不正な改ざんを許す可能性があります。重要度は CVSS スコア 6.5/10 です。
対策: PyJWT を 2.15.0 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「PyJWT CVE-2026-102275」を検索してください。
CVE-2026-102275 (PyJWT) — CWE-345 / CVSS v3 6.5
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要 / 被害者操作不要
脆弱箇所: cnf.jkt / master / patched_versions / InvalidKeyError
修正バージョン: 2.15.0 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
PyJWT に 脆弱性 (CWE-345) があります。攻撃者は cnf.jkt を経由して脆弱な処理に到達し、認証なしで悪用できます。
PyJWT の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: cnf.jkt / master / patched_versions / InvalidKeyError。
重要度: 中 (CVSS 6.5/10)。データの不正な改ざんを許す可能性があります。
2.15.0 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'PyJWT' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
PyJWTを grep し、稼働しているサービス・バージョンを把握する。 -
2パッチ適用 patch
Upgrade PyJWT to 2.15.0ステージング環境で 2.15.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
参照URL
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com