ChoeMinji / react-16.0.0

MIT License
0 stars 0 forks source link

CVE-2023-23627 (Medium) detected in sanitize-2.1.0.gem #226

Open mend-bolt-for-github[bot] opened 1 year ago

mend-bolt-for-github[bot] commented 1 year ago

CVE-2023-23627 - Medium Severity Vulnerability

Vulnerable Library - sanitize-2.1.0.gem

Library home page: https://rubygems.org/gems/sanitize-2.1.0.gem

Path to dependency file: /docs/Gemfile.lock

Path to vulnerable library: /docs/Gemfile.lock

Dependency Hierarchy: - :x: **sanitize-2.1.0.gem** (Vulnerable Library)

Found in HEAD commit: b9bd902dad80b8b5fa55a183526357266ae47bcc

Found in base branch: master

Vulnerability Details

Sanitize is an allowlist-based HTML and CSS sanitizer. Versions 5.0.0 and later, prior to 6.0.1, are vulnerable to Cross-site Scripting. When Sanitize is configured with a custom allowlist that allows `noscript` elements, attackers are able to include arbitrary HTML, resulting in XSS (cross-site scripting) or other undesired behavior when that HTML is rendered in a browser. The default configurations do not allow `noscript` elements and are not vulnerable. This issue only affects users who are using a custom config that adds `noscript` to the element allowlist. This issue has been patched in version 6.0.1. Users who are unable to upgrade can prevent this issue by using one of Sanitize's default configs or by ensuring that their custom config does not include `noscript` in the element allowlist.

Publish Date: 2023-01-27

URL: CVE-2023-23627

CVSS 3 Score Details (6.1)

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/rgrove/sanitize/security/advisories/GHSA-fw3g-2h3j-qmm7

Release Date: 2023-01-28

Fix Resolution: sanitize - 6.0.1


Step up your Open Source Security Game with Mend here