Skip to content

fix(deps): update module github.com/gin-contrib/cors to v1.6.0 [security]#1015

Merged
DavidePrincipi merged 1 commit intomainfrom
renovate-go-github-com-gin-contrib-cors-vulnerability
Jan 23, 2026
Merged

fix(deps): update module github.com/gin-contrib/cors to v1.6.0 [security]#1015
DavidePrincipi merged 1 commit intomainfrom
renovate-go-github-com-gin-contrib-cors-vulnerability

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jan 16, 2026

This PR contains the following updates:

Package Change Age Confidence
github.com/gin-contrib/cors v1.4.0v1.6.0 age confidence

GitHub Vulnerability Alerts

CVE-2019-25211

parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the end of an origin string, e.g., https://example.community/* is allowed when the intention is that only https://example.com/* should be allowed, and http://localhost.example.com/* is allowed when the intention is that only http://localhost/* should be allowed.


Gin mishandles a wildcard in the origin string in github.com/gin-contrib/cors

CVE-2019-25211 / GHSA-869c-j7wc-8jqv / GO-2024-2955

More information

Details

Gin-Gonic CORS middleware mishandles a wildcard at the end of an origin string. Examples: https://example.community/* is accepted by the origin string https://example.com/* and http://localhost.example.com/* is accepted by the origin string http://localhost/* .

Severity

Unknown

References

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


Gin mishandles a wildcard at the end of an origin string

CVE-2019-25211 / GHSA-869c-j7wc-8jqv / GO-2024-2955

More information

Details

parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the end of an origin string, e.g., https://example.community/* is allowed when the intention is that only https://example.com/* should be allowed, and http://localhost.example.com/* is allowed when the intention is that only http://localhost/* should be allowed.

Severity

  • CVSS Score: 9.3 / 10 (Critical)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

References

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


Release Notes

gin-contrib/cors (github.com/gin-contrib/cors)

v1.6.0

Compare Source

Changelog

Features
Bug fixes
Enhancements
  • f41df75 chore: update GitHub actions to latest versions
  • 2451987 chore: update dependencies to latest versions
  • 7d356c2 chore: update dependencies to latest versions
  • 5da0aee chore: update third-party dependencies
  • 8263fce chore: update version of actions/setup-go in GitHub workflows
Others
  • fcbd06f ci: enhance testing matrix and tolerance limits
  • f08c1bc ci: refactor CI workflows and improve tests
  • 30792dc ci: refactor GitHub Actions workflows
  • 0e993b7 ci: update GitHub Actions to Version 3
  • 90a7c66 test(cors): enhance CORS wildcard handling tests (#​145)
  • 85bf9fb test: improve CORS wildcard handling and testing (#​144)
  • d5002f2 test: refactor tests and update CI configurations

v1.5.0

Compare Source

Changelog

Features
Enhancements
  • c1983b2 chore(CI): add go1.20 version
  • 1d5e083 chore(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#​112)
  • f8b2357 chore(options): Added availability to set 200/204 for OPTIONS request status (#​129)
  • f92a222 chore: Add go 1.19 and upgrade lint version to v1.49
  • 95df7c6 chore: remove depguard linter and rename example file
  • 7ac4445 chore: update GitHub Actions configuration files
  • bbf67cd chore: update Go version and setup-go action
  • b216599 chore: update goreleaser/goreleaser-action to version v4
  • 765e44e chore: update dependencies to latest versions
  • bf2c9df chore: update linter configuration and changelog titles
  • bbb26b0 chore: update supported versions of Go
Others
  • 5914b2f build: update Go version and dependencies

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

@DavidePrincipi DavidePrincipi added the testing Start test suite label Jan 23, 2026
@DavidePrincipi DavidePrincipi merged commit 61633fa into main Jan 23, 2026
7 checks passed
@DavidePrincipi DavidePrincipi deleted the renovate-go-github-com-gin-contrib-cors-vulnerability branch January 23, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Start test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments