CVE-2026-118782: Forge · PKCS#12 MAC forgery and constant-key PBE via zero iteration count
Affects node-forgeSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 1.4.1 soon.
Data as of 31 Oct 2026, 02:05 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 1.4.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 29 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Upgrade node-forge to 1.4.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmnode-forge | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade node-forge to version 1.4.1 or later, where iteration counts less than 1 are rejected during PKCS#12 MAC verification and key derivation. As a workaround before upgrading, reject inputs with MacData.iterations less than 1 before calling forge.pkcs12.pkcs12FromAsn1(), and similarly check pkcs-12PbeParams iteration counts before decrypting private keys. No other simple workarounds exist for encrypted private keys using the affected PKCS#12 PBE schemes.
Description
A vulnerability in node-forge versions prior to 1.4.1 allows an attacker to forge PKCS#12 MACs and decrypt PKCS#12 PBE-encrypted private keys without knowing the password by exploiting a zero or negative iteration count in the key derivation function. This flaw causes the key derivation to produce a constant key independent of the password or salt, enabling an attacker to supply malicious PKCS#12 files that verify successfully under any password. The issue is fixed in node-forge 1.4.1 by rejecting iteration counts less than 1.
References
- github.com/digitalbazaar/forge/security/advisories/GHSA-jc66-7q78-782g (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-118782 (opens in a new tab)
- github.com/digitalbazaar/forge/commit/d9584aa56824972858366d5187b3d29e46bf3656 (opens in a new tab)
- github.com/digitalbazaar/forge (opens in a new tab)
- github.com/digitalbazaar/forge/releases/tag/v1.4.1 (opens in a new tab)