# CVE-2023-26125: Improper input validation in github.com/gin-gonic/gin

- Severity: Medium 5.6 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.91%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-05-04T05:00:01.441Z
- Modified: 2026-06-17T05:42:43.873Z
- Also known as: GHSA-3vp4-m3rf-835h
- Weaknesses: CWE-20, CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## 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.

**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.

(As written by CVE List.)

## Affected

- github.com/gin-gonic/gin: before 1.9.0
- github.com/gin-gonic/gin (Go): before 1.9.0
- gin-gonic gin: before 1.9.0

## Every score

- snyk: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- CISA-ADP: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285> (exploit, patch, third-party-advisory, web)
- <https://github.com/gin-gonic/gin/pull/3500> (exploit, patch, web)
- <https://github.com/t0rchwo0d/gin/commit/fd9f98e70fb4107ee68c783482d231d35e60507b> (patch, web)
- <https://github.com/gin-gonic/gin/pull/3503> (issue-tracking, patch, web)
- <https://github.com/gin-gonic/gin/releases/tag/v1.9.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-26125> (advisory)
- <https://github.com/gin-gonic/gin> (package)

## Sources

- CVE List: [CVE-2023-26125](https://www.cve.org/CVERecord?id=CVE-2023-26125), CVE Terms of Use, modified 2025-01-29
- GitHub Advisory Database: [GHSA-3vp4-m3rf-835h](https://github.com/advisories/GHSA-3vp4-m3rf-835h), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2023-26125](https://nvd.nist.gov/vuln/detail/CVE-2023-26125), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-26125 · Whole record: https://cve.day/CVE-2023-26125.json · Rebuilt by cve.day 2026-11-25T22:58:23.899Z
