{"answers":{"affected":"3 open source packages ship an affected version, including github.com/flipped-aurora/gin-vue-admin. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-22786 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-22786 is a high-severity path traversal vulnerability in flipped-aurora gin-vue-admin, published on 12 Jan 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-22786 and fix it if it is affected.\n\nWhat it is: CVE-2026-22786 is a high-severity path traversal vulnerability in flipped-aurora gin-vue-admin, published on 12 Jan 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-22786 exists.\n\nAffected packages and fixed versions:\n- github.com/flipped-aurora/gin-vue-admin (Go): affected all versions; no fix listed\n- github.com/flipped-aurora/gin-vue-admin (Go): affected all versions up to 2.8.7; no fix listed\n- github.com/flipped-aurora/gin-vue-admin (Go): affected all versions up to 2.8.7; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-22786/ (Markdown: https://insights.sbomify.com/CVE-2026-22786/index.md)","id":"CVE-2026-22786","markdown":"https://insights.sbomify.com/CVE-2026-22786/index.md","name":"CVE-2026-22786","record":{"aliases":["GHSA-3558-j79f-vvm6","GO-2026-4313"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Gin-vue-admin","requires_auth":"high_privilege","summary":"Attackers with upload privileges can exploit path traversal in breakpoint resume uploads to write arbitrary files to any directory.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"gin-vue-admin","vendor":"gin-vue-admin_project"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Gin-vue-admin is a backstage management system based on vue and gin. Gin-vue-admin \u003c= v2.8.7 has a path traversal vulnerability in the breakpoint resume upload functionality. Attacker can upload any files on any directory. In the breakpoint_continue.go file, the MakeFile function accepts a fileName parameter through the /fileUploadAndDownload/breakpointContinueFinish API endpoint and directly concatenates it with the base directory path (./fileDir/) using os.OpenFile() without any validation for directory traversal sequences (e.g., ../). An attacker with file upload privileges could exploit this vulnerability.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Gin-vue-admin has arbitrary file upload vulnerability caused by path traversal","id":"CVE-2026-22786","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"html2pdf.js has a cross-site scripting vulnerability","id":"CVE-2026-22787"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/flipped-aurora/gin-vue-admin","purl":"pkg:golang/github.com/flipped-aurora/gin-vue-admin","source":"GO-2026-4313"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.8.7"],"package":"github.com/flipped-aurora/gin-vue-admin","purl":null,"source":"GHSA-3558-j79f-vvm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.8.7"],"package":"github.com/flipped-aurora/gin-vue-admin","purl":"pkg:golang/github.com/flipped-aurora/gin-vue-admin","source":"GHSA-3558-j79f-vvm6"}],"prev":{"headline":"orval MCP client is vulnerable to a code injection attack.","id":"CVE-2026-22785"},"products":["gin-vue-admin"],"published":"2026-01-12","related":[{"cvss_score":9.8,"headline":"Gin-vue-admin arbitrary file upload vulnerability caused by path traversal","id":"CVE-2022-39345","kev_date_added":null,"published":"2022-10-25"},{"cvss_score":9.8,"headline":"Gin-vue-admin vulnerable to Unrestricted Upload of File with Dangerous Type","id":"CVE-2022-39305","kev_date_added":null,"published":"2022-10-24"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2021-44219","kev_date_added":null,"published":"2021-11-24"},{"cvss_score":9,"headline":"Gin-vue-admin - Unrestricted File Upload","id":"CVE-2022-32176","kev_date_added":null,"published":"2022-10-17"},{"cvss_score":9,"headline":"Gin-vue-admin - Unrestricted File Upload","id":"CVE-2022-32177","kev_date_added":null,"published":"2022-10-14"},{"cvss_score":8.7,"headline":"Gin-vue-admin has an arbitrary file deletion vulnerability","id":"CVE-2025-66410","kev_date_added":null,"published":"2025-12-01"},{"cvss_score":8.1,"headline":"SQL Injection in github.com/flipped-aurora/gin-vue-admin","id":"CVE-2022-24844","kev_date_added":null,"published":"2022-04-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-01-13","vendors":["flipped-aurora"]},"summary":"Attackers with upload privileges can exploit path traversal in breakpoint resume uploads to write arbitrary files to any directory.","url":"https://insights.sbomify.com/CVE-2026-22786/"}