Vulnerabilities |
3 via 4 paths |
|---|---|
Dependencies |
201 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
medium severity
new
- Vulnerable module: minimatch
- Introduced through: babel-plugin-module-resolver@5.0.3
Detailed paths
-
Introduced through: react-native-testing-mocks@JoseLion/react-native-testing-mocks › babel-plugin-module-resolver@5.0.3 › glob@9.3.5 › minimatch@8.0.7
Overview
minimatch is a minimal matching utility.
Affected versions of this package are vulnerable to Asymmetric Resource Consumption (Amplification) in the firstPhasePreProcess method, where the **/.. transform clones a globParts entry and pushes the clone back onto the same array inside a do...while (didSomething) fixpoint loop. An attacker can exhaust CPU and memory by supplying a glob pattern whose **/.. sequences regenerate entries during preprocessing, which secondPhasePreProcess then compares in an O(n^2) pairwise partsMatch pass over the expanded set. Exploitation requires the pattern to be parsed with optimizationLevel set to 2 or higher.
Remediation
Upgrade minimatch to version 11.0.1 or higher.
References
medium severity
- Vulnerable module: elliptic
- Introduced through: rewiremock@3.14.6
Detailed paths
-
Introduced through: react-native-testing-mocks@JoseLion/react-native-testing-mocks › rewiremock@3.14.6 › node-libs-browser@2.2.1 › crypto-browserify@3.12.1 › browserify-sign@4.2.6 › elliptic@6.6.1
-
Introduced through: react-native-testing-mocks@JoseLion/react-native-testing-mocks › rewiremock@3.14.6 › node-libs-browser@2.2.1 › crypto-browserify@3.12.1 › create-ecdh@4.0.5 › 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
medium severity
new
- Vulnerable module: glob
- Introduced through: babel-plugin-module-resolver@5.0.3
Detailed paths
-
Introduced through: react-native-testing-mocks@JoseLion/react-native-testing-mocks › babel-plugin-module-resolver@5.0.3 › glob@9.3.5
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the walkCB, walkCB2, walkCBSync, and walkCB2Sync methods of src/walker.ts, where each abort branch calls cb() without returning. An attacker can keep a walk consuming filesystem I/O and CPU after it has already been aborted, by driving a traversal that the caller tries to bound, because execution continues past the abort into processPatterns(), readdirCB(), and recursive walkCB2() calls. This affects only callers that rely on the signal option or AbortSignal.timeout() to cancel a walk, and applies to both glob() and globStream().
Remediation
Upgrade glob to version 13.0.7, 14.0.2 or higher.