---
id: 7660
title: "CVE-2021-43908: Remote code execution in VSCode restricted mode"
cve: CVE-2021-43908
source_domain: hacktron.ai
source_url: "https://www.hacktron.ai/blog/vscode-rce"
published_at: "2022-06-29T00:00:00Z"
tags: ["rce", "vulnerability-research", "webview", "vscode", "csp-bypass", "cve-2021-43908"]
phying_url: "https://phying.com/item/7660"
lang: en
---

# CVE-2021-43908: Remote code execution in VSCode restricted mode

## Summary

This research chains origin leaks, CSP bypasses, and flawed webview message handlers to gain remote code execution in Visual Studio Code even with Restricted Mode enabled.

## Intelligence Metadata

- **Sources:** hacktron.ai
- **CVE:** CVE-2021-43908
- **Published:** 2022-06-29T00:00:00Z
- **Original:** https://www.hacktron.ai/blog/vscode-rce
- **Phying News:** https://phying.com/item/7660
