Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › JavaScript

CVE-2026-85393 — node-forge: RSA PKCS#1 v1.5 signature forgery via extra elements in nested DigestAlgorithm

High · CVSS 7.5 First seen December 01, 2026
JavaScriptWebVulnerabilities

Research article

digitalbazaar forge RSA Signature Forgery Vulnerability (CVE-2026-85393)

CVECVE-2026-85393
Vendor and productnpm:node-forge
PublishedDecember 01, 2026 18:20 UTC
Research cut-offDecember 01, 2026 18:10 UTC
Sources reviewed3: NVD record (last modified 2026-11-20); CISA KEV catalog; GitHub advisory (2026-12-01)

Executive summary

CVE-2026-85393 affects the digitalbazaar forge library, with a CVSS 3.1 score of 7.5 HIGH, scored by disclosure@vulncheck.com. The vulnerability impacts versions less than 1.4.1 and is fixed in 1.4.1 [1]. The reviewed sources do not report exploitation [2]. The main action is to upgrade to the fixed version.

Key points

  • CVE-2026-85393 affects versions of digitalbazaar forge less than 1.4.1 and node-forge up to 1.4.0 [1, 3].
  • The vulnerability involves an RSA PKCS#1 v1.5 signature forgery flaw due to improper verification of nested DigestAlgorithm padding [3].
  • The CVSS 3.1 score is 7.5 HIGH, with no confidentiality impact, high integrity impact, and no availability impact [1].
  • The reviewed sources do not report exploitation [2].
  • The fix for CVE-2026-85393 is included in version 1.4.1 of both digitalbazaar forge and node-forge [1, 3].

Vulnerability identification

FieldValue
CVE IDCVE-2026-85393 [1]
Vendordigitalbazaar [1]
Productforge [1]
CWECWE-347 (Improper Verification of Cryptographic Signature) [1]
CVSS 3.17.5 HIGH, scored by disclosure@vulncheck.com (Secondary) [1]
CVSS 4.08.7 HIGH, scored by disclosure@vulncheck.com (Secondary) [1]
Published2026-09-03T19:17:31 [1]
Last Modified2026-11-20T15:17:58 [1]
Record StatusDeferred [1]

Vulnerability description

The flaw involves improper verification of cryptographic signatures, and the title describes RSA PKCS#1 v1.5 signature forgery via extra elements in a nested DigestAlgorithm [3]. The NVD record gives CWE-347 (Improper Verification of Cryptographic Signature) and does not describe consequences of the flaw [1].

Attack surface and exploitation prerequisites

The CVSS vector shows the vulnerability is accessible over a network (AV:N) and requires no special privileges (PR:N) or user interaction (UI:N) [1]. The CVSS 3.1 vector in the NVD record gives network access with no privileges required [1].

Impact analysis

The CVSS 3.1 score indicates no impact on confidentiality (C:N), a high impact on integrity (I:H), and no impact on availability (A:N) [1]. The GitHub advisory record gives the title describing RSA PKCS#1 v1.5 signature forgery via extra elements in a nested DigestAlgorithm [3].

Affected products and versions

ProductAffected VersionFixed Version
digitalbazaar forge< 1.4.1 [1]1.4.1 [1]
node-forge≤ 1.4.0 [3]1.4.1 [3]

Exploitation and threat intelligence status

CVE-2026-85393 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-12-01 [2]. The reviewed sources do not report exploitation [2].

Detection and exposure assessment

Readers should check if they are using an affected version of digitalbazaar forge or node-forge in the range < 1.4.1 or ≤ 1.4.0 [1, 3]. There are no detection steps provided by the sources [1].

Remediation

The fixed version for digitalbazaar forge is 1.4.1 [1]. For node-forge, the fixed version is also 1.4.1 [3]. No mitigation steps are provided by the sources [1, 3].

Remediation checklist

  1. Upgrade digitalbazaar forge to version 1.4.1 [1].
  2. Upgrade node-forge to version 1.4.1 [3].
  3. Review dependencies to ensure no other affected packages are in use [1].
  4. Monitoring for signs of unauthorized data modification is general guidance, not something the advisory states.

Evidence gaps

  • The sources do not describe the technical mechanics of the flaw [1, 3].
  • The sources do not provide indicators of compromise [1, 3].
  • The sources do not mention a workaround [1, 3].
  • The sources do not describe the affected component's internals [1].
  • The sources do not provide detection steps [1].

References

  1. CVE-2026-85393 record. NIST National Vulnerability Database (NVD), 2026-11-20. https://nvd.nist.gov/vuln/detail/CVE-2026-85393. Accessed 2026-12-01. Vulnerability identification, Vulnerability description, Attack surface and exploitation prerequisites, Impact analysis, Affected products and versions, Detection and exposure assessment, Remediation
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-01. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-01. Exploitation and threat intelligence status
  3. GHSA-2g46-22mc-6gwp / CVE-2026-85393 — node-forge: RSA PKCS#1 v1.5 signature forgery via extra elements in nested DigestAlgorithm. GitHub Security Advisory Database, 2026-12-01. https://github.com/advisories/GHSA-2g46-22mc-6gwp. Accessed 2026-12-01. Vulnerability description, Affected products and versions, Remediation

Written with AI assistance from the 3 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Severity breakdown

High · 8.7 CVSS 4.0 base score from the CNA (vulncheck.com)

An attacker without an account can exploit this over the network, without any user action.

Attack from
the network (remotely)
Attack complexity
low (no special conditions)
Special conditions
none
Login needed
no
User action needed
no
Impact
high on integrity, none on confidentiality and availability
Impact on other systems
none

Vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 7.5 from the CNA (vulncheck.com): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Weakness

  • CWE-347: Improper Verification of Cryptographic Signature

Affected and fixed versions

ProductAffected versionsFixed in
node-forge (npm)≤ 1.4.01.4.1
digitalbazaar forge< 1.4.11.4.1

From the GitHub Advisory Database and the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain), the GitHub Advisory Database (CC BY 4.0).

Details

Summary

RSASSA-PKCS1-v1_5 signature verification (publicKey.verify() with the default scheme, also used by X.509 certificate and PKCS#7 verification) ignored extra elements inside the nested DigestAlgorithm SEQUENCE of the DigestInfo. For RSA keys with a low public exponent (e=3) this allows signatures to be forged for an arbitrary message without the private key. This is an incomplete fix of CVE-2026-33894. Fixed in node-forge 1.4.1.

Details

In lib/rsa.js, key.verify() with the default RSASSA-PKCS1-V1_5 scheme removes the padding, parses the recovered DigestInfo with asn1.fromDer() and checks it with asn1.validate() against digestInfoValidator. The fix for CVE-2026-33894 (GHSA-ppp5-5v6c-4jwp) added a check on the element count of the outer DigestInfo SEQUENCE only. asn1.validate() ignores extra children of the nested DigestAlgorithm SEQUENCE, so elements placed after the OID and NULL parameters were neither validated nor counted. They give an attacker a block of freely chosen bytes inside an accepted DigestInfo, enough to construct a signature that verifies for an arbitrary message without the private key when the public exponent is small (Bleichenbacher-style forgery).

RFC 8017 section 8.2.2 verifies a signature by encoding the expected EMSA-PKCS1-v1_5 message and comparing it with the recovered one; section 9.2 defines the DigestInfo encoding.

The fix adds _encodeDigestInfo(), which DER-encodes the expected DigestInfo from the digest algorithm OID and the digest (with and without NULL parameters). Verification now requires the recovered DigestInfo to match one of these encodings byte for byte. This also fixes the related non-canonical encoding issue GHSA-6qrw-m8cv-hcxf.

Patches

Fixed in node-forge 1.4.1. Verification now re-encodes the expected DigestInfo and requires a byte-for-byte match (RFC 8017 section 8.2.2).

Workarounds

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

Resources

Severity

CVSS 3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N (7.5, High) CVSS 4.0 (informational): CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N (8.2) Both versions rate this High. The severity rating follows CVSS 3.1.

Proof of concept

The forged signature's EMSA-PKCS1-v1_5 block (signature^e mod n, 2048-bit key, SHA-256) has this shape:

00 01 FF FF FF FF FF FF FF FF 00
30 81 F2                          DigestInfo SEQUENCE
   30 81 CD                       DigestAlgorithm SEQUENCE
      06 09 60 86 48 01 65 03 04 02 01   sha256 OID
      05 00                       NULL parameters
      04 81 BD <189 bytes>        extra element (attacker-chosen bytes)
   04 20 <SHA-256(m)>             digest

Before 1.4.1 the extra element was ignored and publicKey.verify(digest, signature) returned true. For an e=3 key, the 189 free bytes are enough to find a signature whose cube has this form for any message, without the private key. With 1.4.1, verification throws "ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value."

Regression tests in tests/unit/rsa.js: "should reject forged nested DigestAlgorithm signature" (a keyless e=3 forgery vector) and, under "canonical DigestInfo checks", "should reject DigestInfo with extra DigestAlgorithm element". Standalone PoC: tests/pocs/ghsa-2g46-22mc-6gwp.js. Both are included in the 1.4.1 release.

Impact

Applications that verify RSASSA-PKCS1-v1_5 signatures with node-forge: publicKey.verify() with the default scheme, and X.509 certificate and PKCS#7 signature verification, which use it. If the verifying RSA public key has a low public exponent (e=3), an attacker can forge a signature for an arbitrary message that verifies as valid, without the private key. Only keys with a small public exponent such as e=3 are practically affected.

Source: GHSA-2g46-22mc-6gwp / CVE-2026-85393, GitHub Advisory Database, licensed CC BY 4.0.

Affected

  • npm:node-forge

Frequently asked questions

What is CVE-2026-85393?

CVE-2026-85393 affects the digitalbazaar forge library, with a CVSS 3.1 score of 7.5 HIGH, scored by disclosure@vulncheck.com. The vulnerability impacts versions less than 1.4.1 and is fixed in 1.4.1. The reviewed sources do not report exploitation. The main action is to upgrade to the fixed version. Weakness type: Improper Verification of Cryptographic Signature (CWE-347).

How severe is CVE-2026-85393?

CVE-2026-85393 has a CVSS 4.0 base score of 8.7 (high), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network, without any user action.

Is CVE-2026-85393 being exploited?

Not as far as is known: CVE-2026-85393 is not in CISA's Known Exploited Vulnerabilities catalog as of December 1, 2026.

Which versions are affected by CVE-2026-85393?

node-forge (npm) ≤ 1.4.0 (fixed in 1.4.1); digitalbazaar forge < 1.4.1 (fixed in 1.4.1).

How do I fix CVE-2026-85393?

Upgrade digitalbazaar forge to version 1.4.1. Upgrade node-forge to version 1.4.1. Review dependencies to ensure no other affected packages are in use.

Timeline & sources

References

Related vulnerabilities & news