Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
Unrated

Command Injection in vscode-java JavaDoc Hover Provider

IdentifiersCVE-2026-12856CWE-94

CVE-2026-12856 is a high-severity command injection vulnerability in the vscode-java extension for Visual Studio Code. The flaw is in the JavaDoc hover provider, which incorrectly trusts all Markdown content rendered in JavaDoc hover popups. A malicious Java source file can embed specially crafted JavaDoc content containing hidden command links. When a user opens the file and clicks a crafted link in the hover popup, the extension can invoke arbitrary VS Code commands. Because VS Code commands can trigger powerful extension and workspace actions, exploitation in a trusted workspace can result in full system compromise.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows an attacker to execute arbitrary VS Code commands in the victim's VS Code context. In trusted workspaces, this can expose or modify local files, invoke extension functionality, and potentially lead to full system compromise. The provided context indicates high confidentiality, integrity, and availability impact, with changed scope.

Mitigation

If you can’t patch tonight, do this now.

Until patched, avoid opening untrusted Java files in Visual Studio Code, especially in trusted workspaces. Review and harden VS Code workspace trust and extension security settings to reduce the impact of malicious content. Treat JavaDoc hover content from untrusted projects as potentially hostile and avoid clicking links presented in hover popups.

Remediation

Patch, then assume compromise.

Update the vscode-java extension to a fixed version that properly sanitizes or restricts Markdown content in JavaDoc hover rendering. Apply vendor-provided updates immediately wherever the extension is deployed, including environments such as Red Hat OpenShift Dev Spaces if they bundle or expose the affected functionality.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity6

Community discussion across Reddit, Mastodon, and other social sources.