Skip to content
Access control Advisory Advanced CVE-2025-24042

Visual Studio Code JS Debug Extension Elevation of Privilege Vulnerability (CVE-2025-24042)

A flaw in the JavaScript debugger functionality of Visual Studio Code allowed an attacker with standard user privileges to place a malicious file on the machine and wait for a privileged victim to use the debugger. Successful exploitation would give the attacker the rights of the user running the affected application.

ycdxsb Follow

Originally disclosed on Microsoft

High 7.3 View original

FAQ

According to the CVSS metric, user interaction is required (UI:R) and privileges required is Low (PR:L). What does that mean for this vulnerability? An authorized attacker with standard user privileges could place a malicious file on the machine running Visual Studio Code and then wait for the privileged victim to use certain JavaScript debugger functionality.

FAQ

What privileges could be gained by an attacker who successfully exploited the vulnerability? The attacker would gain the rights of the user that is running the affected application.

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by ycdxsb. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the debugger trusted or processed a file placed by a lower-privileged user without adequate checks, letting that file influence execution under the victim's account.

Impact

An attacker with low privileges could gain the rights of the user running the affected application, though the exploit requires the victim to use certain debugger functionality.

What the attacker needed

Attacker can write a file to the victim's machine; victim uses JS debugger functionality

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Visual Studio Code is a popular code editor, and it includes a debugger that helps developers run and inspect their JavaScript programs. This report says that if someone could put a crafted file on the same computer, then when a more privileged person used the debugger, the attacker could end up acting with that person's permissions. The text does not explain the technical details of how that happens.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by ycdxsb

View all

2 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.