{"id":"CVE-2026-12856","aliases":[],"summary":"Vscode-java: vscode: command injection vulnerability in the javadoc hover provider of the vscode-java extension","published_at":"2026-06-29T12:25:07.165Z","modified_at":"2026-07-15T01:22:08.635Z","products":[{"slug":"openshift","name":"OpenShift","category":"kubernetes-container"}],"rating":{"severity":"high","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.005489999894052744,"percentile":0.46726998686790466,"date":"2026-11-19T00:00:00Z"},"priority":10.3,"details":"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.","affected_stack":[{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Dev Spaces 3.29","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1782989367"}]}],"fixed":["1782989367"],"provider":"cvelistv5","source":"CVE-2026-12856","relation":"self"}],"affected_other":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.29","cpe":"cpe:/a:redhat:openshift_devspaces:3.29::el9","status":"fixed","packages":["devspaces/pluginregistry-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:36820"],"provider":"redhat-vex","source":"CVE-2026-12856"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.29","cpe":"cpe:/a:redhat:openshift_devspaces:3.29::el9","status":"not_affected","packages":["devspaces/code-rhel9","devspaces/code-sshd-rhel9","devspaces/configbump-rhel9","devspaces/dashboard-rhel9","devspaces/devspaces-operator-bundle","devspaces/devspaces-rhel9-operator","devspaces/imagepuller-rhel9","devspaces/jetbrains-ide-rhel9","devspaces/multicluster-redirector-rhel9","devspaces/oauth2-proxy-rhel9","devspaces/openvsx-rhel9","devspaces/server-rhel9","devspaces/traefik-rhel9","devspaces/udi-base-rhel10","devspaces/udi-base-rhel9","devspaces/udi-rhel9"],"package_count":16,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-12856"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-12856","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-12856","license":"CC-BY-4.0","published_at":"2026-06-29T12:33:52.141Z","modified_at":"2026-07-15T01:22:08.635Z","summary":"Vscode-java: vscode: command injection vulnerability in the javadoc hover provider of the vscode-java extension","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CVE-2026-12856"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"redhat-SADP:CVE-2026-12856"}],"affected":[{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Dev Spaces 3.29","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1782989367"}]}],"fixed":["1782989367"],"provider":"cvelistv5","source":"CVE-2026-12856","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:36820"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-12856"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2491278"},{"type":"WEB","url":"https://github.com/redhat-developer/vscode-java/security/advisories/GHSA-7qv8-6qrw-3crv"}]},{"provider":"redhat-vex","source_id":"CVE-2026-12856","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-12856","license":"CC-BY-4.0","published_at":"2026-06-29T12:25:07.165Z","modified_at":"2026-06-29T14:02:15Z","summary":"vscode-java: vscode: Command Injection vulnerability in the JavaDoc hover provider of the vscode-java extension","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"CVE-2026-12856"},{"type":"Red Hat","score":"Important","source":"CVE-2026-12856"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.29","cpe":"cpe:/a:redhat:openshift_devspaces:3.29::el9","status":"fixed","packages":["devspaces/pluginregistry-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:36820"],"provider":"redhat-vex","source":"CVE-2026-12856"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.29","cpe":"cpe:/a:redhat:openshift_devspaces:3.29::el9","status":"not_affected","packages":["devspaces/code-rhel9","devspaces/code-sshd-rhel9","devspaces/configbump-rhel9","devspaces/dashboard-rhel9","devspaces/devspaces-operator-bundle","devspaces/devspaces-rhel9-operator","devspaces/imagepuller-rhel9","devspaces/jetbrains-ide-rhel9","devspaces/multicluster-redirector-rhel9","devspaces/oauth2-proxy-rhel9","devspaces/openvsx-rhel9","devspaces/server-rhel9","devspaces/traefik-rhel9","devspaces/udi-base-rhel10","devspaces/udi-base-rhel9","devspaces/udi-rhel9"],"package_count":16,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-12856"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12856.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-12856"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2491278"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-12856"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12856"},{"type":"WEB","url":"https://github.com/redhat-developer/vscode-java/security/advisories/GHSA-7qv8-6qrw-3crv"}]}],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:36820"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-12856"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2491278"},{"type":"WEB","url":"https://github.com/redhat-developer/vscode-java/security/advisories/GHSA-7qv8-6qrw-3crv"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12856.json"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-12856"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-12856"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-12856","url":"https://www.cve.org/CVERecord?id=CVE-2026-12856","license":"CC-BY-4.0","modified_at":"2026-07-15T01:22:08.635Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-12856","url":"https://access.redhat.com/security/cve/CVE-2026-12856","license":"CC-BY-4.0","modified_at":"2026-06-29T14:02:15Z","relation":"self"}]}
