Forge(node-forge)で証明書チェーンの名前制約が検証されない脆弱性
Summary
node-forgeの1.4.3より前のバージョンでは、証明書チェーンの検証時にX.509のnameConstraints(名前制約)が適用されません。名前制約付きの認証局が、許可された範囲外の名前を持つ証明書を発行でき、forge.tlsのクライアントなりすましにつながるおそれがあります。修正版は1.4.3で、更新することが推奨されます。CVSSは7.4で、悪用の報告は示されていません。
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.
node-forgeの1.4.3より前のバージョンでは、証明書チェーンの検証時にX.509のnameConstraints(名前制約)が適用されません。名前制約付きの認証局が、許可された範囲外の名前を持つ証明書を発行でき、forge.tlsのクライアントなりすましにつながるおそれがあります。修正版は1.4.3で、更新することが推奨されます。CVSSは7.4で、悪用の報告は示されていません。
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-125336 node-node-forge No fixed version in this record
Original description The description as published by the source.
Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.3, pki.verifyCertificateChain() in lib/x509.js does not decode or enforce the X.509 nameConstraints extension while validating certificate paths. A name-constrained certificate authority with a non-critical extension can therefore issue a leaf certificate with a subjectAltName dNSName or subject commonName outside a permitted subtree or inside an excluded subtree, and node-forge accepts the chain. Exploitation requires a name-constrained CA that chains to a trusted root and either its private key or the ability to obtain an out-of-scope certificate, allowing impersonation of names outside the delegated namespace, including against forge.tls clients. Chains without nameConstraints are not affected, and affected versions safely reject critical nameConstraints as unsupported rather than accepting them. This issue is fixed in version 1.4.3.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- patch github.com
- web github.com