VulnerabilitiesHIGH

Protect VS Code from Dangerous Prompt Injections

GHGitHub Security BlogAug 25, 2025
VS Codeprompt injectionsGitHubsecurity
🎯

Basically, prompt injections can trick VS Code into revealing sensitive information or executing harmful code.

Quick Summary

A new risk has emerged for VS Code users: prompt injections. These can expose sensitive information like GitHub tokens and execute unwanted code. Stay safe by reviewing your extensions and limiting sensitive data in your code.

What Happened

Imagine chatting with a friend, but someone sneaks in a harmful message that changes the conversation entirely. This is similar to what happens with prompt injections in VS Code. When a chat is poisoned by indirect prompt injection, it can lead to serious consequences, such as exposing your GitHub tokens or confidential files. In some cases, it can even execute arbitrary code? without your consent.

The issue arises when VS Code features interact with chat-based tools or extensions?. If these tools are manipulated, they might inadvertently reveal sensitive information or perform actions you didn’t intend. Users need to be aware of these risks to safeguard their projects and personal data.

Why Should You Care

You might think, "This won’t happen to me," but the truth is, anyone using VS Code could be at risk. If you store sensitive information like GitHub tokens? in your code or use extensions? that interact with external services, you are vulnerable. It’s like leaving your front door unlocked — you might not think anything will happen, but it’s an open invitation for trouble.

By understanding how prompt injections? work, you can take steps to protect your code and your data. The key takeaway is that being informed is your first line of defense against these types of vulnerabilities.

What's Being Done

Developers and security experts are actively working on solutions to mitigate these risks. Here are some steps you can take right now:

  • Review your extensions: Ensure you’re only using trusted extensions? that have a good reputation.
  • Limit sensitive information: Avoid storing GitHub tokens? or confidential files directly in your code.
  • Stay updated: Keep your VS Code and its extensions? updated to the latest versions for the best security practices.

Experts are closely monitoring the situation, especially as more users adopt chat-based tools in their coding environments. They are looking for patterns in prompt injections? and developing better defenses to keep your coding experience safe.

💡 Tap dotted terms for explanations

🔒 Pro insight: Prompt injections exploit trust in chat-based tools; expect a rise in targeted attacks as these vulnerabilities become more widely known.

Original article from

GitHub Security Blog · Michael Stepankin

Read Full Article

Related Pings

HIGHVulnerabilities

Authentication Bypass Flaw Exposes pac4j-jwt Users

A critical vulnerability in the pac4j-jwt library allows attackers to impersonate users. Developers using this library must update immediately to prevent unauthorized access. Ignoring this could lead to severe security breaches.

Arctic Wolf Blog·Yesterday, 8:34 PM
CRITICALVulnerabilities

Critical Authentication Bypass in pac4j-jwt Library Exposed!

A severe flaw in the pac4j-jwt library allows hackers to bypass authentication. This affects applications relying on the library, risking user data and security. Immediate updates are essential to protect against exploitation.

Arctic Wolf Blog·Yesterday, 7:55 PM
HIGHVulnerabilities

Firefox Faces 22 Vulnerabilities Discovered by Anthropic

Anthropic discovered 22 vulnerabilities in Firefox, with 14 marked high-severity. This puts users at risk of data breaches and unauthorized access. Mozilla is working on patches to fix these issues.

TechCrunch Security·Yesterday, 7:00 PM
CRITICALVulnerabilities

Cisco FMC Faces Maximum-Severity Vulnerabilities: Act Now!

Cisco has identified two critical vulnerabilities in its Secure Firewall Management Center software. Organizations using this software are at risk of unauthorized access and control. Immediate patching is essential to protect sensitive data and maintain security.

Arctic Wolf Blog·Yesterday, 5:58 PM
HIGHVulnerabilities

Firefox Vulnerabilities Exposed by AI in Just Two Weeks

AI has uncovered 22 vulnerabilities in Firefox in just two weeks. This affects anyone using the browser, putting personal data at risk. Mozilla is working on patches to fix these issues, so stay updated!

Cyber Security News·Yesterday, 5:38 PM
HIGHVulnerabilities

Linux Rootkits Evolve with eBPF and io_uring Threats

Linux rootkits are evolving into a serious threat, targeting cloud and IoT systems. This shift puts many users at risk of data breaches and disruptions. Experts are working on detection methods and patches to combat these threats.

Cyber Security News·Yesterday, 5:33 PM