CVE-2026-48787: gin-vue-admin code injection through autoCode/addFunc and MCP rebuild
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-48787
- Published
- Record updated
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.
Topics
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online