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.
Fixes and workarounds
Workaround
To mitigate this issue, users should avoid opening or interacting with untrusted Java projects or files within Red Hat OpenShift Dev Spaces. Exercise caution and refrain from clicking on unfamiliar links presented in JavaDoc hover popups, particularly when working with code from unverified sources. Disabling the `vscode-java` extension when not actively engaged in Java development can further reduce exposure, though this will impact Java-related functionality.
Source: CNA: redhatFix
RHSA-2026:36820: Red Hat OpenShift Dev Spaces 3.29
Source: ADP: redhat-SADPWorkaround
To mitigate this issue, users should avoid opening or interacting with untrusted Java projects or files within Red Hat OpenShift Dev Spaces. Exercise caution and refrain from clicking on unfamiliar links presented in JavaDoc hover popups, particularly when working with code from unverified sources. Disabling the `vscode-java` extension when not actively engaged in Java development can further reduce exposure, though this will impact Java-related functionality.
Source: ADP: redhat-SADPAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| Red Hat OpenShift Dev Spaces 3.29 Red Hat devspaces/pluginregistry-rhel9
https://catalog.redhat.com/software/containers/ |
≥ 1782989367; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Dev Spaces 3.29 Red Hat devspaces/pluginregistry-rhel9
https://catalog.redhat.com/software/containers/ |
≥ 1782989367; < * (unaffected, rpm)
Other versions: affected |
ADP: redhat-SADP |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 8.8 high |
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | CNA: redhat |
| 3.1 / 8.8 high |
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | ADP: redhat-SADP |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://access.redhat.com/errata/RHSA-2026:36820CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-12856CNA: redhat · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2491278CNA: redhat · issue-tracking, x_refsource_REDHAT
- https://github.com/redhat-developer/vscode-java/security/advisories/GHSA-7qv8-6qrw-3crvCNA: redhat
- https://access.redhat.com/security/cve/CVE-2026-12856ADP: redhat-SADP · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2491278ADP: redhat-SADP · issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12856.jsonADP: redhat-SADP · x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:36820ADP: redhat-SADP · vendor-advisory, x_refsource_REDHAT
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.