---
id: CVE-2025-68120
title: >-
  To prevent unexpected untrusted code execution, the Visual Studio Code Go
  extension is now disabled in Restricted Mode.
summary: >-
  To prevent unexpected untrusted code execution, the Visual Studio Code Go
  extension is now disabled in Restricted Mode.
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L'
vendor: go
product: go
affected:
  - go < 0.52.1
patched:
  - go 0.52.1
published: '2025-12-30'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T09:10:00.323'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68120'
references:
  - url: 'https://groups.google.com/g/golang-dev/c/CHG4qfcicBU/m/4tanFUymDQAJ'
    label: security@golang.org
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68120'
    label: security@golang.org
  - url: 'https://pkg.go.dev/vuln/GO-2025-4249'
    label: security@golang.org
tags:
  - nvd
epss: 0.00454
epssPercentile: 0.39247
ingestedAt: '2026-10-01T18:55:42.314Z'
---

## Overview

To prevent unexpected untrusted code execution, the Visual Studio Code Go extension is now disabled in Restricted Mode.

## Affected

- `go < 0.52.1`

## Remediation

Upgrade past the affected range:

- `go 0.52.1`
