CVE-2026-12856
A flaw was found in the vscode-java extension, which provides Java …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- access.redhat.com/security/cve/CVE-2026-12856
- bugzilla.redhat.com/show_bug.cgi?id=2491278
- github.com/redhat-developer/vscode-java/security/advisories/GHSA-7qv8-6qrw-3crv
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-12856.json
- access.redhat.com/errata/RHSA-2026:36820
- nvd.nist.gov/vuln/detail/CVE-2026-12856
- cve.org/CVERecord?id=CVE-2026-12856
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.