Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

plural-renovate[bot]
Copy link
Contributor

@plural-renovate plural-renovate bot commented Jan 2, 2024

This PR contains the following updates:

Package Type Update Change
github.com/gin-gonic/gin require minor v1.7.7 -> v1.9.1

⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.

GitHub Vulnerability Alerts

CVE-2023-26125

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.

CVE-2023-29401

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.


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: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

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


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

This PR has been generated by Renovate Bot.

@github-actions github-actions bot added the size/M label Jan 2, 2024
@plural-renovate plural-renovate bot force-pushed the renovate/go-github.com/gin-gonic/gin-vulnerability branch from 53f88de to b269572 Compare January 19, 2024 17:06
@plural-renovate plural-renovate bot force-pushed the renovate/go-github.com/gin-gonic/gin-vulnerability branch 2 times, most recently from 684c33a to 4eb90d9 Compare February 7, 2024 12:55
@github-actions github-actions bot added size/XS and removed size/M labels Feb 7, 2024
@plural-renovate plural-renovate bot force-pushed the renovate/go-github.com/gin-gonic/gin-vulnerability branch from 4eb90d9 to b3eb365 Compare February 9, 2024 18:03
@plural-renovate plural-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 7, 2024
@plural-renovate plural-renovate bot closed this Mar 7, 2024
@plural-renovate plural-renovate bot deleted the renovate/go-github.com/gin-gonic/gin-vulnerability branch March 7, 2024 18:55
@plural-renovate plural-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 7, 2024
@plural-renovate plural-renovate bot reopened this Mar 7, 2024
@plural-renovate plural-renovate bot restored the renovate/go-github.com/gin-gonic/gin-vulnerability branch March 7, 2024 21:40
@plural-renovate plural-renovate bot force-pushed the renovate/go-github.com/gin-gonic/gin-vulnerability branch from b3eb365 to 08549d6 Compare March 25, 2024 16:08
@github-actions github-actions bot added size/M and removed size/XS labels Mar 25, 2024
@plural-renovate plural-renovate bot force-pushed the renovate/go-github.com/gin-gonic/gin-vulnerability branch from 08549d6 to ab90695 Compare April 20, 2024 02:11
@plural-renovate plural-renovate bot force-pushed the renovate/go-github.com/gin-gonic/gin-vulnerability branch from ab90695 to 104f18d Compare May 17, 2024 14:59
@plural-renovate plural-renovate bot force-pushed the renovate/go-github.com/gin-gonic/gin-vulnerability branch from 104f18d to 1ec06b4 Compare June 17, 2024 18:50
@plural-renovate plural-renovate bot force-pushed the renovate/go-github.com/gin-gonic/gin-vulnerability branch from 1ec06b4 to 5f3200c Compare June 27, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants