CVE-2026-12856
published high CVSS 3.1 · 8.8Vscode-java: vscode: command injection vulnerability in the javadoc hover provider of the vscode-java extension
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | devspaces/pluginregistry-rhel9Red Hat OpenShift Dev Spaces 3.29 · 1782989367 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | devspaces/pluginregistry-rhel9Red Hat OpenShift Dev Spaces 3.29 · 1782989367 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat OpenShift Dev Spaces 3.29 | 1782989367 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat OpenShift Dev Spaces 3.29 | 1782989367 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
Weaknesses
2- CWE-88 Improper Neutralization of Argument Delimiters in a Command
- CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
5- RHSA-2026:36820 https://access.redhat.com/errata/RHSA-2026:36820
- https://access.redhat.com/security/cve/CVE-2026-12856
- RHBZ#2491278 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
Provider assertions
3redhat · cna
Vscode-java: vscode: command injection vulnerability in the javadoc hover provider of the vscode-java extension
redhat-SADP · adp
vscode-java: vscode: Command Injection vulnerability in the JavaDoc hover provider of the vscode-java extension
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- bd542442cb7a853403404d5a17e8924f534af5b9f048fdcfac787a98aae72f97
- Ingested
- 26 Nov 2026, 14:06:06 UTC
- Source record
- Official CVE record