Skip to content
HighVulnerability

CVE-2026-48787: gin-vue-admin code injection through autoCode/addFunc and MCP rebuild

Identifier
CVE-2026-48787
Published
Record updated
View JSON

Summary

gin-vue-admin version 2.9.1 contains a flaw that lets an authenticated attacker with access to the code-generation feature and MCP management interface inject attacker-controlled Go source code via POST /autoCode/addFunc, then trigger a rebuild and restart of the standalone MCP service through POST /autoCode/mcpStart. Successful exploitation allows arbitrary operating system commands with the privileges of the application process, with risk highest where the source tree is retained and writable.

Mitigation

As a workaround, enforce strict allowlist validation on path- and identifier-related fields such as `humpPackageName`, `packageName`, `FuncName`, and `Router`, and only permit safe identifier formats. The source states that it is unknown whether a patched version is available.