CVE-2026-12856: Vscode-java: vscode: command injection vulnerability in the javadoc hover provider of the vscode-java extension
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.
Security readout for executives and security teams
Plain-English summary
This vulnerability lets a malicious Java file hide dangerous VS Code command links inside JavaDoc hover text. A developer must click the crafted hover link, but in a trusted workspace that action can lead to full system compromise.
Executive priority
Treat as high priority for developer environments because compromise can start from source code review behavior. Prioritize teams using OpenShift Dev Spaces or vscode-java with trusted workspaces, especially where developers access secrets, production systems, or build pipelines.
Technical view
The vscode-java JavaDoc hover provider incorrectly trusts Markdown content. Malicious JavaDoc can embed a crafted link that executes arbitrary VS Code commands after user interaction. Red Hat rates this high, CVSS 8.8, CWE-88, affecting OpenShift Dev Spaces 3.29 pluginregistry-rhel9 version 1782989367.
Likely exposure
The source bundle specifically lists Red Hat OpenShift Dev Spaces 3.29, devspaces/pluginregistry-rhel9 version 1782989367, as affected. It also describes the underlying flaw in the Red Hat vscode-java extension. It does not establish broader product or version impact.
Exploitation context
No source in the bundle reports active exploitation, and KEV is false. Exploitation requires user interaction: clicking a specially crafted JavaDoc hover link in a trusted workspace containing a malicious Java file.
Researcher notes
The core issue is command injection through trusted Markdown rendering in JavaDoc hover content. Evidence supports user-assisted exploitation with severe impact, but does not include exploit-in-the-wild claims or complete version range details beyond the Red Hat affected package entry.
Mitigation direction
Apply Red Hat guidance from RHSA-2026:36820 when available for your environment.
Review the GitHub advisory for vscode-java remediation details.
Avoid opening untrusted Java projects in trusted workspaces until remediated.
Warn developers not to click unexpected links in JavaDoc hover popups.
Inventory OpenShift Dev Spaces pluginregistry-rhel9 deployments for affected versions.
Validation and detection
Check OpenShift Dev Spaces version and pluginregistry-rhel9 package version.
Confirm whether vscode-java is installed in developer workspaces.
Review workspace trust settings for Java development environments.
Verify remediation status against Red Hat CVE and errata pages.
Monitor Red Hat Bugzilla and GHSA for updated affected-version details.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-88: Command execution behavior lookup
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
7Timeline events
2ADP providers
6Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-88 · source CWE mapping
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.