node-forge RSA PKCS#1 v1.5 signature verification accepts extra nested DigestAlgorithm elements
node-forge through 1.4.0 fails to validate element count in nested DigestAlgorithm sequences during RSA PKCS#1 v1.5 signature verification. Attackers can embed garbage bytes inside the DigestAlgorithm sequence to forge valid signatures for arbitrary messages using low-exponent RSA keys. This is an incomplete fix for CVE-2026-33894.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | node-forge | <= 1.4.0 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-85393
- https://github.com/digitalbazaar/forge/issues/1149
- https://github.com/digitalbazaar/forge/pull/1152
- https://github.com/advisories/GHSA-ppp5-5v6c-4jwp
- https://github.com/digitalbazaar/forge
- https://github.com/digitalbazaar/forge/blob/v1.4.0/lib/asn1.js
- https://github.com/digitalbazaar/forge/blob/v1.4.0/lib/rsa.js
- https://www.vulncheck.com/advisories/node-forge-through-1.4.0-rsa-pkcs-1-1.5-signature-forgery-via-nested-digestalgorithm-padding
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-cfm4-qjh2-4765
- https://github.com/digitalbazaar/forge/security/advisories/GHSA-ppp5-5v6c-4jwp
- https://nvd.nist.gov/vuln/detail/CVE-2026-33894
- https://datatracker.ietf.org/doc/html/rfc2313#section-8
- https://mailarchive.ietf.org/arch/msg/openpgp/5rnE9ZRN1AokBVj3VqblGlP63QE
- https://www.rfc-editor.org/rfc/rfc8017.html
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-347, CWE-20- Platform
- npm
- Package
node-forge- Disclosed
- 26.03.2026
- Updated
- 21.11.2026 22:17
Sources and licenses
OSV / GitHub Advisory Database - GHSA-86w9-cpqp-85rv - CC BY 4.0
OSV / GitHub Advisory Database - GHSA-ppp5-5v6c-4jwp - CC BY 4.0
Vulnerability history: node-forge
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 35
- First → latest
- 09.2020 11.2026
- Without a fix
- 1
- Exploited in attacks
- 0
Severity breakdown
- High 16
- Medium 10
- Low 9
Disclosures per year
- 2020: 1
- 2021: 0
- 2022: 7
- 2023: 0
- 2024: 0
- 2025: 3
- 2026: 24
-
node-forge RSA PKCS#1 v1.5 signature verification accepts extra nested DigestAlgorithm elements this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.