All vulnerabilities

npm

CVE-2026-119192

Forge: RSA PKCS#1 v1.5 signature forgery via non-canonical DigestInfo encoding

Severity
High 7.5
Published
10 Nov 2026
Last changed
10 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.4.1
Exploit chance
0.2% in the next 30 daysHigher than 7% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Improper verification of a cryptographic signature (CWE-347)
Attack
Over the network · No login needed · No user action needed
Attacker can
Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Also known as
GHSA-6qrw-m8cv-hcxf
Sources
OSV.dev and GitHub

Description

RSASSA-PKCS1-v1_5 signature verification (publicKey.verify() with the default scheme, also used by X.509 certificate and PKCS#7 verification) accepted non-canonical BER encodings of the DigestInfo, such as NULL parameters with content and non-minimal lengths. These leave attacker-controlled bytes inside an accepted DigestInfo, which allows signatures to be forged without the private key for RSA keys with a low public exponent (e=3). Fixed in node-forge 1.4.1.

In lib/rsa.js, key.verify() with the default RSASSA-PKCS1-V1_5 scheme removes the padding, parses the recovered DigestInfo with the lenient BER parser asn1.fromDer() and checks its structure with asn1.validate() against digestInfoValidator. Neither requires a canonical DER encoding, so verification accepted, among others:

  • NULL parameters with content bytes (e.g. 05 40 <64 bytes>)
  • non-NULL or constructed values in the parameters position
  • non-minimal (long form) and indefinite lengths
  • non-canonical OID encodings (padded…
From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Workarounds

Do not use RSA keys with a low public exponent (e=3) for signature verification.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
node-forgenpm · osv:npm:node-forge
  • Every version before 1.4.1

About node-forge

Weekly downloads (npm)
55,543,907npm, 23 Nov 2026

References