CVE-2026-119192
Forge: RSA PKCS#1 v1.5 signature forgery via non-canonical DigestInfo encoding
Overview
Description
Forge, also called node-forge, is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.1, publicKey.verify() with the default RSASSA-PKCS1-V1_5 scheme in lib/rsa.js parses the recovered DigestInfo with the lenient BER parser asn1.fromDer() and validates its structure with digestInfoValidator without requiring canonical DER bytes. Non-minimal or indefinite lengths, malformed parameter values, and non-canonical object identifier encodings with padded subidentifiers or trailing bytes can leave attacker-controlled data inside an accepted DigestInfo. When the verifying RSA public key uses a low exponent such as e=3, an attacker can use that encoding slack to forge a signature without the private key. The same path is used by X.509 certificate and PKCS#7 signature verification. This issue is fixed in version 1.4.1.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-347
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | node-forge | <1.4.1 | 1.4.1 |
| Seal npm | @seal-security/node-forge | >=0.10.0-sp1-for-passport-saml, <0.10.0-sp999>=1.3.0-sp1, <1.3.0-sp999>=1.3.1-sp1, <1.3.1-sp999>=1.3.2-sp1, <1.3.2-sp999>=1.3.3-sp1, <1.3.3-sp999+1 more | 0.10.0-sp9991.3.0-sp9991.3.1-sp9991.3.2-sp9991.3.3-sp999 |
| Seal npm | node-forge | >=0.10.0-sp0, <0.10.0-sp999>=1.3.0-sp0, <1.3.0-sp999>=1.3.1-sp0, <1.3.1-sp999>=1.3.2-sp0, <1.3.2-sp999>=1.3.3-sp0, <1.3.3-sp999+1 more | 0.10.0-sp9991.3.0-sp9991.3.1-sp9991.3.2-sp9991.3.3-sp999 |
Open a package to see all its vulnerabilities.
Operating systems · 4 fixes
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| gitlab-rails-ce-18-10 | 18.10.8-r12 | |
| gitlab-rails-ce-18-9 | 18.9.8-r15 |
minimos 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| argo-workflows-3-6 +1 | 3.6.17-r0 | |
| argo-workflows-3-7 +1 | 3.7.8-r0 |
References
- github.com https://github.com/digitalbazaar/forge
- github.com https://github.com/digitalbazaar/forge/commit/2bce9d477a2ff436e86ff9694ae999f1552aa2bb
- github.com https://github.com/digitalbazaar/forge/releases/tag/v1.4.1
- github.com https://github.com/digitalbazaar/forge/security/advisories/GHSA-2g46-22mc-6gwp
- github.com https://github.com/digitalbazaar/forge/security/advisories/GHSA-6qrw-m8cv-hcxf
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.