CVE-2026-12856 Details
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.
A command injection vulnerability has been identified in the vscode-java extension for Visual Studio Code. This extension, which adds Java language support, improperly trusts all Markdown content in JavaDoc hover popups. As a result, a malicious Java file could embed hidden commands. If a user clicks a crafted link in the JavaDoc hover, an attacker could execute arbitrary commands in Visual Studio Code, potentially leading to a complete system compromise in trusted workspaces.
Users are advised to avoid opening untrusted Java files or projects in Red Hat OpenShift Dev Spaces. Caution should be exercised when clicking links in JavaDoc hover popups, particularly from unverified sources. Disabling the vscode-java extension when not in use can also reduce risk, although this will affect Java functionality.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:36820 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2026-12856 | redhat-SADP | MitigationVendor Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2491278 | redhat-SADP | Issue TrackingVendor Advisory |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12856.json | redhat-SADP | Vendor Advisory |
| https://access.redhat.com/errata/RHSA-2026:36820 | [email protected] | |
| https://access.redhat.com/security/cve/CVE-2026-12856 | [email protected] | MitigationVendor Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2491278 | [email protected] | Issue TrackingVendor Advisory |
| https://github.com/redhat-developer/vscode-java/security/advisories/GHSA-7qv8-6qrw-3crv | [email protected] | Broken Link |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | redhat-SADP |
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| redhat openshift dev spaces | All versions |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jul 9, 2026 | CVE Modified | redhat-SADP |
| Jul 8, 2026 | CVE Modified | [email protected] |
| Jul 8, 2026 | Initial Analysis | [email protected] |
| Jun 30, 2026 | CVE Modified | CISA-ADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 29, 2026 | CVE Modified | CISA-ADP |
| Jun 29, 2026 | New CVE Received | [email protected] |