// Security Advisory Triage
node-forge 1.4.0 and earlier allow PKCS#12 MAC forgery via zero iteration count
GitHub advisories — npm · published 2026-11-01 06:06 UTC
WHAT CHANGEDCVE-2026-118782 published 30 October 2026 identifies a high-severity vulnerability in node-forge versions before 1.4.1. The flaw permits PKCS#12 MAC forgery and constant-key password-based encryption when an attacker supplies a zero iteration count.
WHY IT MATTERSAn attacker can forge message authentication codes in PKCS#12 structures or force the use of a constant encryption key, bypassing cryptographic protections. Services using node-forge to handle PKCS#12 certificates or encrypted data are exposed to authentication bypass and plaintext recovery.
WHAT TO DOUpdate node-forge to version 1.4.1 or later. Grep your package.json and lock files for "node-forge": check both direct dependencies and transitive inclusions via npm ls node-forge.
Model-reported confidence 95% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-jc66-7q78-782g +summary: Forge: PKCS#12 MAC forgery and constant-key PBE via zero iteration count +severity: high +published_at: 2026-10-30T23:02:05Z +cve_id: CVE-2026-118782 +vulnerabilities[].package.name: node-forge +vulnerabilities[].first_patched_version: 1.4.1
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | Cryptographic forgery vulnerability in widely-deployed npm package with available patch. |
| signals | npm package in typical dependency tree · cryptographic vulnerability (PKCS#12 MAC forgery, PBE) · high severity rating · patched version available (1.4.1) · node-forge is widely used in Node.js services |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |