pactflow / example-bi-directional-consumer-cypress

Cypress bi-directional contract testing example project
MIT License
8 stars 27 forks source link

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

Closed mend-for-github-com[bot] closed 7 months 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: 28669a49080d16cfb62291c1a10d55b431d61474

Found in base branch: main

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