{"answers":{"affected":"6 open source packages ship an affected version, including xterm. It affects 2 products.","exploited":"There is no known exploitation of CVE-2019-0542 in the wild and no public exploit code.","fix":"Upgrade xterm to a fixed version for your release line: 3.8.1, 3.10.1 or 3.9.2.","what":"CVE-2019-0542 is a high-severity code injection vulnerability in Redhat Openshift Container Platform, published on 9 Jan 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2019-0542 and fix it if it is affected.\n\nWhat it is: CVE-2019-0542 is a high-severity code injection vulnerability in Redhat Openshift Container Platform, published on 9 Jan 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2019-0542 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- xterm (npm): affected all versions; fixed in 3.8.1\n- xterm (npm): affected all versions; fixed in 3.8.1\n- xterm (npm): affected from 3.10.0; fixed in 3.10.1\n- xterm (npm): affected from 3.10.0; fixed in 3.10.1\n- xterm (npm): affected from 3.9.0; fixed in 3.9.2\n- xterm (npm): affected from 3.9.0; fixed in 3.9.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-0542/ (Markdown: https://insights.sbomify.com/CVE-2019-0542/index.md)","id":"CVE-2019-0542","markdown":"https://insights.sbomify.com/CVE-2019-0542/index.md","name":"CVE-2019-0542","record":{"aliases":["DEBIAN-CVE-2019-0542","GHSA-mc23-976p-j42x","RHSA-2019:1422","RHSA-2019:2551","RHSA-2019:2552"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript terminal library","requires_auth":"none","summary":"Attackers can execute arbitrary code remotely by exploiting improper handling of special characters in the xterm.js terminal library.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"microsoft","cpe":[{"product":"openshift_container_platform","vendor":"redhat"},{"product":"xterm.js","vendor":"xtermjs"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"A remote code execution vulnerability exists in Xterm.js when the component mishandles special characters, aka \"Xterm Remote Code Execution Vulnerability.\" This affects xterm.js.","ecosystems":["Red Hat:openshift:3.10::el7","Red Hat:openshift:3.11::el7","Red Hat:openshift:3.9::el7","npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"xterm vulnerable to remote code execution","id":"CVE-2019-0542","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"redhat:openshift_container_platform","products":["redhat:openshift_container_platform"],"type":"code_injection","year":"2019"},"n_packages":9,"n_references":6,"next":{"headline":"Microsoft Windows Privilege Escalation","id":"CVE-2019-0543"},"packages":[{"ecosystem":"npm","fixed":["3.8.1"],"introduced":["0"],"last_affected":[],"package":"xterm","purl":null,"source":"GHSA-mc23-976p-j42x"},{"ecosystem":"npm","fixed":["3.8.1"],"introduced":["0"],"last_affected":[],"package":"xterm","purl":"pkg:npm/xterm","source":"GHSA-mc23-976p-j42x"},{"ecosystem":"npm","fixed":["3.10.1"],"introduced":["3.10.0"],"last_affected":[],"package":"xterm","purl":null,"source":"GHSA-mc23-976p-j42x"},{"ecosystem":"npm","fixed":["3.10.1"],"introduced":["3.10.0"],"last_affected":[],"package":"xterm","purl":"pkg:npm/xterm","source":"GHSA-mc23-976p-j42x"},{"ecosystem":"npm","fixed":["3.9.2"],"introduced":["3.9.0"],"last_affected":[],"package":"xterm","purl":null,"source":"GHSA-mc23-976p-j42x"},{"ecosystem":"npm","fixed":["3.9.2"],"introduced":["3.9.0"],"last_affected":[],"package":"xterm","purl":"pkg:npm/xterm","source":"GHSA-mc23-976p-j42x"},{"ecosystem":"Red Hat:openshift:3.10::el7","fixed":["0:3.10.163-1.git.1.c3a2131.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-web-console","purl":"pkg:rpm/redhat/atomic-openshift-web-console","source":"RHSA-2019:2552"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.104-1.git.1.3c3a7f2.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-web-console","purl":"pkg:rpm/redhat/atomic-openshift-web-console","source":"RHSA-2019:1422"},{"ecosystem":"Red Hat:openshift:3.9::el7","fixed":["0:3.9.99-1.git.1.49cd7e9.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-web-console","purl":"pkg:rpm/redhat/atomic-openshift-web-console","source":"RHSA-2019:2551"}],"prev":{"headline":"Microsoft MSHTML Remote Code Execution","id":"CVE-2019-0541"},"products":["xterm.js"],"published":"2019-01-09","related":[{"cvss_score":9.8,"headline":"Missing authorization in cluster-ingress-operator","id":"CVE-2020-27836","kev_date_added":null,"published":"2022-08-22"},{"cvss_score":9,"headline":"Misconfiguration in openshift-ansible","id":"CVE-2018-1085","kev_date_added":null,"published":"2018-06-15"},{"cvss_score":8.8,"headline":"Privilege escalation in Red Hat OpenShift Container Platform 4","id":"CVE-2026-54099","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":8.8,"headline":"Ose-cluster-ingress-operator: remote code execution through haproxy configuration injection","id":"CVE-2026-1784","kev_date_added":null,"published":"2026-06-02"},{"cvss_score":8.8,"headline":"Privilege escalation in openshift","id":"CVE-2021-20182","kev_date_added":null,"published":"2021-02-23"},{"cvss_score":8.5,"headline":"Privilege escalation in source-to-image","id":"CVE-2018-10843","kev_date_added":null,"published":"2018-07-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["https://xtermjs.org/"]},"summary":"Attackers can execute arbitrary code remotely by exploiting improper handling of special characters in the xterm.js terminal library.","url":"https://insights.sbomify.com/CVE-2019-0542/"}