8.8high
Vscode-java: vscode: command injection vulnerability in the javadoc hover provider of the vscode-java extension
- Severity
- 8.8high CVSS:3.1 by redhat
- Exploit likelihood
- 0.29% (higher than 23% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
A flaw was found in the vscode-java extension, which provides Java language support for Visual Studio Code. The extension incorrectly trusts all Markdown content in JavaDoc hovers, allowing a malicious Java file to include hidden commands. If a user clicks a specially crafted link within a JavaDoc hover popup, an attacker can execute arbitrary VS Code commands, which can lead to full system compromise in trusted workspaces.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| devspaces/pluginregistry-rhel9 | Not specified Not affected: from 1782989367 before * | CVE List |
| redhat openshift_dev_spaces | Not specified | NVD |
All scores
| redhat | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| redhat-SADP | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
A flaw was found in the vscode-java extension, which provides Java language support for Visual Studio Code. The extension incorrectly trusts all Markdown content in JavaDoc hovers, allowing a malicious Java file to include hidden commands. If a user clicks a specially crafted link within a JavaDoc hover popup, an attacker can execute arbitrary VS Code commands, which can lead to full system compromise in trusted workspaces.
NVD (es)
Se encontró una vulnerabilidad en la extensión vscode-java, que proporciona soporte para el lenguaje Java para Visual Studio Code. La extensión confía incorrectamente en todo el contenido Markdown en las vistas previas de JavaDoc, lo que permite que un archivo Java malicioso incluya comandos ocultos. Si un usuario hace clic en un enlace especialmente diseñado dentro de una ventana emergente de vista previa de JavaDoc, un atacante puede ejecutar comandos arbitrarios de VS Code, lo que puede llevar a un compromiso total del sistema en espacios de trabajo de confianza.
References
| https://access.redhat.com/errata/RHSA-2026:36820 | vendor-advisory | |
| https://access.redhat.com/security/cve/CVE-2026-12856 | mitigation, vdb-entry, vendor-advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2491278 | issue-tracking, vendor-advisory | |
| https://github.com/redhat-developer/vscode-java/security/advisories/GHSA-7qv8-6qrw-3crv | broken-link | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12856.json | vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-12856 changed 2026-11-26 | CVE Terms of Use |
| NVD | CVE-2026-12856 changed 2026-10-25 | Public domain |