Public vulnerability disclosure

CVE-2026-12856

Vscode-java: vscode: command injection vulnerability in the javadoc hover provider of the vscode-java extension

publishedCWE-88

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.

Technical severity8.8 highCVSS 3.1 · CNA: redhat
Published2026-06-29Source updated 2026-11-26
Collected2026-11-262 attributed sources

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: redhat

Fix

RHSA-2026:36820: Red Hat OpenShift Dev Spaces 3.29

Source: ADP: redhat-SADP

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: ADP: redhat-SADP

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
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

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 8.8
high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HCNA: redhat
3.1 / 8.8
high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HADP: redhat-SADP

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

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/cves
https://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.

Agent access JSON · OpenAPI · CVE API guide