Description
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.
Published: 2026-10-29
Score: 5.9 Medium
EPSS: n/a
KEV: No
Impact: Improper Certificate Validation
Action: Apply Patch
AI Analysis

Impact

A flaw in node-forge caused the library to ignore the X.509 pathLenConstraint field of a CA certificate when that certificate lacked a keyUsage extension. This weakness, identified as CWE‑295, allows a chain to be constructed that exceeds the declared maximum depth yet still passes the library’s verifyCertificateChain() check. As a result, applications that rely on node-forge for certificate validation may trust a chain of certificates that should be rejected, potentially leading to unauthorized network access or credential compromise.

Affected Systems

The issue affects the digitalbazaar:forge library (commonly known as node-forge). Versions prior to 1.4.1 are impacted; the problem is fixed in v1.4.1 and later releases.

Risk and Exploitability

The CVSS score of 5.9 indicates a moderate severity. Exploitation requires the attacker to possess a private CA key or a subordinate CA certificate from a path‑length‑constrained CA that does not include keyUsage, and to chain it to a root trusted by the application. Such conditions are more likely to arise in private PKIs where keyUsage was omitted. While documented exploitation is not considered high‑probability, the lack of an EPSS score and absence from CISA KEV suggest no widely‑available exploits are known. Nevertheless, the vulnerability can still enable enterprises to mistakenly accept certificates that violate intended trust boundaries, recommending prompt remediation.

Generated by OpenCVE AI on October 29, 2026 at 20:36 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade node-forge to version 1.4.1 or later
  • Replace any CA certificates that lack a keyUsage extension or verify that pathLenConstraint is respected in the chain
  • If upgrading is delayed, enforce stricter external certificate validation logic or switch to an alternative library that correctly checks pathLenConstraint for all CA certificates

Generated by OpenCVE AI on October 29, 2026 at 20:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 29 Oct 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Digitalbazaar
Digitalbazaar forge
Vendors & Products Digitalbazaar
Digitalbazaar forge

Thu, 29 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Forge: X.509 pathLenConstraint not enforced by verifyCertificateChain() for CA certificates without keyUsage
Weaknesses CWE-295
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N'}


Subscriptions

Digitalbazaar Forge
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-29T19:23:25.238Z

Reserved: 2026-10-29T16:04:48.727Z

Link: CVE-2026-119189

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-29T20:17:29.923

Modified: 2026-10-29T20:17:29.923

Link: CVE-2026-119189

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-29T20:30:18Z

Weaknesses
  • CWE-295

    Improper Certificate Validation