CVE-2026-41611

Visual Studio Code Remote Code Execution Vulnerability

Published May 12, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
Improper neutralization of script-related html tags in a web page (basic xss) in Visual Studio Code allows an unauthorized attacker to execute code locally.

Analysis

AI-generated

Technical impact

Improper neutralization of script‑related HTML tags in a Visual Studio Code web page provides a basic cross‑site scripting vulnerability that lets an attacker execute arbitrary code locally on a machine running VS Code.

Affected Systems

Microsoft Visual Studio Code is affected. No specific version range is listed, so any installed instance that has not applied the latest update is potentially vulnerable.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity, yet exploitation would likely require an attacker to get the user to open a crafted VS Code web page or exploit a local injection. The EPSS score of 0.0005 (<1%) and the fact that the vulnerability is not in the CISA KEV catalog suggest that the exploit probability in the wild may be lower, but the risk of local code execution remains significant for users who run untrusted content in the editor.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Visual Studio Code to the latest version, which contains the patch for the XSS flaw.
  • Ensure that Visual Studio Code automatically applies security updates or manually install the update as soon as possible.
  • If updating is not immediately possible, disable or restrict the execution of untrusted webviews or extensions that could load external content.

Generated by OpenCVE AI on May 15, 2026 at 17:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-79
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Improper neutralization of script-related html tags in a web page (basic xss) in Visual Studio Code allows an unauthorized attacker to execute code locally.
Title Visual Studio Code Remote Code Execution Vulnerability
First Time appeared Microsoft
Microsoft visual Studio Code
Weaknesses CWE-77
CWE-80
CPEs cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:*:*:*
Vendors & Products Microsoft
Microsoft visual Studio Code
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C'}

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

  • CWE-80

    Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Sources

Status
PUBLISHED
Assigner
microsoft
Published
Updated
Aug 10, 2026, 3:13 PM
Reserved
Apr 21, 2026, 10:14 PM
Status
Analyzed
Published
May 12, 2026, 6:17 PM
Modified
Oct 26, 2026, 6:10 PM