CVE-2021-21316Arbitrary code execution in less-openui5
- 6.3MediumCVSS base score
- 1.0%Exploitation in 30 daysEPSS · top 36% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By GitHub_M
- 56 days later
· 56 days later
Published
- 3 years later
· 3 years later
Record updated
- 2 years later
· 2 years later
EPSS rose above 1%
0.99% → 1.0%
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium6.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N |
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 1.0% · top 36% of all CVEs (19 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.3.
Affected products
- affected < 0.10.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmless-openui5GHSA-3crj-w4f5-gwh4 (opens in a new tab)
References
References5
- https://github.com/SAP/less-openui5/security/advisories/GHSA-3crj-w4f5-gwh4 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/SAP/less-openui5/commit/c0d3a8572974a20ea6cee42da11c614a54f100e8 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/SAP/less-openui5/releases/tag/v0.10.0 (opens in a new tab)x_refsource_MISCx_transferred
- https://www.npmjs.com/package/less-openui5 (opens in a new tab)x_refsource_MISCx_transferred
- http://lesscss.org/usage/#less-options-enable-inline-javascript-deprecated- (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0483 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-3crj-w4f5-gwh4 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-21316)Record last updated .