Vulnerabilities in pkg:npm/@theia/mini-browser
PACKAGECVE-2021-34435 is a HIGH (CVSS 8.8) remote code execution vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting @theia/mini browser libraries in the npm ecosystem. The issue involves remote code execution in eclipse theia. Remediation is available by upgrading affected packages to version 1.9.0.
pkg:npm/@theia/mini-browser
Vulnerability advisories affecting package pkg:npm/@theia/mini-browser. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-v9w2-v7j9-rjpr | CVE-2021-34435 | HIGH | Remote code execution in Eclipse Theia |
| GHSA-f7vx-j8mp-3h2x | CVE-2019-17636 | HIGH | Insufficient Verification of Data Authenticity in Eclipse Theia |
CVE-2021-34435 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2021-34435
To remediate this vulnerability, upgrade all affected @theia/mini browser dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @theia/mini-browser@1.9.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @theia/mini-browser
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-34435, inspect your project dependencies using npm:
npm ls @theia/mini-browser
Analyze the terminal output to locate any version of @theia/mini browser in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.0), your application is affected.
Note: The npm ls @theia/mini-browser command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In @theia/mini browser, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-34435 Affected @theia/mini browser Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@theia/mini-browser
|
npm |
≥ 0.3.9
< 1.9.0
|
1.9.0
|
References
Frequently Asked Questions
What is CVE-2021-34435?
Which @theia/mini browser versions are affected?
What version fixes CVE-2021-34435?
Is @theia/mini-browser affected?
What is the CVSS score of CVE-2021-34435?
What CWE is associated with CVE-2021-34435?
How can I check npm dependencies for CVE-2021-34435?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-v9w2-v7j9-rjpr",
"modified" : "2021-09-13T20:27:30Z",
"published" : "2021-09-02T22:02:36Z",
"aliases" : [ "CVE-2021-34435" ],
"summary" : "Remote code execution in Eclipse Theia",
"details" : "In Eclipse Theia 0.3.9 to 1.8.1, the \"mini-browser\" extension allows a user to preview HTML files in an iframe inside the IDE. But with the way it is made it is possible for a previewed HTML file to trigger an RCE. This exploit only happens if a user previews a malicious file.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@theia/mini-browser"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.3.9"
}, {
"fixed" : "1.9.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-34435"
}, {
"type" : "WEB",
"url" : "https://github.com/eclipse-theia/theia/pull/8759"
}, {
"type" : "WEB",
"url" : "https://github.com/eclipse-theia/theia/commit/0761dcf5fe3c14c27432683d42d2c526ad0cfbd5"
}, {
"type" : "WEB",
"url" : "https://bugs.eclipse.org/bugs/show_bug.cgi?id=568018"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/eclipse-theia/theia"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-346", "CWE-668", "CWE-942" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-09-02T17:12:13Z",
"nvd_published_at" : "2021-09-01T18:15:00Z"
}
}