snowdensb / questdb

An open source SQL database designed to process time series data, faster
https://questdb.io
Apache License 2.0
0 stars 1 forks source link

echarts-4.8.0.tgz: 1 vulnerabilities (highest severity is: 6.2) reachable #171

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

mend-for-github-com[bot] commented 6 months ago
Vulnerable Library - echarts-4.8.0.tgz

Path to dependency file: /ui/package.json

Path to vulnerable library: /ui/node_modules/zrender/package.json

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (echarts version) Remediation Possible** Reachability
CVE-2021-39227 Medium 6.2 zrender-4.3.1.tgz Transitive 5.2.1

Reachable

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

Details

CVE-2021-39227 ### Vulnerable Library - zrender-4.3.1.tgz

A lightweight canvas library.

Library home page: https://registry.npmjs.org/zrender/-/zrender-4.3.1.tgz

Path to dependency file: /ui/package.json

Path to vulnerable library: /ui/node_modules/zrender/package.json

Dependency Hierarchy: - echarts-4.8.0.tgz (Root Library) - :x: **zrender-4.3.1.tgz** (Vulnerable Library)

Found in base branch: master

### Reachability Analysis This vulnerability is potentially reachable ``` questdb-console-0.0.1/src/js/console/quick-vis.js (Application) -> echarts-4.8.0/lib/echarts.js (Extension) -> echarts-4.8.0/lib/coord/geo/mapDataStorage.js (Extension) -> zrender-4.3.1/lib/tool/parseSVG.js (Extension) -> ❌ zrender-4.3.1/lib/graphic/shape/Ellipse.js (Vulnerable Component) ```

### Vulnerability Details

ZRender is a lightweight graphic library providing 2d draw for Apache ECharts. In versions prior to 5.2.1, using `merge` and `clone` helper methods in the `src/core/util.ts` module results in prototype pollution. It affects the popular data visualization library Apache ECharts, which uses and exports these two methods directly. The GitHub Security Advisory page for this vulnerability contains a proof of concept. This issue is patched in ZRender version 5.2.1. One workaround is available: Check if there is `__proto__` in the object keys. Omit it before using it as an parameter in these affected methods. Or in `echarts.util.merge` and `setOption` if project is using ECharts.

Publish Date: 2021-09-17

URL: CVE-2021-39227

### CVSS 3 Score Details (6.2)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - 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-2021-39227

Release Date: 2021-09-17

Fix Resolution (zrender): 5.2.1

Direct dependency fix Resolution (echarts): 5.2.1

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

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