Arbitrary code execution in less-openui5

MonitorData or code tampering with local access.
6.3MEDIUM

CVE-2021-21316

Key Information:

Vendor

SAP

CVE ID
CVE ID:
CVE-2021-21316
Vendor
CVE Published:
16 February 2021

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • No: Needs local access
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Monitor

Low risk for most. Patch in your normal cycle.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory β†—
2Why it's rated "Monitor"
  • Its CVSS severity is medium (6.3).

What is CVE-2021-21316?

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.

Affected Version(s)

less-openui5 < 0.10.0

References

Memory Corruption Vulnerability in SAP NetWeaver Application Server ABAP

CVE-2026-76964
SAPSAP Netweaver As Abap ...πŸ‘Ύ10CRITICAL

SSRF in SAP Cloud SDK for Python

CVE-2026-89111
SAPSAP Cloud10CRITICAL

Memory Safety Issue in Extended Passport Protocol Library

CVE-2026-44756
SAPSAP Extended Passport ...πŸ˜„πŸ‘Ύ10CRITICAL
View more SAP vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
6.3
Severity:
MEDIUM
Confidentiality:
None
Integrity:
High
Availability:
None
Attack Vector:
Local
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Changed
.