CVE-2026-118782
Forge: PKCS#12 MAC forgery and constant-key PBE via zero iteration count
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.
Fixes and workarounds
Fix
node-forge (npm): OSV reports a fixed version 1.4.1. Check the advisory for supported release branches.
Source: OSV GHSA-jc66-7q78-782gAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| forge digitalbazaar |
< 1.4.1 (affected) | CNA: GitHub_M |
node-forgenode-forge
npm |
≥ 0; < 1.4.1 (affected, semver); OSV events: introduced 0; fixed 1.4.1Source events (semver)
Other versions: unaffected |
OSV GHSA-jc66-7q78-782g |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 7.5 high |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N | CNA: GitHub_M |
| 3.1 / 7.5 high |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N | NVD: [email protected] |
Exploit evidence
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-jc66-7q78-782g
exploit · ADP: CISA-ADP
References
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-jc66-7q78-782gCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/digitalbazaar/forge/commit/d9584aa56824972858366d5187b3d29e46bf3656CNA: GitHub_M · x_refsource_MISC
- https://github.com/digitalbazaar/forge/releases/tag/v1.4.1CNA: GitHub_M · x_refsource_MISC
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-jc66-7q78-782gADP: CISA-ADP · exploit
- https://github.com/digitalbazaar/forge/commit/d9584aa56824972858366d5187b3d29e46bf3656[email protected]
- https://github.com/digitalbazaar/forge/releases/tag/v1.4.1[email protected]
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-jc66-7q78-782g[email protected]
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-jc66-7q78-782g134c704f-9b21-4f2e-91b3-4a467353bcc0
- https://github.com/advisories/GHSA-jc66-7q78-782gOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-jc66-7q78-782gOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.