mediumCVE-2026-45496

CVE-2026-45496 visual studio code vulnerability

Improper limitation of a pathname to a restricted directory ('path traversal') in Visual Studio Code allows an unauthorized attacker to bypass a security feature locally.

Productvisual studio code
CVSS5.5
EPSS0.00454
UpdatedJuly 17, 2026

Quick answer

microsoft visual studio code should be reviewed and updated if it matches the affected versions. The recommended fix is to apply the vendor-supported patched version or the mitigation steps below, then retest the public website with Fixnx.

Who is affected

Affected versions

  • Review vendor advisory for affected versions.

Fixed versions

  • Apply the latest vendor-supported patched version.

How to fix it

CVE-2026-45496 affects Visual Studio Code. The issue can expose data or bypass a local security control. Update VS Code and review extensions that handle untrusted projects.

  1. Update Visual Studio Code to the latest stable version that includes the fix for CVE-2026-45496.
  2. Update GitHub Copilot and other installed extensions, especially extensions used with untrusted folders.
  3. Avoid opening unknown repositories until VS Code and extensions are patched.
  4. Use workspace trust and keep sensitive tokens out of project folders.
  5. Rotate exposed credentials if logs or alerts suggest they may have been accessed.

Scan now. Google sign-in is only needed to unlock fix guidance.

Verify the fix

  • Confirm VS Code reports the patched version on developer machines.
  • Check extension versions and remove extensions that are no longer maintained.
  • Run endpoint or software inventory checks to find any outdated installs.

Related categories

Trusted references

FAQ

What is affected by CVE-2026-45496?

microsoft visual studio code should be checked against the vendor advisory and trusted references linked on this page.

What should I fix first?

Start with internet-facing sites, admin panels, login flows, plugins, themes, modules, packages, and systems that process user-controlled input or sensitive data.

How do I confirm the fix worked?

Apply the patched version or mitigation, clear caches where relevant, retest the affected workflow, and run a new Fixnx scan to verify public website exposure signals.

How are Fixnx security risk categories chosen?

Fixnx keeps one canonical risk page and assigns only broad, relevant categories such as ecosystem, technology area, or vulnerability class.