CVE-2026-118780

Forge: verifyCertificateChain() removes trusted CA certificates with the same subject from the CA store

Low published · updated · also known as GHSA-4487-J8R4-4G2F

3.7
CVSS score out of 10 · NVD (github.com)

Description

Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, the affected implementation used pki.verifyCertificateChain(), pki.createCaStore(), duplicate subject names to process the relevant input or security decision. node-forge modified the CA store while trying certificates that shared a subject name during pki.verifyCertificateChain(). A failed chain verification could permanently remove trusted CA certificates from the store, causing later valid chains to fail and creating a persistent availability impact for applications that reused the store. This issue is fixed in version 1.4.1.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
node-forge npm <= 1.4.01.4.1 GitHub
forge digitalbazaar (node.js) <1.4.11.4.1 NVD

References