CVE-2019-0542: xterm vulnerable to remote code execution
Summary
CVE-2019-0542: xterm vulnerable to remote code execution. Affects xterm across 3 version ranges.
< 3.8.1
>= 3.9.0, < 3.9.2
>= 3.10.0, < 3.10.1
Fixed in 3.8.1, 3.9.2 or 3.10.1, depending on the release line you run. How to fix ↓
Also tracked for
- node-xterm · Debian:11
The same CVE-2019-0542 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
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.
No signup required · Results in about 60 seconds
Background
xterm is an npm package that provides a terminal emulator for the web. It allows users to create interactive command-line interfaces within web applications. This vulnerability affects versions 0 to 3.8.1, 3.9.0 to 3.9.2, and 3.10.0 to 3.10.1 of the xterm package.
Vulnerability Detail
The vulnerability in xterm.js arises from mishandling special characters. This flaw can be exploited by an attacker to execute arbitrary code remotely. The impact of this vulnerability is significant, as it allows an attacker to gain unauthorized access to the system and potentially perform malicious actions.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 3.8.13.8.1npm install xterm@3.8.1 -
>= 3.9.0, < 3.9.23.9.2npm install xterm@3.9.2 -
>= 3.10.0, < 3.10.13.10.1npm install xterm@3.10.1
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to update to the fixed versions of the xterm package to mitigate the risk.
Conclusion
The xterm package is vulnerable to remote code execution due to mishandling of special characters. To mitigate this risk, it is crucial to update to the fixed versions of the package. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for xterm →
FAQ
xterm is an npm package that provides a terminal emulator for the web. It allows developers to create command-line interfaces within web applications.
The vulnerability allows an attacker to execute arbitrary code remotely, potentially leading to unauthorized access and malicious actions on the system.
To fix this vulnerability, update the xterm package to version 3.8.1, 3.9.2, or 3.10.1, depending on the currently used version.
No, there is no known workaround for this vulnerability. Updating to the fixed versions is the recommended solution.
You can find more information about this vulnerability in the GitHub Advisory Database: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/01/GHSA-mc23-976p-j42x/GHSA-mc23-976p-j42x.json
Related vulnerabilities
Recent vulnerabilities recorded for xterm.