Improper Verification of Cryptographic Signature

Summary

CVECVE-2022-25898
StatePUBLISHED
Assignersnyk
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-07-01 20:15:08 UTC
Updated2026-06-22 03:18:31 UTC
DescriptionThe package jsrsasign before 10.5.25 are vulnerable to Improper Verification of Cryptographic Signature when JWS or JWT signature with non Base64URL encoding special characters or number escaped characters may be validated as valid by mistake. Workaround: Validate JWS or JWT signature if it has Base64URL and dot safe string before executing JWS.verify() or JWS.verifyJWT() method.

Risk And Classification

Primary CVSS: v3.1 9.8 CRITICAL from [email protected]

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS: 0.009120000 probability, percentile 0.554020000 (date 2026-06-24)

Problem Types: CWE-347 | Improper Verification of Cryptographic Signature


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary9.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.1[email protected]Secondary7.7HIGHCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H
3.1CNADECLARED7.7HIGHCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H/E:P
2.0[email protected]Primary7.5AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial

AV:N/AC:L/Au:N/C:P/I:P/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Kjur Jsrsasign All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na Jsrsasign affected unspecified 10.5.25 custom Not specified

References

ReferenceSourceLinkTags
Release CVE-2022-25898 Security fix in JWS and JWT validation · kjur/jsrsasign · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Release Notes, Third Party Advisory
Improper Verification of Cryptographic Signature in org.webjars.bower:jsrsasign | CVE-2022-25898 | Snyk af854a3a-2127-422b-91ae-364da2661108 snyk.io Exploit, Patch, Third Party Advisory
CVE-2022-25898 Security fix in JWS and JWT validation · kjur/jsrsasign@4536a6e · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Patch, Third Party Advisory
Improper Verification of Cryptographic Signature in jsrsasign | CVE-2022-25898 | Snyk af854a3a-2127-422b-91ae-364da2661108 snyk.io Exploit, Patch, Third Party Advisory
Improper Verification of Cryptographic Signature in org.webjars.bowergithub.kjur:jsrsasign | CVE-2022-25898 | Snyk af854a3a-2127-422b-91ae-364da2661108 snyk.io Exploit, Patch, Third Party Advisory
Improper Verification of Cryptographic Signature in org.webjars.npm:jsrsasign | CVE-2022-25898 | Snyk af854a3a-2127-422b-91ae-364da2661108 snyk.io Exploit, Patch, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Adi Malyanker (en)

CNA: Or David (en)

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report