pactflow / example-bi-directional-provider-postman

Example provider using Postman collections and PactFlow's bi-directional contracts feature
MIT License
7 stars 46 forks source link

CVE-2022-25887 (High) detected in sanitize-html-1.20.1.tgz #27

Closed mend-for-github-com[bot] closed 1 month ago

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

CVE-2022-25887 - High Severity Vulnerability

Vulnerable Library - sanitize-html-1.20.1.tgz

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis

Library home page: https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.20.1.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/package.json

Dependency Hierarchy: - newman-5.2.3.tgz (Root Library) - postman-collection-3.6.11.tgz - :x: **sanitize-html-1.20.1.tgz** (Vulnerable Library)

Found in HEAD commit: ac1ca19d725736782d63f30f1041584f86cad037

Found in base branch: master

Vulnerability Details

The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular expression replacement logic of HTML comment removal.

Publish Date: 2022-08-30

URL: CVE-2022-25887

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://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25887

Release Date: 2022-08-30

Fix Resolution (sanitize-html): 2.7.1

Direct dependency fix Resolution (newman): 5.2.4