vipinsun / cactus

Hyperledger Cactus is a new approach to the blockchain interoperability problem
https://wiki.hyperledger.org/display/cactus
Apache License 2.0
0 stars 1 forks source link

CVE-2022-25898 (Critical) detected in jsrsasign-10.4.0.tgz, jsrsasign-8.0.24.tgz #262

Open mend-bolt-for-github[bot] opened 2 years ago

mend-bolt-for-github[bot] commented 2 years ago

CVE-2022-25898 - Critical Severity Vulnerability

Vulnerable Libraries - jsrsasign-10.4.0.tgz, jsrsasign-8.0.24.tgz

jsrsasign-10.4.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.4.0.tgz

Path to dependency file: /packages/cactus-plugin-ledger-connector-fabric/package.json

Path to vulnerable library: /packages/cactus-plugin-ledger-connector-fabric/node_modules/jsrsasign/package.json

Dependency Hierarchy: - :x: **jsrsasign-10.4.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: /packages/ledger-plugin/fabric/validator/unit-test/package.json

Path to vulnerable library: /packages/ledger-plugin/fabric/validator/unit-test/node_modules/jsrsasign/package.json,/packages/cactus-plugin-ledger-connector-fabric/node_modules/jsrsasign/package.json,/packages/cactus-test-plugin-ledger-connector-besu/node_modules/jsrsasign/package.json,/packages/cactus-plugin-keychain-vault/node_modules/jsrsasign/package.json,/packages/cactus-plugin-ledger-connector-xdai/node_modules/jsrsasign/package.json,/packages/node_modules/jsrsasign/package.json,/packages/cactus-test-cmd-api-server/node_modules/jsrsasign/package.json,/packages/ledger-plugin/fabric/validator/src/node_modules/jsrsasign/package.json,/packages/cactus-plugin-htlc-eth-besu/node_modules/jsrsasign/package.json,/packages/cactus-test-plugin-ledger-connector-quorum/node_modules/jsrsasign/package.json,/packages/cactus-test-tooling/node_modules/jsrsasign/package.json,/packages/cactus-plugin-ledger-connector-besu/node_modules/jsrsasign/package.json,/packages/cactus-plugin-ledger-connector-quorum/node_modules/jsrsasign/package.json,/packages/cactus-test-api-client/node_modules/jsrsasign/package.json,/packages/cactus-cmd-api-server/node_modules/jsrsasign/package.json,/packages/cactus-plugin-ledger-connector-corda/node_modules/jsrsasign/package.json,/packages/cactus-plugin-ledger-connector-fabric/node_modules/fabric-network/node_modules/jsrsasign/package.json,/packages/cactus-plugin-ledger-connector-fabric/node_modules/fabric-ca-client/node_modules/jsrsasign/package.json,/packages/cactus-plugin-ledger-connector-fabric/node_modules/fabric-common/node_modules/jsrsasign/package.json

Dependency Hierarchy: - fabric-ca-client-2.3.0-snapshot.49.tgz (Root Library) - :x: **jsrsasign-8.0.24.tgz** (Vulnerable Library)

Found in HEAD commit: ceec9f73fd05cfdbf0061d53c9d0c42d43e85d22

Found in base branch: master

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 (9.8)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2022-07-01

Fix Resolution: 10.5.25


Step up your Open Source Security Game with Mend here

mend-bolt-for-github[bot] commented 11 months ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-bolt-for-github[bot] commented 11 months ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.