AlexRogalskiy / typescript-tools

Collection of TypeScript tools & utilities
GNU General Public License v3.0
2 stars 0 forks source link

CVE-2021-23382 (Medium) detected in postcss-7.0.17.tgz, postcss-6.0.1.tgz - autoclosed #2013

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

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

CVE-2021-23382 - Medium Severity Vulnerability

Vulnerable Libraries - postcss-7.0.17.tgz, postcss-6.0.1.tgz

postcss-7.0.17.tgz

Tool for transforming styles with JS plugins

Library home page: https://registry.npmjs.org/postcss/-/postcss-7.0.17.tgz

Path to dependency file: typescript-tools/package.json

Path to vulnerable library: typescript-tools/node_modules/@reshadow/postcss/node_modules/postcss/package.json

Dependency Hierarchy: - reshadow-0.0.1-alpha.80.tgz (Root Library) - postcss-0.0.1-alpha.80.tgz - :x: **postcss-7.0.17.tgz** (Vulnerable Library)

postcss-6.0.1.tgz

Tool for transforming styles with JS plugins

Library home page: https://registry.npmjs.org/postcss/-/postcss-6.0.1.tgz

Path to dependency file: typescript-tools/package.json

Path to vulnerable library: typescript-tools/node_modules/css-modules-loader-core/node_modules/postcss/package.json

Dependency Hierarchy: - reshadow-0.0.1-alpha.80.tgz (Root Library) - babel-0.0.1-alpha.80.tgz - css-modules-loader-core-1.1.0.tgz - :x: **postcss-6.0.1.tgz** (Vulnerable Library)

Found in HEAD commit: 94a055e45bd6419b98a3f6c030632bac663aa978

Vulnerability Details

The package postcss before 8.2.13 are vulnerable to Regular Expression Denial of Service (ReDoS) via getAnnotationURL() and loadAnnotation() in lib/previous-map.js. The vulnerable regexes are caused mainly by the sub-pattern \/\*\s* sourceMappingURL=(.*).

Publish Date: 2021-04-26

URL: CVE-2021-23382

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

Release Date: 2021-04-26

Fix Resolution: postcss - 8.2.13


Step up your Open Source Security Game with WhiteSource here

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

:information_source: This issue was automatically closed by WhiteSource because it is a duplicate of an existing issue: #2026

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

:information_source: This issue was automatically closed by WhiteSource because it is a duplicate of an existing issue: #2026

github-actions[bot] commented 2 years ago

This issue is potentially a duplicate of one of the following issues:

github-actions[bot] commented 2 years ago

Sorry, friend. As far as this ol' bot can tell, your issue does not properly use one of this repo's available issue templates. Please try again, if you like. (And if I'm confused, please let us know. 😬)

Did you see the memo about this? (log)

github-actions[bot] commented 2 years ago

👋 Thanks for reporting!

github-actions[bot] commented 2 years ago

Thank you for your report, the issue you have reported has just been fixed.

github-actions[bot] commented 2 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://github.com/AlexRogalskiy/typescript-tools/blob/master/.github/ISSUE_TEMPLATE/bug_report.md), and link to this old issue if necessary.