Vulnerabilities in pkg:golang/github.com/golang/vscode-go
PACKAGECVE-2025-68120 is a MODERATE (CVSS 5.4) visual studio code go extension vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Github.com/golang/vscode go libraries in the Go ecosystem. The issue involves visual studio code go extension has unexpected untrusted code execution. Remediation is available by upgrading affected packages to version 0.52.1.
pkg:golang/github.com/golang/vscode-go
Vulnerability advisories affecting package pkg:golang/github.com/golang/vscode-go. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-fjmr-7667-8v4p | CVE-2025-68120 | MODERATE | Visual Studio Code Go extension has unexpected untrusted code execution |
CVE-2025-68120 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L).
How to Fix CVE-2025-68120
To remediate this vulnerability, upgrade all affected Github.com/golang/vscode go dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/golang/vscode-go to 0.52.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/golang/vscode-go
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-68120, inspect your project dependencies for Github.com/golang/vscode go:
inspect dependencies for github.com/golang/vscode-go
Analyze the terminal output to locate any version of Github.com/golang/vscode go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.52.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Github.com/golang/vscode go, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-68120 Affected Github.com/golang/vscode go Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/golang/vscode-go
|
Go |
< 0.52.1
|
0.52.1
|
References
Frequently Asked Questions
What is CVE-2025-68120?
Which Github.com/golang/vscode go versions are affected?
What version fixes CVE-2025-68120?
Is github.com/golang/vscode-go affected?
What is the CVSS score of CVE-2025-68120?
What CWE is associated with CVE-2025-68120?
How can I check Go dependencies for CVE-2025-68120?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fjmr-7667-8v4p",
"modified" : "2025-12-31T22:05:05Z",
"published" : "2025-12-30T00:32:59Z",
"aliases" : [ "CVE-2025-68120" ],
"summary" : "Visual Studio Code Go extension has unexpected untrusted code execution",
"details" : "To prevent unexpected untrusted code execution, the Visual Studio Code Go extension is now disabled in Restricted Mode.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/golang/vscode-go"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.52.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-68120"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/golang/vscode-go"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/golang-dev/c/CHG4qfcicBU/m/4tanFUymDQAJ"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-4249"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-31T22:05:05Z",
"nvd_published_at" : "2025-12-30T00:15:52Z"
}
}