Vulnerabilities

1 via 2 paths

Dependencies

201

Source

GitHub

Commit

ffa72346

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

medium severity
new

Use of a Cryptographic Primitive with a Risky Implementation

  • Vulnerable module: elliptic
  • Introduced through: rewiremock@3.14.6

Detailed paths

  • Introduced through: react-native-testing-mocks@JoseLion/react-native-testing-mocks#ffa7234600ce87b760dd602d5ba02c60b8f77cd3 rewiremock@3.14.6 node-libs-browser@2.2.1 crypto-browserify@3.12.1 browserify-sign@4.2.5 elliptic@6.6.1
  • Introduced through: react-native-testing-mocks@JoseLion/react-native-testing-mocks#ffa7234600ce87b760dd602d5ba02c60b8f77cd3 rewiremock@3.14.6 node-libs-browser@2.2.1 crypto-browserify@3.12.1 create-ecdh@4.0.4 elliptic@6.6.1

Overview

elliptic is a fast elliptic-curve cryptography implementation in plain javascript.

Affected versions of this package are vulnerable to Use of a Cryptographic Primitive with a Risky Implementation due to the incorrect computation of the byte-length of k value with leading zeros resulting in its truncation. An attacker can obtain the secret key by analyzing both a faulty signature generated by a vulnerable implementation and a correct signature for the same inputs.

Note:

There is a distinct but related issue CVE-2024-48948.

Remediation

There is no fixed version for elliptic.

References