Is github.com/gin-gonic/gin 1.4 vulnerable?

Go · 1 release from 1.4.0 to 1.4.0 · latest github.com/gin-gonic/gin is 1.12.0 · checked 18 Nov 2026

Yes: 8 known advisories

Yes. github.com/gin-gonic/gin 1.4.0, the last 1.4 release, is affected by 8 known security advisories (1 critical, 2 high, 2 medium, 3 low), including CVE-2019-25211, CVE-2020-36567, CVE-2020-28483. Upgrade to 1.9.1 or later to fix all of them.

Upgrade with:go get github.com/gin-gonic/gin@v1.9.1

Is your project on an affected github.com/gin-gonic/gin?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting github.com/gin-gonic/gin 1.4.0

  • CriticalCVE-2019-25211GHSA-869c-j7wc-8jqv29 Jun 2024

    Gin mishandles a wildcard at the end of an origin string

    Affected
    <1.6.0
    Fixed in
    1.6.0
  • MediumCVE-2023-29401GHSA-2c4m-59x9-fr2g12 May 2023

    Gin Web Framework does not properly sanitize filename parameter of Context.FileAttachment function

    Affected
    >=1.3.1-0.20190301021747-ccb9e902956d <1.9.1
    Fixed in
    1.9.1
  • LowCVE-2023-29401GO-2023-173711 May 2023

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

    Affected
    >=1.3.1-0.20190301021747-ccb9e902956d <1.9.1
    Fixed in
    1.9.1
  • MediumCVE-2023-26125GHSA-3vp4-m3rf-835h4 May 2023

    Improper input validation in github.com/gin-gonic/gin

    Affected
    <1.9.0
    Fixed in
    1.9.0
  • HighCVE-2020-36567GHSA-6vm3-jj99-722927 Dec 2022

    Gin's default logger allows unsanitized input that can allow remote attackers to inject arbitrary log lines

    Affected
    <1.6.0
    Fixed in
    1.6.0
  • HighCVE-2020-28483GHSA-h395-qcrw-5vmq23 Jun 2021

    Inconsistent Interpretation of HTTP Requests in github.com/gin-gonic/gin

    Affected
    <1.7.7
    Fixed in
    1.7.7
  • LowCVE-2020-36567GO-2020-000114 Apr 2021

    Arbitrary log line injection in github.com/gin-gonic/gin

    Affected
    <1.6.0
    Fixed in
    1.6.0
  • LowCVE-2020-28483GO-2021-005214 Apr 2021

    Inconsistent interpretation of HTTP Requests in github.com/gin-gonic/gin

    Affected
    <1.7.7
    Fixed in
    1.7.7

Which of your client projects are still on github.com/gin-gonic/gin 1.4?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact github.com/gin-gonic/gin version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other github.com/gin-gonic/gin versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Go registry. Refreshed daily.