Skip to content

fix(deps): update module github.com/gin-gonic/gin to v1.9.1 [security] - #208

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate-go-github-com-gin-gonic-gin-vulnerability
Open

fix(deps): update module github.com/gin-gonic/gin to v1.9.1 [security]#208
renovate[bot] wants to merge 1 commit into
masterfrom
renovate-go-github-com-gin-gonic-gin-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/gin-gonic/gin v1.7.7v1.9.1 age confidence

Improper 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 Score: 5.6 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

References

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 Score: 4.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Improper 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 Score: 5.6 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

References

This data is provided by OSV and 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 / GO-2023-1737

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 Score: 4.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin

CVE-2023-29401 / GHSA-2c4m-59x9-fr2g / GO-2023-1737

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

Unknown

References

This data is provided by OSV and the Go Vulnerability Database (CC-BY 4.0).


Release Notes

gin-gonic/gin (github.com/gin-gonic/gin)

v1.9.1

Compare Source

BUG FIXES
SECURITY
  • fix lack of escaping of filename in Content-Disposition #​3556
ENHANCEMENTS
  • refactor: use bytes.ReplaceAll directly #​3455
  • convert strings and slices using the officially recommended way #​3344
  • improve render code coverage #​3525
DOCS
  • docs: changed documentation link for trusted proxies #​3575
  • chore: improve linting, testing, and GitHub Actions setup #​3583

v1.9.0

Compare Source

BREAK CHANGES
  • Stop useless panicking in context and render #​2150
BUG FIXES
  • fix(router): tree bug where loop index is not decremented. #​3460
  • fix(context): panic on NegotiateFormat - index out of range #​3397
  • Add escape logic for header #​3500 and #​3503
SECURITY
  • Fix the GO-2022-0969 and GO-2022-0288 vulnerabilities #​3333
  • fix(security): vulnerability GO-2023-1571 #​3505
ENHANCEMENTS
  • feat: add sonic json support #​3184
  • chore(file): Creates a directory named path #​3316
  • fix: modify interface check way #​3327
  • remove deprecated of package io/ioutil #​3395
  • refactor: avoid calling strings.ToLower twice #​3343
  • console logger HTTP status code bug fixed #​3453
  • chore(yaml): upgrade dependency to v3 version #​3456
  • chore(router): match method added to routergroup for multiple HTTP methods supporting #​3464
  • chore(http): add support for go1.20 http.rwUnwrapper to gin.responseWriter #​3489
DOCS
  • docs: update markdown format #​3260
  • docs(readme): Add the TOML rendering example #​3400
  • docs(readme): move more example to docs/doc.md #​3449
  • docs: update markdown format #​3446

v1.8.2

Compare Source

BUG FIXES
SECURITY

v1.8.1

Compare Source

ENHANCEMENTS
  • feat(context): add ContextWithFallback feature flag #​3172

v1.8.0

Compare Source

BREAK CHANGES
  • TrustedProxies: Add default IPv6 support and refactor #​2967. Please replace RemoteIP() (net.IP, bool) with RemoteIP() net.IP
  • gin.Context with fallback value from gin.Context.Request.Context() #​2751
BUG FIXES
  • Fixed SetOutput() panics on go 1.17 #​2861
  • Fix: wrong when wildcard follows named param #​2983
  • Fix: missing sameSite when do context.reset() #​3123
ENHANCEMENTS
  • Use Header() instead of deprecated HeaderMap #​2694
  • RouterGroup.Handle regular match optimization of http method #​2685
  • Add support go-json, another drop-in json replacement #​2680
  • Use errors.New to replace fmt.Errorf will much better #​2707
  • Use Duration.Truncate for truncating precision #​2711
  • Get client IP when using Cloudflare #​2723
  • Optimize code adjust #​2700
  • Optimize code and reduce code cyclomatic complexity #​2737
  • Improve sliceValidateError.Error performance #​2765
  • Support custom struct tag #​2720
  • Improve router group tests #​2787
  • Fallback Context.Deadline() Context.Done() Context.Err() to Context.Request.Context() #​2769
  • Some codes optimize #​2830 #​2834 #​2838 #​2837 #​2788 #​2848 #​2851 #​2701
  • TrustedProxies: Add default IPv6 support and refactor #​2967
  • Test(route): expose performRequest func #​3012
  • Support h2c with prior knowledge #​1398
  • Feat attachment filename support utf8 #​3071
  • Feat: add StaticFileFS #​2749
  • Feat(context): return GIN Context from Value method #​2825
  • Feat: automatically SetMode to TestMode when run go test #​3139
  • Add TOML bining for gin #​3081
  • IPv6 add default trusted proxies #​3033
DOCS
  • Add note about nomsgpack tag to the readme #​2703

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch from 14c1ee1 to 4a07ce7 Compare January 21, 2026 15:19
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch from 4a07ce7 to 9ec3a7c Compare February 13, 2026 19:19
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch from 9ec3a7c to 23d71c1 Compare March 13, 2026 11:49
@renovate renovate Bot changed the title fix(deps): update module github.com/gin-gonic/gin to v1.9.1 [security] fix(deps): update module github.com/gin-gonic/gin to v1.9.1 [security] - autoclosed Mar 26, 2026
@renovate renovate Bot closed this Mar 26, 2026
@renovate
renovate Bot deleted the renovate-go-github-com-gin-gonic-gin-vulnerability branch March 26, 2026 21:28
@renovate renovate Bot changed the title fix(deps): update module github.com/gin-gonic/gin to v1.9.1 [security] - autoclosed fix(deps): update module github.com/gin-gonic/gin to v1.9.1 [security] Mar 27, 2026
@renovate renovate Bot reopened this Mar 27, 2026
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch 2 times, most recently from 23d71c1 to d2d5475 Compare March 27, 2026 01:37
@renovate renovate Bot changed the title fix(deps): update module github.com/gin-gonic/gin to v1.9.1 [security] Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] Apr 8, 2026
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch from d2d5475 to 358f6eb Compare April 29, 2026 09:53
@renovate renovate Bot 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 May 16, 2026
@renovate renovate Bot closed this May 16, 2026
@renovate renovate Bot 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] May 17, 2026
@renovate renovate Bot reopened this May 17, 2026
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch 2 times, most recently from 358f6eb to d555caa Compare May 17, 2026 01:32
@renovate renovate Bot 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 May 21, 2026
@renovate renovate Bot closed this May 21, 2026
@renovate renovate Bot 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] May 22, 2026
@renovate renovate Bot reopened this May 22, 2026
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch 2 times, most recently from d555caa to 9d1b61a Compare May 22, 2026 02:07
@renovate renovate Bot 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 May 26, 2026
@renovate renovate Bot closed this May 26, 2026
@renovate renovate Bot 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] May 27, 2026
@renovate renovate Bot reopened this May 27, 2026
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch 2 times, most recently from 9d1b61a to 302700d Compare May 27, 2026 00:49
@renovate renovate Bot reopened this Jul 3, 2026
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch 2 times, most recently from 302700d to 70476c0 Compare July 3, 2026 21:13
@renovate renovate Bot 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 Jul 20, 2026
@renovate renovate Bot closed this Jul 20, 2026
@renovate renovate Bot 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] Jul 20, 2026
@renovate renovate Bot reopened this Jul 20, 2026
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch 2 times, most recently from 70476c0 to 6c60558 Compare July 20, 2026 22:47
@renovate renovate Bot 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 Jul 29, 2026
@renovate renovate Bot closed this Jul 29, 2026
@renovate renovate Bot 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] Jul 29, 2026
@renovate renovate Bot reopened this Jul 29, 2026
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch 2 times, most recently from 6c60558 to ef33503 Compare July 29, 2026 13:11
@renovate renovate Bot 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 Jul 30, 2026
@renovate renovate Bot closed this Jul 30, 2026
@renovate renovate Bot 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] Jul 30, 2026
@renovate renovate Bot reopened this Jul 30, 2026
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch 2 times, most recently from ef33503 to d5e6fe2 Compare July 30, 2026 21:00
@renovate renovate Bot 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 Aug 12, 2026
@renovate renovate Bot closed this Aug 12, 2026
@renovate renovate Bot 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] Aug 12, 2026
@renovate renovate Bot reopened this Aug 12, 2026
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch from d5e6fe2 to fd0887f Compare August 12, 2026 23:20
@renovate renovate Bot changed the title Update module github.com/gin-gonic/gin to v1.9.1 [SECURITY] fix(deps): update module github.com/gin-gonic/gin to v1.9.1 [security] Aug 25, 2026
@renovate
renovate Bot force-pushed the renovate-go-github-com-gin-gonic-gin-vulnerability branch from fd0887f to b2d91b7 Compare August 26, 2026 21:18
@renovate

renovate Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 11 additional dependencies were updated

Details:

Package Change
github.com/stretchr/testify v1.7.0 -> v1.8.3
github.com/go-playground/locales v0.13.0 -> v0.14.1
github.com/go-playground/universal-translator v0.17.0 -> v0.18.1
github.com/go-playground/validator/v10 v10.4.1 -> v10.14.0
github.com/golang/protobuf v1.3.3 -> v1.5.0
github.com/json-iterator/go v1.1.9 -> v1.1.12
github.com/leodido/go-urn v1.2.0 -> v1.2.4
github.com/mattn/go-isatty v0.0.12 -> v0.0.19
github.com/modern-go/reflect2 v1.0.1 -> v1.0.2
github.com/ugorji/go/codec v1.1.7 -> v1.2.11
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c -> v3.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants