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

Go · 3 releases from 1.8.0 to 1.8.2 · latest github.com/gin-gonic/gin is 1.12.0 · checked 18 Nov 2026

Yes: 3 known advisories

Yes. github.com/gin-gonic/gin 1.8.2, the last 1.8 release, is affected by 3 known security advisories (2 medium, 1 low), including CVE-2023-29401, CVE-2023-26125, CVE-2023-29401. 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.8.2

  • 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

Every github.com/gin-gonic/gin 1.8.x release

Affected: 1.8.0 to 1.8.2. Latest github.com/gin-gonic/gin: 1.12.0.

VersionKnown advisories
github.com/gin-gonic/gin 1.8.2CVE-2023-29401, CVE-2023-29401, CVE-2023-26125
github.com/gin-gonic/gin 1.8.1CVE-2023-29401, CVE-2023-29401, CVE-2023-26125
github.com/gin-gonic/gin 1.8.0CVE-2023-29401, CVE-2023-29401, CVE-2023-26125

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

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.