@ui5/webcomponents-base is vulnerable to Inclusion of Functionality from Untrusted Control Sphere
59
CVE Score
Medium
Inclusion of Functionality from Untrusted Control Sphere
The framework validates the configured themeRoot in validateThemeRoot before creating the theme CSS <link> element that loads style variables. Protocol-relative URLs such as //attacker.example start with /, so they are treated as relative paths and resolved against the current page, producing the attacker origin and bypassing the origin allowlist that is enforced for other absolute cross-origin URLs. An application that lets untrusted input reach the themeRoot configuration therefore loads theme stylesheets from an attacker-controlled origin, enabling external CSS injection. The fix resolves protocol-relative and relative inputs to the current origin and only creates the link element from a validated, normalized theme root.
Upgrade the @ui5/webcomponents-base library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application has not disabled sap-ui-theme URL-parameter configuration.
1.12.0 - 2.17.1
Fixed in 2.17.2@ui5/webcomponents-base is vulnerable to Inclusion of Functionality from Untrusted Control Sphere in versions 1.12.0 - 2.17.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.