CVE-2026-85393
node-forge RSA PKCS#1 v1.5 signature verification accepts extra nested DigestAlgorithm elements
Description
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 Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » node-forgevia npm node-forge | <= 1.4.0 | - |
| org.webjars.npm » node-forgevia npm node-forge | <= 1.4.0 | - |
Blast radius
0% of the dependent artifacts (0) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1 |
Most used dependents
- org.webjars.npm » selfsigned2 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-85393
- Webhttps://github.com/digitalbazaar/forge/issues/1149
- Webhttps://github.com/digitalbazaar/forge/pull/1152
- Advisoryhttps://github.com/advisories/GHSA-ppp5-5v6c-4jwp
- Packagehttps://github.com/digitalbazaar/forge
- Webhttps://github.com/digitalbazaar/forge/blob/v1.4.0/lib/asn1.js
- Webhttps://github.com/digitalbazaar/forge/blob/v1.4.0/lib/rsa.js
- Webhttps://www.vulncheck.com/advisories/node-forge-through-1.4.0-rsa-pkcs-1-1.5-signature-forgery-via-nested-digestalgorithm-padding
