Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceComponentsnpm

node-forge

Pure JavaScript cryptography and PKI toolkit: RSA signing and encryption, Ed25519, AES (including GCM), DES and RC2, SHA-1, SHA-2, MD5, HMAC, PBKDF2, a Fortuna-based random generator, X.509, PKCS formats and a TLS implementation.

In short

What to know.

Algorithms
RSA signatures, RSA encryption, Ed25519, AES and 6 more3 of 10 would be broken by a large quantum computer.
Advisories
37 in the storeOSV last read 3 December 2026, 16:48 UTC.
What to do
Check your version against the advisories below. Each lists its affected and fixed versions. Plan a move away from RSA signatures, RSA encryption, Ed25519 before large quantum computers exist.

37 in the store

Advisories

Advisories for node-forge
AdvisoryIdAffected versionsFixed inSource's rating
Forge: RSA multi-prime private keys are read as two-prime keys, and signatures leak a factor of the modulusGHSA-w73w-hhm4-q25pbefore 1.4.4Fixed in 1.4.4Rated Low
node-forge: RSA PKCS#1 v1.5 signature forgery via extra elements in nested DigestAlgorithmGHSA-2g46-22mc-6gwpbefore 1.4.1Fixed in 1.4.1Rated High
Forge: Ed25519 signature verification accepts small-order public keysGHSA-6889-vf6x-f3g5before 1.4.3Fixed in 1.4.3Rated Low
Forge: TLS client crash on an unsupported ServerHello compression methodGHSA-w4xr-hqv8-ch44before 1.4.3Fixed in 1.4.3Rated Moderate
Forge: ReDoS in forge.http response header and cookie trimmingGHSA-6cv4-p8m7-4r25from 0.1.2 before 1.4.3Fixed in 1.4.3Rated Moderate
Forge: TLS client crash on a handshake record received without a sessionGHSA-j8rw-jp99-435vbefore 1.4.3Fixed in 1.4.3Rated Moderate
Forge: Certificate signature verified with the issuer's RSA signature schemeGHSA-9wg5-mj3p-v49qbefore 1.4.1Fixed in 1.4.1Rated Low
Forge: Incomplete PKCS#7 padding validation in AES/DES CBC and ECB decryptionGHSA-2vgq-wchc-25w7before 1.4.1Fixed in 1.4.1Rated Low
Forge: X.509 pathLenConstraint not enforced by verifyCertificateChain() for CA certificates without keyUsageGHSA-h46v-rmh6-fq4fbefore 1.4.1Fixed in 1.4.1Rated Moderate
Forge: ASN.1 resource exhaustion via BIT STRING decoding in asn1.fromDerGHSA-rhr8-3pm8-cq29before 1.4.1Fixed in 1.4.1Rated High
Forge: RSA PKCS#1 v1.5 signature forgery via non-canonical DigestInfo encodingGHSA-6qrw-m8cv-hcxfbefore 1.4.1Fixed in 1.4.1Rated High
Forge: ASN.1 OID first arc truncation in asn1.oidToDerGHSA-4642-5mcj-2rqwbefore 1.4.1Fixed in 1.4.1Rated Low
Forge: Prototype Pollution in forge.http cookie handling via a malicious Set-CookieGHSA-6wvx-3r32-xmcgbefore 1.4.1Fixed in 1.4.1Rated Moderate
Forge: TLS client crash when the server sends no certificateGHSA-525v-9gp9-w22hbefore 1.4.1Fixed in 1.4.1Rated Moderate
Forge: Regular expression denial of service in PEM decoding (pem.decode)GHSA-7wch-p9px-956xbefore 1.4.1Fixed in 1.4.1Rated High
Forge: Denial of Service via infinite loop in BigInteger.modInverse() with negative input (incomplete fix of CVE-2026-33891)GHSA-h6cr-wjv9-3cppbefore 1.4.1Fixed in 1.4.1Rated Low
Forge: verifyCertificateChain() removes trusted CA certificates with the same subject from the CA storeGHSA-4487-j8r4-4g2fbefore 1.4.1Fixed in 1.4.1Rated Low
Forge: AES-GCM authentication bypass via unvalidated tagLength optionGHSA-5cwg-6vw7-rj6pbefore 1.4.1Fixed in 1.4.1Rated Moderate
Forge: PKCS#12 MAC forgery and constant-key PBE via zero iteration countGHSA-jc66-7q78-782gbefore 1.4.1Fixed in 1.4.1Rated High
Forge: Denial of service in TLS record processing via a record interleaved with a fragmented handshake messageGHSA-8hrf-8g6f-7xwpbefore 1.4.1Fixed in 1.4.1Rated High
Forge: Denial of service in TLS record processing via call stack exhaustionGHSA-hqq3-7jhf-c5jxbefore 1.4.1Fixed in 1.4.1Rated High
Forge: X.509 basicConstraints bypass in verifyCertificateChain() via deprecated extension OIDs 2.5.29.10 and 2.5.29.13GHSA-5x38-2vff-x55pbefore 1.4.1Fixed in 1.4.1Rated High
Forge has a basicConstraints bypass in its certificate chain verification (RFC 5280 violation)GHSA-2328-f5f3-gj25before 1.4.0Fixed in 1.4.0Rated High
Forge has signature forgery in Ed25519 due to missing S > L checkGHSA-q67f-28xg-22rwbefore 1.4.0Fixed in 1.4.0Rated High
Forge has signature forgery in RSA-PKCS due to ASN.1 extra field GHSA-ppp5-5v6c-4jwpbefore 1.4.0Fixed in 1.4.0Rated High
Forge has Denial of Service via Infinite Loop in BigInteger.modInverse() with Zero InputGHSA-5m6q-g25r-mvwxbefore 1.4.0Fixed in 1.4.0Rated High
node-forge has ASN.1 Unbounded RecursionGHSA-554w-wpv2-vw27before 1.3.2Fixed in 1.3.2Rated High
node-forge is vulnerable to ASN.1 OID Integer TruncationGHSA-65ch-62r8-g69gbefore 1.3.2Fixed in 1.3.2Rated Moderate
node-forge has an Interpretation Conflict vulnerability via its ASN.1 Validator DesynchronizationGHSA-5gfm-wpxj-wjgqbefore 1.3.2Fixed in 1.3.2Rated High
Improper Verification of Cryptographic Signature in `node-forge`GHSA-2r2c-g63r-vccrbefore 1.3.0Fixed in 1.3.0Rated Moderate
Improper Verification of Cryptographic Signature in node-forgeGHSA-x4jg-mjrx-434gbefore 1.3.0Fixed in 1.3.0Rated High
Improper Verification of Cryptographic Signature in node-forgeGHSA-cfm4-qjh2-4765before 1.3.0Fixed in 1.3.0Rated High
Open Redirect in node-forgeGHSA-8fr3-hfg3-gpgpbefore 1.0.0Fixed in 1.0.0Rated Moderate
Prototype Pollution in node-forge debug API.GHSA-5rrq-pxf6-6jx5before 1.0.0Fixed in 1.0.0Rated Low
Prototype Pollution in node-forge util.setPath APIGHSA-wxgw-qj99-44c2before 0.10.0Fixed in 0.10.0Rated Low
URL parsing in node-forge could lead to undesired behavior.GHSA-gf8q-jrpm-jvxqbefore 1.0.0Fixed in 1.0.0Rated Low
Prototype Pollution in node-forgeGHSA-92xj-mqp7-vmcjbefore 0.10.0Fixed in 0.10.0Rated High

15 listed

Findings

Findings for node-forge
FindingIdSeverityUpdated
Forge: Ed25519 signature verification accepts small-order public keysNMN-2026-0049Severity Low3 December 2026
node-forge is vulnerable to ASN.1 OID Integer TruncationNMN-2026-0048Severity Moderate3 December 2026
Forge: X.509 basicConstraints bypass in verifyCertificateChain() via deprecated extension OIDs 2.5.29.10 and 2.5.29.13NMN-2026-0047Severity High3 December 2026
Prototype Pollution in node-forge debug API.NMN-2026-0046Severity Low3 December 2026
Forge has Denial of Service via Infinite Loop in BigInteger.modInverse() with Zero InputNMN-2026-0045Severity High3 December 2026
node-forge has an Interpretation Conflict vulnerability via its ASN.1 Validator DesynchronizationNMN-2026-0044Severity High3 December 2026
Forge: AES-GCM authentication bypass via unvalidated tagLength optionNMN-2026-0043Severity Moderate3 December 2026
node-forge has ASN.1 Unbounded RecursionNMN-2026-0042Severity High3 December 2026
Forge: TLS client crash when the server sends no certificateNMN-2026-0041Severity Moderate3 December 2026
Forge: ASN.1 OID first arc truncation in asn1.oidToDerNMN-2026-0039Severity Low3 December 2026
Forge: verifyCertificateChain() removes trusted CA certificates with the same subject from the CA storeNMN-2026-0037Severity Low3 December 2026
Forge: Incomplete PKCS#7 padding validation in AES/DES CBC and ECB decryptionNMN-2026-0035Severity Low3 December 2026
Improper Verification of Cryptographic Signature in `node-forge`NMN-2026-0033Severity Moderate3 December 2026
node-forge: RSA PKCS#1 v1.5 signature forgery via extra elements in nested DigestAlgorithmNMN-2026-0031Severity High3 December 2026
Forge has a basicConstraints bypass in its certificate chain verification (RFC 5280 violation)NMN-2026-0029Severity High3 December 2026

Reviewed 3 December 2026

Sources

  1. npm registry metadata for node-forgeregistry.npmjs.orgRetrieved 3 December 2026
  2. forge READMEgithub.comRetrieved 3 December 2026

Full record

Package
node-forge
Ecosystem
npm
Role
Implementation
Status
Not marked deprecated by its registry or maintainers.
Reviewed
Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
Advisories read
Last read from OSV 3 December 2026, 16:48 UTC
Findings
15 listed above.

Algorithms it provides

What a large quantum computer would change

  • Broken by Shor's algorithmRests on factoring or discrete logarithms. A large fault-tolerant quantum computer running Shor's algorithm would break it.RSA signatures, RSA encryption, Ed25519
  • Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.AES, AES-GCM, SHA-1, SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512), HMAC, PBKDF2
  • Not applicableThe quantum question does not apply to this part.Cryptographically strong random number generation

Notes describe algorithm families, not any one project.