The 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.
CVE-2022-25898 - High Severity Vulnerability
Vulnerable Libraries - jsrsasign-10.5.0.tgz, jsrsasign-8.0.24.tgz
jsrsasign-10.5.0.tgz
opensource free pure JavaScript cryptographic library supports RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp and CAdES and JSON Web Signature(JWS)/Token(JWT)/Key(JWK)
Library home page: https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.5.0.tgz
Path to dependency file: /app/node/package.json
Path to vulnerable library: /app/node/node_modules/jsrsasign/package.json
Dependency Hierarchy: - fabric-ca-client-2.2.10.tgz (Root Library) - :x: **jsrsasign-10.5.0.tgz** (Vulnerable Library)
jsrsasign-8.0.24.tgz
opensource free pure JavaScript cryptographic library supports RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp and CAdES and JSON Web Signature(JWS)/Token(JWT)/Key(JWK)
Library home page: https://registry.npmjs.org/jsrsasign/-/jsrsasign-8.0.24.tgz
Path to dependency file: /chaincode/simple/node/package.json
Path to vulnerable library: /chaincode/simple/node/node_modules/fabric-shim/node_modules/jsrsasign/package.json
Dependency Hierarchy: - fabric-shim-1.4.6.tgz (Root Library) - :x: **jsrsasign-8.0.24.tgz** (Vulnerable Library)
Found in HEAD commit: 655167764fcdebd1047d2f63249a7596884c4b03
Found in base branch: main
Vulnerability Details
The 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.
Publish Date: 2022-07-01
URL: CVE-2022-25898
CVSS 3 Score Details (7.7)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: Low - User Interaction: None - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Release Date: 2022-07-01
Fix Resolution (jsrsasign): 10.5.25
Direct dependency fix Resolution (fabric-ca-client): 2.2.11
Fix Resolution (jsrsasign): 10.5.25
Direct dependency fix Resolution (fabric-shim): 2.0.0
Step up your Open Source Security Game with Mend here