Skip to content

Elevation of Privilege Vulnerability

Moderate
connor4312 published GHSA-f85p-3684-2g3j Feb 11, 2025

Package

No package listed

Affected versions

<1.97.0

Patched versions

1.97.1

Description

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

Severity

Moderate

CVE ID

CVE-2025-24042

Weaknesses

No CWEs