AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

MicrosoftGHSA-f85p-3684-2g3j

Elevation of Privilege Vulnerability

Microsoft

CVE-2025-24042 · Published Feb 11, 2025

Medium
Fix: upgrade to 1.97.1 or later
GitHub advisory

VS Code - Local escalation of priviledge vulnerability

A vulnerability exists in VS Code 1.97.0 and earlier versions where an attacker with write permissions on certain common directories can place a binary that would be executed automatically by the JavaScript debugger. This requires an attacker to be able to create and modify files on the user's machine.

Patches

The fix is available starting with VS Code 1.97.1. The fix mitigates this by not resolving node_modules binaries outside of the workspace foler.

Workarounds

Specify absolute paths for the runtimeExecutable whenever you launch a program with the JavaScript debugger.

References

  • The patch for this can be found at https://github.com/microsoft/vscode-js-debug/commit/51f431eaa3e8fe0e186e4e7e02664f5ae9aa1793
  • MSRC details for this can be found at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-24042

Affected versions

PackageAffectedFixed in
vscode
Product
< 1.97.11.97.1
Details and references

More Microsoft advisories

All Microsoft