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
redhat: openshift dev spaces
References8
- access.redhat.com/security/cve/CVE-2026-12856 MitigationVendor Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2491278 Issue TrackingVendor Advisory
- access.redhat.com/security/cve/CVE-2026-12856 MitigationVendor Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2491278 Issue TrackingVendor Advisory
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12856… Vendor Advisory
- access.redhat.com/errata/RHSA-2026:36820
- github.com/redhat-developer/vscode-java/security/advisories/GHS… Broken Link
- access.redhat.com/errata/RHSA-2026:36820
Metrics
- CVSS 3.1
-
8.8
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 1% percentile: 47 · as of 16 November 2026
- CWE
- CWE-88
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.