{"answers":{"affected":"2 open source packages ship an affected version, including github.com/gin-gonic/gin. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-26125 exists.","fix":"Upgrade github.com/gin-gonic/gin to 1.9.0 or later.","what":"CVE-2023-26125 is a medium-severity vulnerability in github.com/gin-gonic/gin, published on 4 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-26125 and fix it if it is affected.\n\nWhat it is: CVE-2023-26125 is a medium-severity vulnerability in github.com/gin-gonic/gin, published on 4 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-26125 exists.\n\nAffected packages and fixed versions:\n- github.com/gin-gonic/gin (Go): affected all versions; fixed in 1.9.0\n- github.com/gin-gonic/gin (Go): affected all versions; fixed in 1.9.0\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-2023-26125/ (Markdown: https://insights.sbomify.com/CVE-2023-26125/index.md)","id":"CVE-2023-26125","markdown":"https://insights.sbomify.com/CVE-2023-26125/index.md","name":"CVE-2023-26125","record":{"aliases":["CLEANSTART-2026-DB86759","DEBIAN-CVE-2023-26125","GHSA-3vp4-m3rf-835h","MINI-jxjc-j22c-jfj3","UBUNTU-CVE-2023-26125"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["other"],"network_reachable":"yes","non_default_config":true,"product_category":"Go web framework","requires_auth":"none","summary":"An attacker can poison caches via the X-Forwarded-Prefix header in the Gin web framework, potentially aiding other attacks.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"gin","vendor":"gin-gonic"}],"cvss":{"score":5.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Versions of the package github.com/gin-gonic/gin before 1.9.0 are vulnerable to Improper Input Validation by allowing an attacker to use a specially crafted request via the X-Forwarded-Prefix header, potentially leading to cache poisoning.\r\r**Note:** Although this issue does not pose a significant threat on its own it can serve as an input vector for other more impactful vulnerabilities. However, successful exploitation may depend on the server configuration and whether the header is used in the application logic.","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":"Improper input validation in github.com/gin-gonic/gin","id":"CVE-2023-26125","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"other","year":"2023"},"n_packages":2,"n_references":5,"next":{"headline":"m.static Directory Traversal vulnerability","id":"CVE-2023-26126"},"packages":[{"ecosystem":"Go","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/gin-gonic/gin","purl":null,"source":"GHSA-3vp4-m3rf-835h"},{"ecosystem":"Go","fixed":["1.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/gin-gonic/gin","purl":"pkg:golang/github.com/gin-gonic/gin","source":"GHSA-3vp4-m3rf-835h"}],"prev":{"headline":"Cross-site scripting in raysan5/raylib","id":"CVE-2023-26123"},"products":["github.com/gin-gonic/gin"],"published":"2023-05-04","related":[{"cvss_score":7.5,"headline":"Arbitrary log line injection in github.com/gin-gonic/gin","id":"CVE-2020-36567","kev_date_added":null,"published":"2022-12-27"},{"cvss_score":7.1,"headline":"HTTP Response Splitting","id":"CVE-2020-28483","kev_date_added":null,"published":"2021-01-20"},{"cvss_score":4.3,"headline":"Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin","id":"CVE-2023-29401","kev_date_added":null,"published":"2023-06-08"}],"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":"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-29","vendors":["n/a"]},"summary":"An attacker can poison caches via the X-Forwarded-Prefix header in the Gin web framework, potentially aiding other attacks.","url":"https://insights.sbomify.com/CVE-2023-26125/"}