snowdensb / job-dsl-plugin

A Groovy DSL for Jenkins Jobs - Sweeeeet!
Apache License 2.0
0 stars 0 forks source link

highlight.js8.4: 1 vulnerabilities (highest severity is: 5.8) #258

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

mend-for-github-com[bot] commented 7 months ago
Vulnerable Library - highlight.js8.4

JavaScript syntax highlighter with language auto-detection and zero dependencies.

Library home page: https://github.com/highlightjs/highlight.js.git

Vulnerable Source Files (1)

/job-dsl-api-viewer/build/webjars/highlightjs/8.4-4/highlight.js

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (highlight.js8.4 version) Remediation Possible** Reachability
CVE-2020-26237 Medium 5.8 highlight.js8.4 Direct 9.18.2, 10.1.2

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

Details

CVE-2020-26237 ### Vulnerable Library - highlight.js8.4

JavaScript syntax highlighter with language auto-detection and zero dependencies.

Library home page: https://github.com/highlightjs/highlight.js.git

Found in base branch: master

### Vulnerable Source Files (1)

/job-dsl-api-viewer/build/webjars/highlightjs/8.4-4/highlight.js

### Vulnerability Details

Highlight.js is a syntax highlighter written in JavaScript. Highlight.js versions before 9.18.2 and 10.1.2 are vulnerable to Prototype Pollution. A malicious HTML code block can be crafted that will result in prototype pollution of the base object's prototype during highlighting. If you allow users to insert custom HTML code blocks into your page/app via parsing Markdown code blocks (or similar) and do not filter the language names the user can provide you may be vulnerable. The pollution should just be harmless data but this can cause problems for applications not expecting these properties to exist and can result in strange behavior or application crashes, i.e. a potential DOS vector. If your website or application does not render user provided data it should be unaffected. Versions 9.18.2 and 10.1.2 and newer include fixes for this vulnerability. If you are using version 7 or 8 you are encouraged to upgrade to a newer release.

Publish Date: 2020-11-24

URL: CVE-2020-26237

### CVSS 3 Score Details (5.8)

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/highlightjs/highlight.js/security/advisories/GHSA-vfrc-7r7c-w9mx

Release Date: 2020-11-24

Fix Resolution: 9.18.2, 10.1.2