# CVE-2021-28162: Command Injection in @theia/messages

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-12T21:40:15.000Z
- Modified: 2026-06-17T03:45:54.377Z
- Also known as: GHSA-c94v-8fff-73ph
- Weaknesses: CWE-829, CWE-830
- Assigned by: eclipse

## Description

In Eclipse Theia versions up to and including 0.16.0, in the notification messages there is no HTML escaping, so Javascript code can run.

(As written by CVE List.)

## Affected

- The Eclipse Foundation Eclipse Theia: from unspecified up to 0.16.0
- @theia/messages (npm): before 1.0.0
- eclipse theia: up to 0.16.0

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/eclipse-theia/theia/issues/7283> (exploit, issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28162> (advisory)
- <https://github.com/eclipse-theia/theia/pull/7289> (web)
- <https://github.com/eclipse-theia/theia/blob/master/CHANGELOG.md#v100---26032020> (web)

## Sources

- CVE List: [CVE-2021-28162](https://www.cve.org/CVERecord?id=CVE-2021-28162), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-c94v-8fff-73ph](https://github.com/advisories/GHSA-c94v-8fff-73ph), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-28162](https://nvd.nist.gov/vuln/detail/CVE-2021-28162), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-28162 · Whole record: https://cve.day/CVE-2021-28162.json · Rebuilt by cve.day 2026-11-25T22:58:00.286Z
