CVE-2021-41038 Improper Verification of Communication Channel in @theia/plugin-ext

Medium 6.1 Published Updated

Attackers can hijack Webview contents in Eclipse Theia via postMessage, potentially executing malicious code or bypassing security controls.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-41038?

CVE-2021-41038 is a medium-severity cross-site scripting vulnerability in @theia/plugin-ext, published on 10 Nov 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

In versions of the @theia/plugin-ext component of Eclipse Theia prior to 1.18.0, Webview contents can be hijacked via postMessage().

Weakness: CWE-940

Which versions are affected by CVE-2021-41038?

2 open source packages ship an affected version, including @theia/plugin-ext. It affects 1 product.

PackageAffectedFixed in
@theia/plugin-ext npmAll versions1.18.0
@theia/plugin-ext npmAll versions1.18.0

Products include Eclipse Theia.

How do I fix CVE-2021-41038?

Upgrade @theia/plugin-ext to 1.18.0 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-41038 being exploited?

There is no known exploitation of CVE-2021-41038 in the wild and no public exploit code.

Sources

Also known as GHSA-w6v7-w58j-pg5r.

Is CVE-2021-41038 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free