You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Versions of the package github.com/gin-gonic/gin before version 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.
The filename parameter of the Context.FileAttachment function is not properly sanitized. A maliciously crafted filename can cause the Content-Disposition header to be sent with an unexpected filename value or otherwise modify the Content-Disposition header. For example, a filename of "setup.bat";x=.txt" will be sent as a file named "setup.bat".
If the FileAttachment function is called with names provided by an untrusted source, this may permit an attacker to cause a file to be served with a name different than provided. Maliciously crafted attachment file name can modify the Content-Disposition header.
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Feb 6, 2025
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Feb 6, 2025
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Feb 16, 2025
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Feb 16, 2025
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Feb 24, 2025
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Feb 24, 2025
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Nov 14, 2025
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Nov 14, 2025
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Dec 18, 2025
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Dec 18, 2025
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Mar 27, 2026
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Mar 30, 2026
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Jun 4, 2026
renovateBot
changed the title
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] - autoclosed
Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY]
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.7.7→v1.9.1Improper input validation in github.com/gin-gonic/gin
CVE-2023-26125 / GHSA-3vp4-m3rf-835h
More information
Details
Versions of the package github.com/gin-gonic/gin before version 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.
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Gin Web Framework does not properly sanitize filename parameter of Context.FileAttachment function
CVE-2023-29401 / GHSA-2c4m-59x9-fr2g
More information
Details
The filename parameter of the Context.FileAttachment function is not properly sanitized. A maliciously crafted filename can cause the Content-Disposition header to be sent with an unexpected filename value or otherwise modify the Content-Disposition header. For example, a filename of "setup.bat";x=.txt" will be sent as a file named "setup.bat".
If the FileAttachment function is called with names provided by an untrusted source, this may permit an attacker to cause a file to be served with a name different than provided. Maliciously crafted attachment file name can modify the Content-Disposition header.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
gin-gonic/gin (github.com/gin-gonic/gin)
v1.9.1Compare Source
BUG FIXES
SECURITY
ENHANCEMENTS
DOCS
v1.9.0Compare Source
BREAK CHANGES
BUG FIXES
SECURITY
ENHANCEMENTS
DOCS
v1.8.2Compare Source
BUG FIXES
SECURITY
v1.8.1Compare Source
ENHANCEMENTS
v1.8.0Compare Source
BREAK CHANGES
RemoteIP() (net.IP, bool)withRemoteIP() net.IPBUG FIXES
ENHANCEMENTS
DOCS
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.