Vulnerability · Published Jun 29, 2026 · Assigned by redhat
CVE-2026-12856Vscode-java: vscode: command injection vulnerability in the javadoc hover provider of the vscode-java extension
High 8.8
In plain English
A high-severity argument injection in Red Hat OpenShift Dev Spaces 3.29 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities).
Official 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 products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat OpenShift Dev Spaces 3.29 | see references |
Weakness: CWE-88 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- RHSA-2026:36820 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-12856 vdb-entry, x_refsource_REDHAT
- RHBZ#2491278 issue-tracking, x_refsource_REDHAT
- https://github.com/redhat-developer/vscode-java/security/advisories/GHSA-7qv8-6qrw-3crv
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12856.json x_sadp-csaf-vex