Intel

AIKIDO-2026-760121

@ui5/webcomponents-base is vulnerable to Origin Validation Error

Origin Validation Error Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 13, 2026

35

Low Risk

This Affects:

JS@ui5/webcomponents-base
1.12.0 - 2.21.1
Fixed in 2.22.0
Are you affected? Scan for Free

TL;DR

@ui5/webcomponents-base builds a theme CSS <link> from the configurable themeRoot value in validateThemeRoot. The origin check treats any value that starts with / as a same-origin relative path, so a protocol-relative URL such as //attacker.example/path is resolved against the page origin and skips the sap-allowed-theme-origins allowlist entirely. An application that derives themeRoot from attacker-influenced input then inserts a stylesheet link pointing at an external, attacker-controlled origin, loading untrusted CSS into the page. The fix excludes protocol-relative URLs from the relative-path branch and routes them through the origin allowlist validation.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application sets the theme root from attacker-influenced input.

Background info

@ui5/webcomponents-base is vulnerable to Origin Validation Error in versions 1.12.0 - 2.21.1.

How to fix this

Upgrade the @ui5/webcomponents-base library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform