新着 / 2026年11月28日 / CVE-2026-136181
cnpmcore 上流レジストリ認証トークン漏えいの脆弱性
掲載
何が問題か
cnpmcore の 3.46.0 以降 3.84.3 未満、および 4.0.0 以降 4.37.3 未満において、GET /-/registry 系エンドポイントに管理者用アクセス制御(AdminAccess ミドルウェア)が適用されていない問題が確認されています。認証されていない攻撃者が、このエンドポイントから上流レジストリの authToken を取得できる可能性があります。CVSS v4.0 基本値は 8.7(High)です。
悪用されると
取得された authToken を Bearer 認証情報として再利用されると、上流レジストリ上でのパッケージの列挙、ダウンロード、公開につながるおそれがあります。実際の悪用の有無は公表されていません。
取るべき対応
cnpmcore を 3.84.3 以降、または 4.37.3 以降へ更新してください。更新までの間、/-/registry 系エンドポイントへの外部からのアクセス制限や、上流レジストリの authToken の再発行・失効も検討してください。
AIが出典から要約し、数値を機械照合しています。
更新履歴
初回掲載。
指標
| 深刻度(CVSS v4.0) | 重要 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
|---|---|
| 実際の攻撃での悪用 | CISA KEVには未掲載 |
| 30日以内に悪用される確率(EPSS) | 0.6%(全体の上位 59.2%) |
| 問題の種類 | CWE-306 |
| CVE公開日 | 2026-11-24 |
出典
- NVD: CVE-2026-136181
- https://github.com/cnpm/cnpmcore/blob/v3.84.2/app/port/controller/RegistryController.ts#L28-L46
- https://github.com/cnpm/cnpmcore/blob/v4.37.2/app/port/controller/RegistryController.ts#L34-L58
- https://github.com/cnpm/cnpmcore/commit/0bf0052597985100480522b1a59815b85c09b29e
- https://github.com/cnpm/cnpmcore/commit/1309cb2cd619de7351467e2b4ba2a02b5647930a
- https://github.com/cnpm/cnpmcore/releases/tag/v3.84.3
- https://github.com/cnpm/cnpmcore/releases/tag/v4.37.3
- https://github.com/cnpm/cnpmcore/security/advisories/GHSA-9rww-324g-xwph
- https://www.vulncheck.com/advisories/cnpmcore-3.46.0-before-3.84.3-and-4.0.0-before-4.37.3-registry-authtoken-disclosure
公式の説明(英語の原文)
cnpmcore 3.46.0 before 3.84.3 and 4.0.0 before 4.37.3 contains an information disclosure vulnerability that allows unauthenticated attackers to obtain upstream registry authTokens via the GET /-/registry endpoints lacking AdminAccess middleware. Attackers can request /-/registry or /-/registry/:id and replay the leaked authToken as a Bearer credential to enumerate, download, or publish packages upstream.