less-openui5 is an npm package which enables building OpenUI5 themes with Less.js. In less-openui5 before version 0.10., when processing theming resources (i.e. `*.less` files) with less-openui5 that originate from an untrusted source, those resources might contain JavaScript code which will be executed in the context of the build process. While this is a feature of the Less.js library it is an unexpected behavior in the context of OpenUI5 and SAPUI5 development. Especially in the context of UI5 Tooling which relies on less-openui5. An attacker might create a library or theme-library containing a custom control or theme, hiding malicious JavaScript code in one of the .less files. Refer to the referenced GHSA-3crj-w4f5-gwh4 for examples. Starting with Less.js version 3.0.0, the Inline JavaScript feature is disabled by default. less-openui5 however currently uses a fork of Less.js v1.6.3. Note that disabling the Inline JavaScript feature in Less.js versions 1.x, still evaluates code has additional double codes around it. We decided to remove the inline JavaScript evaluation feature completely from the code of our Less.js fork. This fix is available in less-openui5 version 0.10.0.
When processing theming resources (i.e. *.less files) with less-openui5 before 0.10.0 that originate from an untrusted source, those resources might contain JavaScript code which will be executed in the context of the build process.
Version of clean-css prior to 4.1.11 are vulnerable to Regular Expression Denial of Service (ReDoS). Untrusted input may cause catastrophic backtracking while matching regular expressions. This can cause the application to be unresponsive leading to Denial of Service.
: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.
Vulnerable Library - less-openui5-0.1.2.tgz
Build OpenUI5 themes with Less.js
Library home page: https://registry.npmjs.org/less-openui5/-/less-openui5-0.1.2.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/less-openui5/package.json
Found in HEAD commit: f3be889f8c9fd22b2c449ae56a3f17b7da1c6f51
Vulnerabilities
Details
CVE-2021-21316
### Vulnerable Library - less-openui5-0.1.2.tgzBuild OpenUI5 themes with Less.js
Library home page: https://registry.npmjs.org/less-openui5/-/less-openui5-0.1.2.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/less-openui5/package.json
Dependency Hierarchy: - :x: **less-openui5-0.1.2.tgz** (Vulnerable Library)
Found in HEAD commit: f3be889f8c9fd22b2c449ae56a3f17b7da1c6f51
Found in base branch: main
### Vulnerability Detailsless-openui5 is an npm package which enables building OpenUI5 themes with Less.js. In less-openui5 before version 0.10., when processing theming resources (i.e. `*.less` files) with less-openui5 that originate from an untrusted source, those resources might contain JavaScript code which will be executed in the context of the build process. While this is a feature of the Less.js library it is an unexpected behavior in the context of OpenUI5 and SAPUI5 development. Especially in the context of UI5 Tooling which relies on less-openui5. An attacker might create a library or theme-library containing a custom control or theme, hiding malicious JavaScript code in one of the .less files. Refer to the referenced GHSA-3crj-w4f5-gwh4 for examples. Starting with Less.js version 3.0.0, the Inline JavaScript feature is disabled by default. less-openui5 however currently uses a fork of Less.js v1.6.3. Note that disabling the Inline JavaScript feature in Less.js versions 1.x, still evaluates code has additional double codes around it. We decided to remove the inline JavaScript evaluation feature completely from the code of our Less.js fork. This fix is available in less-openui5 version 0.10.0.
Publish Date: 2021-02-16
URL: CVE-2021-21316
### CVSS 3 Score Details (7.8)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://github.com/SAP/less-openui5/security/advisories/GHSA-3crj-w4f5-gwh4
Release Date: 2021-02-16
Fix Resolution: 0.10.0
:rescue_worker_helmet: Automatic Remediation is available for this issueWS-2021-0009
### Vulnerable Library - less-openui5-0.1.2.tgzBuild OpenUI5 themes with Less.js
Library home page: https://registry.npmjs.org/less-openui5/-/less-openui5-0.1.2.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/less-openui5/package.json
Dependency Hierarchy: - :x: **less-openui5-0.1.2.tgz** (Vulnerable Library)
Found in HEAD commit: f3be889f8c9fd22b2c449ae56a3f17b7da1c6f51
Found in base branch: main
### Vulnerability DetailsWhen processing theming resources (i.e. *.less files) with less-openui5 before 0.10.0 that originate from an untrusted source, those resources might contain JavaScript code which will be executed in the context of the build process.
Publish Date: 2021-01-29
URL: WS-2021-0009
### CVSS 3 Score Details (7.5)Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: None - Availability Impact: None
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://github.com/advisories/GHSA-3crj-w4f5-gwh4
Release Date: 2021-01-29
Fix Resolution: 0.10.0
:rescue_worker_helmet: Automatic Remediation is available for this issueCVE-2017-16138
### Vulnerable Library - mime-1.2.11.tgzA comprehensive library for mime-type mapping
Library home page: https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/mime/package.json
Dependency Hierarchy: - less-openui5-0.1.2.tgz (Root Library) - less-1.6.3.tgz - :x: **mime-1.2.11.tgz** (Vulnerable Library)
Found in HEAD commit: f3be889f8c9fd22b2c449ae56a3f17b7da1c6f51
Found in base branch: main
### Vulnerability DetailsThe mime module < 1.4.1, 2.0.1, 2.0.2 is vulnerable to regular expression denial of service when a mime lookup is performed on untrusted user input.
Publish Date: 2018-06-07
URL: CVE-2017-16138
### CVSS 3 Score Details (7.5)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: High
For more information on CVSS3 Scores, click here. ### Suggested FixType: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16138
Release Date: 2018-06-07
Fix Resolution (mime): 1.4.1
Direct dependency fix Resolution (less-openui5): 0.8.0
:rescue_worker_helmet: Automatic Remediation is available for this issueWS-2019-0017
### Vulnerable Library - clean-css-2.0.8.tgzA well-tested CSS minifier
Library home page: https://registry.npmjs.org/clean-css/-/clean-css-2.0.8.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/clean-css/package.json
Dependency Hierarchy: - less-openui5-0.1.2.tgz (Root Library) - less-1.6.3.tgz - :x: **clean-css-2.0.8.tgz** (Vulnerable Library)
Found in HEAD commit: f3be889f8c9fd22b2c449ae56a3f17b7da1c6f51
Found in base branch: main
### Vulnerability DetailsVersion of clean-css prior to 4.1.11 are vulnerable to Regular Expression Denial of Service (ReDoS). Untrusted input may cause catastrophic backtracking while matching regular expressions. This can cause the application to be unresponsive leading to Denial of Service.
Publish Date: 2018-03-06
URL: WS-2019-0017
### 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 FixType: Upgrade version
Origin: https://github.com/advisories/GHSA-wxhq-pm8v-cw75
Release Date: 2018-03-06
Fix Resolution (clean-css): 4.1.11
Direct dependency fix Resolution (less-openui5): 0.8.0
:rescue_worker_helmet: Automatic Remediation is available for this issue:rescue_worker_helmet: Automatic Remediation is available for this issue.