CVE-2021-28162: Command Injection in @theia/messages
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.39297%
CWE
Published
5/10/2021
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
@theia/messages | npm | < 1.0.0 | 1.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from insecure markdown rendering in notification messages. The patch shows:
- Removal of a local markdown-it instance with HTML enabled (html: true)
- Replacement with a dedicated NotificationContentRenderer that disables HTML
- Added HTML escaping tests in notification-content-renderer.spec.ts
The original vulnerable code path flowed through NotificationManager's renderMessage method which directly processed user-controlled input without proper escaping. This function would appear in stack traces when processing malicious notification content, as it was responsible for rendering the dangerous output before mitigation.