gmright2 / DEFOLD_Gmright_INLINE

MIT License
0 stars 5 forks source link

CVE-2018-1107 (Medium) detected in is-my-json-valid-2.13.1.tgz #91

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

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

CVE-2018-1107 - Medium Severity Vulnerability

Vulnerable Library - is-my-json-valid-2.13.1.tgz

A JSONSchema validator that uses code generation to be extremely fast

Library home page: https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.13.1.tgz

Path to dependency file: /Gmright/Milestones/Gmright-market/cordova-plugin-purchase-master/cordova-plugin-purchase-master/package.json

Path to vulnerable library: /Gmright/Milestones/Gmright-market/cordova-plugin-purchase-master/cordova-plugin-purchase-master/node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/package.json,/Gmright/Milestones/Gmright-market/cordova-plugin-purchase-master/cordova-plugin-purchase-master/node_modules/npm/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/package.json

Dependency Hierarchy: - cordova-6.5.0.tgz (Root Library) - cordova-lib-6.5.0.tgz - npm-2.15.12.tgz - request-2.74.0.tgz - har-validator-2.0.6.tgz - :x: **is-my-json-valid-2.13.1.tgz** (Vulnerable Library)

Found in HEAD commit: 5a5d4c900da41f0d7255d81b5f9df0922a2b78e6

Found in base branch: master

Vulnerability Details

It was discovered that the is-my-json-valid JavaScript library used an inefficient regular expression to validate JSON fields defined to have email format. A specially crafted JSON file could cause it to consume an excessive amount of CPU time when validated.

Publish Date: 2021-03-30

URL: CVE-2018-1107

CVSS 3 Score Details (5.3)

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-4hpf-3wq7-5rpr

Release Date: 2021-03-30

Fix Resolution (is-my-json-valid): 2.17.2

Direct dependency fix Resolution (cordova): 6.5.1-nightly.2017.2.15.abe6b8f1


Step up your Open Source Security Game with Mend here