Skip to main content
Vulnerability Database/CVE-2026-86185

CVE-2026-86185: Bilibili Desktop RCE Vulnerability

CVE-2026-86185 is a remote code execution flaw in Bilibili Desktop that allows attackers to inject malicious JavaScript and execute system commands. This post explains its impact, affected versions, and mitigation steps.

Published:

CVE-2026-86185 Overview

CVE-2026-86185 affects Bilibili Desktop through version 1.18.0. The application disables Transport Layer Security (TLS) certificate verification process-wide and fetches unsigned remote JavaScript configuration without integrity checks. An attacker positioned on the network path between the client and the configuration server can intercept these fetches. The attacker can inject arbitrary JavaScript that executes in the renderer with access to the privileged Inter-Process Communication (IPC) bridge. This access allows execution of system commands or theft of login credentials. The vulnerability is classified under CWE-295: Improper Certificate Validation.

Critical Impact

An on-path attacker can achieve remote code execution on the victim host and exfiltrate authenticated session credentials by tampering with fetched JavaScript configuration.

Affected Products

  • Bilibili Desktop versions up to and including 1.18.0
  • Deployments relying on the built-in configuration fetch mechanism
  • Windows, macOS, and Linux builds distributed through the official channel

Discovery Timeline

  • 2026-09-05 - CVE-2026-86185 published to the National Vulnerability Database (NVD)
  • 2026-09-08 - Last updated in NVD database

Technical Details for CVE-2026-86185

Vulnerability Analysis

Bilibili Desktop is an Electron-based client for the Bilibili video platform. The application disables TLS certificate verification globally, removing the primary defense against network interception. During startup and runtime, the client retrieves JavaScript configuration payloads from a remote endpoint. Because verification is disabled and no cryptographic signature or hash check is performed on the returned payload, any attacker capable of intercepting the connection can substitute the response with attacker-controlled JavaScript. The substituted payload runs inside the Electron renderer, which exposes an IPC bridge to privileged main-process functions. This design allows renderer-executed code to reach operating system command execution and access to authenticated session state.

Root Cause

The root cause is twofold: process-wide disablement of TLS certificate verification, and the absence of integrity verification on remotely fetched executable content. Together these defects violate CWE-295 by allowing untrusted servers to impersonate the legitimate configuration host and deliver executable code that the client treats as authoritative.

Attack Vector

Exploitation requires adjacent network access, such as a shared wireless network, a compromised router, a malicious captive portal, or an on-path position within an internet service provider. The attacker intercepts the outbound configuration fetch and returns crafted JavaScript. User interaction is limited to launching the application on the compromised network. Once the injected script runs, it invokes IPC methods exposed by the preload bridge to execute shell commands, read local files, or extract authentication tokens. Refer to the VulnCheck advisory and the public proof-of-concept repository for technical details.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-86185

Indicators of Compromise

  • Unexpected child processes spawned by the Bilibili Desktop executable, particularly shell interpreters such as cmd.exe, powershell.exe, or /bin/sh
  • Outbound HTTPS connections from Bilibili Desktop to hosts that do not match the vendor's configuration endpoint
  • Renderer-process file writes to sensitive directories or credential stores

Detection Strategies

  • Inspect endpoint telemetry for Bilibili Desktop processes issuing operating system commands or invoking script interpreters
  • Correlate application launches with anomalous DNS resolutions or TLS handshakes using non-vendor certificates
  • Flag network sessions from the client that terminate at IP addresses inconsistent with the official content delivery infrastructure

Monitoring Recommendations

  • Monitor process-lineage events where Bilibili Desktop is the parent of unexpected binaries
  • Collect and retain HTTP and TLS metadata from endpoints running the client to enable retrospective hunting
  • Alert on modifications to Electron cache directories or preload script files associated with the installation path

How to Mitigate CVE-2026-86185

Immediate Actions Required

  • Restrict use of Bilibili Desktop on untrusted networks such as public Wi-Fi until a fixed release is available
  • Enforce network egress policies that route client traffic through inspected, authenticated proxies
  • Remove or disable the application on high-value endpoints handling sensitive credentials

Patch Information

No vendor patch is referenced in the NVD entry at the time of publication. Consult the advisory document and the Bilibili application homepage for future updates. Upgrade to a version later than 1.18.0 once the vendor releases a build that re-enables TLS certificate verification and validates the integrity of remote configuration payloads.

Workarounds

  • Block outbound access from the client to non-essential domains at the perimeter firewall
  • Require use of a trusted VPN when launching the application to reduce exposure to on-path attackers
  • Uninstall the desktop client and use the vendor's web interface over a hardened browser as an interim measure

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.