Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/golang/vscode-go
  4. ›
  5. CVE-2025-68120

CVE-2025-68120: Visual Studio Code Go extension has unexpected untrusted code execution

December 30, 2025 (updated December 31, 2025)

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

References

  • github.com/advisories/GHSA-fjmr-7667-8v4p
  • github.com/golang/vscode-go
  • groups.google.com/g/golang-dev/c/CHG4qfcicBU/m/4tanFUymDQAJ
  • nvd.nist.gov/vuln/detail/CVE-2025-68120
  • pkg.go.dev/vuln/GO-2025-4249

Code Behaviors & Features

Detect and mitigate CVE-2025-68120 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.52.1

Fixed versions

  • 0.52.1

Solution

Upgrade to version 0.52.1 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

go/github.com/golang/vscode-go/CVE-2025-68120.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 21 Jan 2026 12:17:14 +0000.