{"id":"CVE-2026-12856","state":"PUBLISHED","title":"Vscode-java: vscode: command injection vulnerability in the javadoc hover provider of the vscode-java extension","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.","publishedAt":"2026-06-29T12:33:52.141Z","updatedAt":"2026-07-15T01:22:08.635Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"redhat"},"assigner":"redhat","products":["Red Hat Red Hat OpenShift Dev Spaces 3.29"],"affected":[{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.29","packageName":"devspaces/pluginregistry-rhel9","defaultStatus":"affected","versions":[{"version":"1782989367","status":"unaffected","lessThan":"*","versionType":"rpm"}],"collectionURL":"https://catalog.redhat.com/software/containers/","cpes":["cpe:/a:redhat:openshift_devspaces:3.29::el9"]}],"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"],"weaknesses":["CWE-88"],"ingestedAt":"2026-10-29T20:10:52.580Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/12xxx/CVE-2026-12856.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-12856","state":"PUBLISHED","datePublished":"2026-06-29T12:33:52.141Z","dateUpdated":"2026-07-15T01:22:08.635Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2026-06-22T06:09:52.759Z"},"containers":{"cna":{"title":"Vscode-java: vscode: command injection vulnerability in the javadoc hover provider of the vscode-java extension","descriptions":[{"lang":"en","value":"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":[{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.29","packageName":"devspaces/pluginregistry-rhel9","defaultStatus":"affected","versions":[{"version":"1782989367","status":"unaffected","lessThan":"*","versionType":"rpm"}],"collectionURL":"https://catalog.redhat.com/software/containers/","cpes":["cpe:/a:redhat:openshift_devspaces:3.29::el9"]}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:36820","name":"RHSA-2026:36820","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-12856","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2491278","name":"RHBZ#2491278","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://github.com/redhat-developer/vscode-java/security/advisories/GHSA-7qv8-6qrw-3crv"}],"metrics":[{"other":{"content":{"value":"Important","namespace":"https://access.redhat.com/security/updates/classification/"},"type":"Red Hat severity rating"}},{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-88","description":"Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"redhat","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateUpdated":"2026-07-08T17:15:08.952Z"},"datePublic":"2026-06-29T12:25:07.165Z","x_redhatCweChain":"CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')","workarounds":[{"lang":"en","value":"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."}],"timeline":[{"lang":"en","time":"2026-06-20T17:33:27.000Z","value":"Reported to Red Hat."},{"lang":"en","time":"2026-06-29T12:25:07.165Z","value":"Made public."}],"credits":[{"lang":"en","value":"Red Hat would like to thank byte256 for reporting this issue."}],"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-29T00:00:00+00:00","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2026-12856"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-30T03:55:31.282Z"}},{"title":"vscode-java: vscode: Command Injection vulnerability in the JavaDoc hover provider of the vscode-java extension","descriptions":[{"lang":"en","value":"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":[{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.29","packageName":"devspaces/pluginregistry-rhel9","defaultStatus":"affected","versions":[{"version":"1782989367","status":"unaffected","lessThan":"*","versionType":"rpm"}],"collectionURL":"https://catalog.redhat.com/software/containers/","cpes":["cpe:/a:redhat:openshift_devspaces:3.29::el9"]}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-12856","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2491278","name":"RHBZ#2491278","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12856.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:36820","tags":["vendor-advisory","x_refsource_REDHAT"]}],"metrics":[{"other":{"content":{"namespace":"https://access.redhat.com/security/updates/classification/","value":"Important"},"type":"Red Hat severity rating"}},{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-88","description":"Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"redhat-SADP","orgId":"0b0ca135-0b70-47e7-9f44-1890c2a1c46c","dateUpdated":"2026-07-15T01:22:08.635Z"},"datePublic":"2026-06-29T12:25:07.165Z","solutions":[{"lang":"en","value":"RHSA-2026:36820: Red Hat OpenShift Dev Spaces 3.29"}],"timeline":[{"lang":"en","time":"2026-06-20T17:33:27.000Z","value":"Reported to Red Hat."},{"lang":"en","time":"2026-06-29T12:25:07.165Z","value":"Made public."}],"workarounds":[{"lang":"en","value":"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."}],"x_adpType":"supplier","x_generator":{"engine":"sadp-cli 1.0.0"}}]}}}