{"api_version":"1","generated_at":"2026-07-23T15:17:12+00:00","cve":"CVE-2023-26125","urls":{"html":"https://cve.report/CVE-2023-26125","api":"https://cve.report/api/cve/CVE-2023-26125.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-26125","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-26125"},"summary":{"title":"CVE-2023-26125","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.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2023-05-04 05:15:00","updated_at":"2023-11-07 04:09:00"},"problem_types":["CWE-20"],"metrics":[],"references":[{"url":"https://github.com/gin-gonic/gin/releases/tag/v1.9.0","name":"https://github.com/gin-gonic/gin/releases/tag/v1.9.0","refsource":"MISC","tags":[],"title":"Release v1.9.0 · gin-gonic/gin · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/gin-gonic/gin/pull/3503","name":"https://github.com/gin-gonic/gin/pull/3503","refsource":"MISC","tags":[],"title":"Fix #3500 Add escape logic for header by t0rchwo0d · Pull Request #3503 · gin-gonic/gin · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/gin-gonic/gin/pull/3500","name":"https://github.com/gin-gonic/gin/pull/3500","refsource":"MISC","tags":[],"title":"Add escape logic for header by t0rchwo0d · Pull Request #3500 · gin-gonic/gin · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/t0rchwo0d/gin/commit/fd9f98e70fb4107ee68c783482d231d35e60507b","name":"https://github.com/t0rchwo0d/gin/commit/fd9f98e70fb4107ee68c783482d231d35e60507b","refsource":"MISC","tags":[],"title":"Fix #3500 Add escape logic for header · t0rchwo0d/gin@fd9f98e · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285","name":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285","refsource":"MISC","tags":[],"title":"Improper Input Validation in github.com/gin-gonic/gin | CVE-2023-26125 | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-26125","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26125","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"26125","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gin-gonic","cpe5":"gin","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-26125","ASSIGNER":"report@snyk.io","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Improper Input Validation","cweId":"CWE-20"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"github.com/gin-gonic/gin","version":{"version_data":[{"version_affected":"<","version_name":"0","version_value":"1.9.0"}]}}]}}]}},"references":{"reference_data":[{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285","refsource":"MISC","name":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGINGONICGIN-3324285"},{"url":"https://github.com/t0rchwo0d/gin/commit/fd9f98e70fb4107ee68c783482d231d35e60507b","refsource":"MISC","name":"https://github.com/t0rchwo0d/gin/commit/fd9f98e70fb4107ee68c783482d231d35e60507b"},{"url":"https://github.com/gin-gonic/gin/pull/3500","refsource":"MISC","name":"https://github.com/gin-gonic/gin/pull/3500"},{"url":"https://github.com/gin-gonic/gin/pull/3503","refsource":"MISC","name":"https://github.com/gin-gonic/gin/pull/3503"},{"url":"https://github.com/gin-gonic/gin/releases/tag/v1.9.0","refsource":"MISC","name":"https://github.com/gin-gonic/gin/releases/tag/v1.9.0"}]},"credits":[{"lang":"en","value":"t0rchwo0d"}],"impact":{"cvss":[{"version":"3.1","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW","baseScore":5.6,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"}]}},"nvd":{"publishedDate":"2023-05-04 05:15:00","lastModifiedDate":"2023-11-07 04:09:00","problem_types":["CWE-20"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"LOW","baseScore":7.3,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.4}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:gin-gonic:gin:*:*:*:*:*:*:*:*","versionEndExcluding":"1.9.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}