# CVE-2026-12856: Vscode-java: vscode: command injection vulnerability in the javadoc hover provider of the vscode-java extension

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-29 · Modified: 2026-11-26
- Record: https://cvemate.com/vulnerability/CVE-2026-12856 · JSON: https://cvemate.com/vulnerability/CVE-2026-12856/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.292%, percentile 23.434%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- redhat openshift\_dev\_spaces: na

## References

- <https://access.redhat.com/errata/RHSA-2026:36820>
- <https://access.redhat.com/security/cve/CVE-2026-12856>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2491278>
- <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>

---

Data as of 2026-12-05T04:44:52.895Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
