Public vulnerability disclosure

CVE-2026-118782

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

publishedCWE-354CWE-1284

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.

Technical severity7.5 highCVSS 3.1 · CNA: GitHub_M
Published2026-10-29Source updated 2026-11-03
Collected2026-11-034 attributed sources

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-782g

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
forge
digitalbazaar
< 1.4.1 (affected) CNA: GitHub_M
node-forge

node-forge
npm
≥ 0; < 1.4.1 (affected, semver); OSV events: introduced 0; fixed 1.4.1
Source events (semver)
[
  {
    "introduced": "0"
  },
  {
    "fixed": "1.4.1"
  }
]

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

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 7.5
high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NCNA: 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:NNVD: [email protected]

Exploit evidence

References

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/cves
https://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.

Agent access JSON · OpenAPI · CVE API guide