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

- Severity: High 8.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-06-29T12:33:52.141Z
- Modified: 2026-11-26T14:02:03.382Z
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- devspaces/pluginregistry-rhel9: no versions given (not affected: from 1782989367 before *)
- redhat openshift_dev_spaces: no versions given

## Every score

- redhat: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/errata/RHSA-2026:36820> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-12856> (mitigation, vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2491278> (issue-tracking, vendor-advisory)
- <https://github.com/redhat-developer/vscode-java/security/advisories/GHSA-7qv8-6qrw-3crv> (broken-link)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12856.json> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-12856](https://www.cve.org/CVERecord?id=CVE-2026-12856), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2026-12856](https://nvd.nist.gov/vuln/detail/CVE-2026-12856), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-12856 · Whole record: https://cve.day/CVE-2026-12856.json · Rebuilt by cve.day 2026-11-26T14:07:11.603Z
