Description
setThemeRoot() failed to enforce the sap-allowed-theme-origins allowlist. An attacker-controlled absolute cross-origin URL could be stored and used directly to construct a <link rel=stylesheet> element, even when no <meta name=sap-allowed-theme-origins> tag was present in the document. The same bypass was reachable via the ?sap-themeRoot URL parameter.Exploitation requires attacker-influenced input (e.g., a URL query parameter, tenant configuration, or user-supplied setting) to reach setThemeRoot(). A successful exploit allows an attacker to inject arbitrary CSS into the victim page, enabling:- UI redressing and clickjacking- Phishing overlays- Visual defacement- Limited data exfiltration via CSS attribute selectors targeting predictable DOM content
Published: 2026-07-14
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The setThemeRoot() function in the SAP UI5 Web Components Base library is intended to load theme styles only from approved origins. However, it fails to enforce the sap-allowed-theme-origins allowlist, allowing an attacker-controlled absolute cross‑origin URL to be stored and later used to insert a <link rel=stylesheet> directly into a page. When the victim page loads the injected stylesheet, the attacker can supply any CSS, enabling UI redressing, clickjacking, phishing overlays, visual defacement, or limited data exfiltration through CSS attribute selectors. This behavior is a classic web content injection flaw classified as CWE‑79.

Affected Systems

The flaw affects any deployment of the SAP UI5 Web Components Base library that exposes the setThemeRoot() API to external input. Since no specific version range is provided, all releases of the library that include the setThemeRoot() function are potentially vulnerable until SAP releases a fix that correctly enforces the allowlist.

Risk and Exploitability

The CVSS score of 6.1 indicates moderate severity, but the EPSS score of less than 1 % shows that exploitation is currently considered very unlikely. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires the attacker to influence input to setThemeRoot()—for example, via a URL query parameter, tenant configuration setting, or user‑supplied value. Successful exploitation permits injection of arbitrary CSS but does not provide code execution or system compromise.

Generated by OpenCVE AI on July 31, 2026 at 10:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply an updated version of the SAP UI5 Web Components Base library that enforces the allowlist in setThemeRoot()
  • If an upgrade is not immediately possible, restrict or sanitize the input accepted by setThemeRoot(); for instance, disable the sap-themeRoot query parameter or perform strict origin validation before accepting the value
  • Implement a Content‑Security‑Policy that limits style sources to same‑origin styles, such as style-src 'self', or perform server‑side URL validation to allow only whitelisted theme origins

Generated by OpenCVE AI on July 31, 2026 at 10:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 27 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Sap
Sap ui5/webcomponents-base
Vendors & Products Sap
Sap ui5/webcomponents-base

Tue, 14 Jul 2026 07:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-306 CWE-79

Tue, 14 Jul 2026 01:00:00 +0000

Type Values Removed Values Added
Description setThemeRoot() failed to enforce the sap-allowed-theme-origins allowlist. An attacker-controlled absolute cross-origin URL could be stored and used directly to construct a <link rel=stylesheet> element, even when no <meta name=sap-allowed-theme-origins> tag was present in the document. The same bypass was reachable via the ?sap-themeRoot URL parameter.Exploitation requires attacker-influenced input (e.g., a URL query parameter, tenant configuration, or user-supplied setting) to reach setThemeRoot(). A successful exploit allows an attacker to inject arbitrary CSS into the victim page, enabling:- UI redressing and clickjacking- Phishing overlays- Visual defacement- Limited data exfiltration via CSS attribute selectors targeting predictable DOM content
Title Allowlist Bypass in setThemeRoot() Enables Cross-Origin CSS Injection
Weaknesses CWE-306
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


Subscriptions

Sap Ui5/webcomponents-base
cve-icon MITRE

Status: PUBLISHED

Assigner: sap

Published:

Updated: 2026-07-14T12:50:32.398Z

Reserved: 2026-05-07T18:39:44.147Z

Link: CVE-2026-44767

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T11:00:06Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')