pactflow / example-consumer

An example of a consumer that uses Pact+PactFlow to create a consumer driven contract with its provider
https://pactflow.io
MIT License
25 stars 515 forks source link

CVE-2021-3765 (High) detected in validator-13.5.2.tgz, validator-12.2.0.tgz - autoclosed #76

Closed mend-for-github-com[bot] closed 2 years ago

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

CVE-2021-3765 - High Severity Vulnerability

Vulnerable Libraries - validator-13.5.2.tgz, validator-12.2.0.tgz

validator-13.5.2.tgz

String validation and sanitization

Library home page: https://registry.npmjs.org/validator/-/validator-13.5.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/validator/package.json

Dependency Hierarchy: - swagger-mock-validator-10.0.0.tgz (Root Library) - :x: **validator-13.5.2.tgz** (Vulnerable Library)

validator-12.2.0.tgz

String validation and sanitization

Library home page: https://registry.npmjs.org/validator/-/validator-12.2.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/z-schema/node_modules/validator/package.json

Dependency Hierarchy: - swagger-mock-validator-10.0.0.tgz (Root Library) - swagger-parser-10.0.2.tgz - swagger-parser-10.0.2.tgz - z-schema-4.2.3.tgz - :x: **validator-12.2.0.tgz** (Vulnerable Library)

Found in HEAD commit: 3912fdf164197aec6dc6c42ef1edc2f39d68619f

Found in base branch: master

Vulnerability Details

validator.js is vulnerable to Inefficient Regular Expression Complexity

Publish Date: 2021-11-02

URL: CVE-2021-3765

CVSS 3 Score Details (7.5)

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: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-qgmg-gppg-76g5

Release Date: 2021-11-02

Fix Resolution (validator): 13.7.0

Direct dependency fix Resolution (swagger-mock-validator): 10.0.1

Fix Resolution (validator): 13.7.0

Direct dependency fix Resolution (swagger-mock-validator): 10.0.1


mend-for-github-com[bot] commented 2 years 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.