Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceComponentsnpm

jsrsasign

Pure JavaScript library for RSA, RSA-PSS, ECDSA and DSA signatures, hashes and HMAC, PKCS key formats, X.509 certificates, CRL, OCSP, CMS and JWS/JWT.

In short

What to know.

Algorithms
RSA signatures, ECDSA on P-256, ECDSA on P-384, ECDSA on P-521 and 5 more6 of 9 would be broken by a large quantum computer.
Advisories
14 in the storeOSV last read 3 December 2026, 16:48 UTC.
What to do
Its source marks it deprecated or unmaintained: plan a replacement. Check your version against the advisories below. Each lists its affected and fixed versions. Plan a move away from RSA signatures, ECDSA on P-256, ECDSA on P-384, ECDSA on P-521, ECDSA on secp256k1, DSA before large quantum computers exist.

14 in the store

Advisories

Advisories for jsrsasign
AdvisoryIdAffected versionsFixed inSource's rating
jsrsasign: Missing cryptographic validation during DSA signing enables private key extractionGHSA-w8q8-93cx-6h7rbefore 11.1.1Fixed in 11.1.1Rated High
jsrsasign is vulnerable to DoS through Infinite Loop when processing zero or negative inputsGHSA-8g7p-jf3g-gxcpbefore 11.1.1Fixed in 11.1.1Rated High
jsrsasign: Negative Exponent Handling Leads to Signature Verification BypassGHSA-8qwj-4jxw-m8jwbefore 11.1.1Fixed in 11.1.1Rated High
jsrsasign: DSA signatures or X.509 certificates can be forged via DSA domain-parameter validation in KJUR.crypto.DSA.setPublicGHSA-wvqx-v3f6-w8rhbefore 11.1.1Fixed in 11.1.1Rated High
jsrsasign: Division by Zero Allows Invalid JWK Modulus to Cause Deterministic Zero Output in RSA OperationsGHSA-464q-cqxq-xhgrbefore 11.1.1Fixed in 11.1.1Rated Low
jsrsasign: Incomplete Comparison Allows DSA Private Key Recovery via Biased Nonce GenerationGHSA-5jx8-q4cp-rhh6from 7.0.0 before 11.1.1Fixed in 11.1.1Rated Critical
Marvin Attack of RSA and RSAOAEP decryption in jsrsasignGHSA-rh63-9qcf-83gfbefore 11.0.0Fixed in 11.0.0Rated High
JWS and JWT signature validation vulnerability with special charactersGHSA-3fvg-4v2m-98jffrom 4.8.0 before 10.5.25Fixed in 10.5.25Rated High
Signatures are mistakenly recognized to be valid in jsrsasignGHSA-h87q-g2wp-47pjbefore 10.2.0Fixed in 10.2.0Rated Moderate
RSA signature validation vulnerability on maleable encoded message in jsrsasignGHSA-27fj-mc8w-j9wgbefore 10.2.0Fixed in 10.2.0Rated Critical
ECDSA signature vulnerability of Minerva timing attack in jsrsasignGHSA-g753-jx37-7xwhfrom 4.0.0 before 8.0.13Fixed in 8.0.13Rated Moderate
ECDSA signature validation vulnerability by accepting wrong ASN.1 encoding in jsrsasignGHSA-p8c3-7rj8-q963from 4.0.0 before 8.0.19Fixed in 8.0.19Rated High
RSA PKCS#1 decryption vulnerability with prepending zeros in jsrsasignGHSA-xxxq-chmp-67g4before 8.0.18Fixed in 8.0.18Rated Critical
RSA-PSS signature validation vulnerability by prepending zeros in jsrsasignGHSA-q3gh-5r98-j4h3from 3.0.0 before 8.0.17Fixed in 8.0.17Rated Critical

14 listed

Findings

Findings for jsrsasign
FindingIdSeverityUpdated
RSA PKCS#1 decryption vulnerability with prepending zeros in jsrsasignNMN-2026-0040Severity Critical3 December 2026
jsrsasign: DSA signatures or X.509 certificates can be forged via DSA domain-parameter validation in KJUR.crypto.DSA.setPublicNMN-2026-0038Severity High3 December 2026
jsrsasign: Missing cryptographic validation during DSA signing enables private key extractionNMN-2026-0036Severity High3 December 2026
Marvin Attack of RSA and RSAOAEP decryption in jsrsasignNMN-2026-0034Severity High3 December 2026
RSA-PSS signature validation vulnerability by prepending zeros in jsrsasignNMN-2026-0032Severity Critical3 December 2026
ECDSA signature validation vulnerability by accepting wrong ASN.1 encoding in jsrsasignNMN-2026-0030Severity High3 December 2026
Signatures are mistakenly recognized to be valid in jsrsasignNMN-2026-0028Severity Moderate3 December 2026
ECDSA signature vulnerability of Minerva timing attack in jsrsasignNMN-2026-0027Severity Moderate3 December 2026
jsrsasign: Negative Exponent Handling Leads to Signature Verification BypassNMN-2026-0026Severity High3 December 2026
jsrsasign is vulnerable to DoS through Infinite Loop when processing zero or negative inputsNMN-2026-0025Severity High3 December 2026
jsrsasign: Incomplete Comparison Allows DSA Private Key Recovery via Biased Nonce GenerationNMN-2026-0024Severity Critical3 December 2026
jsrsasign: Division by Zero Allows Invalid JWK Modulus to Cause Deterministic Zero Output in RSA OperationsNMN-2026-0023Severity Low3 December 2026
JWS and JWT signature validation vulnerability with special charactersNMN-2026-0022Severity High3 December 2026
RSA signature validation vulnerability on maleable encoded message in jsrsasignNMN-2026-0021Severity Critical3 December 2026

Reviewed 3 December 2026

Sources

  1. npm registry metadata for jsrsasign (deprecation message)registry.npmjs.orgRetrieved 3 December 2026
  2. jsrsasign README (end of support announcement)github.comRetrieved 3 December 2026
  3. jsrsasign API reference: KJUR.crypto.ECDSAkjur.github.ioRetrieved 3 December 2026

Full record

Package
jsrsasign
Ecosystem
npm
Role
Implementation
Status
Marked deprecated or unmaintained by its source.
Notes
The registry marks 11.1.5 deprecated: "This package is no longer maintained." The README announces end of support from 14 August 2026. RSA PKCS#1 v1.5 and RSA-OAEP encryption were removed in 11.0.0 after the Marvin attack advisory.
Reviewed
Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
Advisories read
Last read from OSV 3 December 2026, 16:48 UTC
Findings
14 listed above.

Algorithms it provides

What a large quantum computer would change

  • Broken by Shor's algorithmRests on factoring or discrete logarithms. A large fault-tolerant quantum computer running Shor's algorithm would break it.RSA signatures, ECDSA on P-256, ECDSA on P-384, ECDSA on P-521, ECDSA on secp256k1, DSA
  • Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.SHA-1, SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512), HMAC

Notes describe algorithm families, not any one project.