CVE-2026-119189: Forge: X.509 pathLenConstraint not enforced by verifyCertificateChain() for CA certificates without keyUsage

Published Oct 29, 2026
·
Updated

Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, node-forge enforced an X.509 CA certificate's basicConstraints.pathLenConstraint only when that certificate also carried a keyUsage extension. Exploitation requires a path-length-constrained CA without keyUsage that chains to a root trusted by the application, and an attacker who holds that CA's private key or obtains a subordinate CA certificate from it. The attacker could then construct a chain exceeding the declared path length that still passed pki.verifyCertificateChain(). Public web PKI CA certificates normally include keyUsage; private PKIs with CA certificates created without it are more likely to be affected. This issue is fixed in version 1.4.1.

Affected Software

2 affected components
ubuntu/node-node-forge*
ubuntu/node-node-forge*

Event History

Oct 29, 2026
CVE Published
via MITRE·07:23 PM
Data Sourced
via MITRE·07:23 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness
Oct 30, 2026
Data Sourced
via OSV·12:00 AM
Affected Software

Frequently Asked Questions

1

Which deployments are most likely to be exposed?

Private PKIs are more likely to be affected, particularly where a CA certificate has a basicConstraints pathLenConstraint but no keyUsage extension. Public web PKI CA certificates normally include keyUsage.

2

What does an attacker need to exploit this issue?

The attacker needs a path-length-constrained CA without keyUsage that chains to a root trusted by the application. They must also hold that CA's private key or obtain a subordinate CA certificate from it.

3

What is the practical impact of successful exploitation?

An attacker can construct a certificate chain that exceeds the CA certificate's declared path length while still passing pki.verifyCertificateChain(). This can allow an unauthorized subordinate CA hierarchy to be accepted by the application.

4

What version contains the fix?

The issue is fixed in node-forge version 1.4.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203