CVE-2020-27224: Cross-site Scripting (XSS) in Eclipse Theia

@theia/preview Updated 02 Oct 2025

Summary

13/04/2021
Yes i
Critical
9.6

CVE-2020-27224: Cross-site Scripting (XSS) in Eclipse Theia. Affects @theia/preview versions < 1.3.0. Fixed in 1.3.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Eclipse Theia is an open-source extensible platform for developing multi-language cloud and desktop IDEs. It provides a rich set of APIs and services for building web-based development tools. The Markdown Preview (@theia/preview) is a component of Eclipse Theia that allows users to preview Markdown files. This vulnerability affects versions up to and including 1.2.0 of Eclipse Theia.

Vulnerability Detail

The Markdown Preview component in Eclipse Theia is susceptible to a Cross-site Scripting (XSS) vulnerability. This type of vulnerability allows an attacker to inject malicious scripts into web pages viewed by other users. In the case of Eclipse Theia, an attacker can exploit this vulnerability to execute arbitrary code, potentially leading to unauthorized access, data theft, or other malicious activities.

How To Fix

Minimum fixed version

1.3.0

This is the first release that contains the fix.

npm install @theia/preview@1.3.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If updating to the latest version is not immediately possible, a temporary workaround is to disable or remove the Markdown Preview component from the Eclipse Theia installation. This can be done by modifying the configuration files or removing the corresponding package from the dependencies.

Conclusion

In conclusion, Eclipse Theia versions up to and including 1.2.0 are vulnerable to a Cross-site Scripting (XSS) issue in the Markdown Preview component. It is crucial to update to version 1.3.0 or later to mitigate this vulnerability. If immediate updating is not possible, disabling or removing the Markdown Preview component can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for @theia/preview →

Share this vulnerability

FAQ

Eclipse Theia is an open-source platform for developing web-based IDEs. It provides a rich set of APIs and services for building cloud and desktop development tools.

The Markdown Preview component is a feature of Eclipse Theia that allows users to preview Markdown files. It renders the Markdown content in a formatted and readable manner.

Cross-site Scripting (XSS) is a type of vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to various security risks, such as unauthorized access, data theft, or the execution of arbitrary code.

This vulnerability in Eclipse Theia's Markdown Preview component can allow an attacker to execute arbitrary code. This can lead to unauthorized access to sensitive information, data manipulation, or the compromise of the entire system.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the package-lock.json file.

How To Fix

Minimum fixed version

1.3.0

This is the first release that contains the fix.

npm install @theia/preview@1.3.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback