CVE-2026-12856

high

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.

References

https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12856.json

https://github.com/redhat-developer/vscode-java/security/advisories/GHSA-7qv8-6qrw-3crv

https://bugzilla.redhat.com/show_bug.cgi?id=2491278

https://access.redhat.com/security/cve/CVE-2026-12856

Details

Source: Mitre, NVD

Published: 2026-06-29

Updated: 2026-06-30

Risk Information

CVSS v2

Base Score: 10

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Severity: Critical

CVSS v3

Base Score: 8.8

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Severity: High