CVE-2026-118782

GHSA-jc66-7q78-782g · published 29 Oct 2026 · updated 10 Nov 2026

Forge: PKCS#12 MAC forgery and constant-key PBE via zero iteration count

8.5HighCVSS 7.5EPSS 0%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.4.1 and node-forge 1.4.1.

Forge (also called node-forge) is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, node-forge accepted a PKCS#12 MAC or PKCS#12 password-based encryption iteration count of zero or less. pki.pbe.generatePkcs12Key() then returned a constant key independent of the password and salt, allowing crafted PKCS#12 input processed by forge.pkcs12.pkcs12FromAsn1() to bypass password-based integrity checks. Predictable encryption keys and IVs also affected PKCS#12 PBE using pbeWithSHAAnd3-KeyTripleDES-CBC or pbewithSHAAnd40BitRC2-CBC, including shrouded key bags, encrypted SafeContents, and PKCS#8 ENCRYPTED PRIVATE KEY input processed independently by forge.pki.decryptPrivateKeyInfo(). PBES2/PBKDF2-encrypted content is unaffected. This issue is fixed in version 1.4.1.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
digitalbazaarforge<1.4.11.4.1
digitalbazaar<1.4.1
npm: node-forge<=1.4.01.4.1

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in node-forge (npm), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-118782 severity on Zeptric[![CVE-2026-118782](https://zeptric.io/badge/cve/CVE-2026-118782.svg)](https://zeptric.io/cve/CVE-2026-118782)