amaybaum-prod / platform

Open source Slack-alternative in Golang and React - Mattermost
http://mattermost.org
Other
0 stars 0 forks source link

highlight.js-9.2.0.tgz: 1 vulnerabilities (highest severity is: 5.3) reachable #7

Open mend-for-github-com[bot] opened 8 months ago

mend-for-github-com[bot] commented 8 months ago
Vulnerable Library - highlight.js-9.2.0.tgz

Syntax highlighting with language autodetection.

Library home page: https://registry.npmjs.org/highlight.js/-/highlight.js-9.2.0.tgz

Path to dependency file: /webapp/package.json

Path to vulnerable library: /webapp/node_modules/highlight.js/package.json

Found in HEAD commit: 50e77553f48439042a557ffe16d3a033f065c09a

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (highlight.js version) Remediation Possible** Reachability
WS-2020-0208 Medium 5.3 highlight.js-9.2.0.tgz Direct 10.4.1

Reachable

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

WS-2020-0208 ### Vulnerable Library - highlight.js-9.2.0.tgz

Syntax highlighting with language autodetection.

Library home page: https://registry.npmjs.org/highlight.js/-/highlight.js-9.2.0.tgz

Path to dependency file: /webapp/package.json

Path to vulnerable library: /webapp/node_modules/highlight.js/package.json

Dependency Hierarchy: - :x: **highlight.js-9.2.0.tgz** (Vulnerable Library)

Found in HEAD commit: 50e77553f48439042a557ffe16d3a033f065c09a

Found in base branch: master

### Reachability Analysis This vulnerability is potentially reachable ``` mattermost-0.0.1/utils/syntax_hightlighting.js (Application) -> ❌ highlight.js-9.2.0/lib/languages/javascript.js (Vulnerable Component) ```

### Vulnerability Details

If are you are using Highlight.js to highlight user-provided data you are possibly vulnerable. On the client-side (in a browser or Electron environment) risks could include lengthy freezes or crashes... On the server-side infinite freezes could occur... effectively preventing users from accessing your app or service (ie, Denial of Service). This is an issue with grammars shipped with the parser (and potentially 3rd party grammars also), not the parser itself. If you are using Highlight.js with any of the following grammars you are vulnerable. If you are using highlightAuto to detect the language (and have any of these grammars registered) you are vulnerable.

Publish Date: 2020-12-04

URL: WS-2020-0208

### 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: Low - Integrity Impact: None - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Release Date: 2020-12-04

Fix Resolution: 10.4.1

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.

:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.

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

mend-for-github-com[bot] commented 6 months ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.