Is github.com/golang-jwt/jwt/v4 4.5 vulnerable?

Go · 3 releases from 4.5.0 to 4.5.2 · latest github.com/golang-jwt/jwt/v4 is 4.5.2 · checked 18 Nov 2026

No known advisories in the last release

github.com/golang-jwt/jwt/v4 4.5.2, the last 4.5 release, has no known advisories. 4 advisories affect earlier 4.5.x releases, so update to 4.5.2.

Update within 4.5:go get github.com/golang-jwt/jwt/v4@v4.5.2

Is your project on an affected github.com/golang-jwt/jwt/v4?

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

Fixed within 4.5.x, affecting earlier releases

  • LowCVE-2025-30204GO-2025-355326 Mar 2025

    Excessive memory allocation during header parsing in github.com/golang-jwt/jwt

    Affected
    <4.5.2
    Fixed in
    4.5.2
  • HighCVE-2025-30204GHSA-mh63-6h87-95cp21 Mar 2025

    jwt-go allows excessive memory allocation during header parsing

    Affected
    <4.5.2
    Fixed in
    4.5.2
  • LowCVE-2024-51744GO-2024-325012 Nov 2024

    Improper error handling in ParseWithClaims and bad documentation may cause dangerous situations in github.com/golang-jwt/jwt

    Affected
    <4.5.1
    Fixed in
    4.5.1
  • LowCVE-2024-51744GHSA-29wx-vh33-7x7r4 Nov 2024

    Bad documentation of error handling in ParseWithClaims can lead to potentially dangerous situations

    Affected
    <4.5.1
    Fixed in
    4.5.1

Every github.com/golang-jwt/jwt/v4 4.5.x release

Affected: 4.5.0 to 4.5.1. 4.5.2 is not affected.

VersionKnown advisories
github.com/golang-jwt/jwt/v4 4.5.2None
github.com/golang-jwt/jwt/v4 4.5.1CVE-2025-30204, CVE-2025-30204
github.com/golang-jwt/jwt/v4 4.5.0CVE-2025-30204, CVE-2025-30204, CVE-2024-51744, CVE-2024-51744

Which of your client projects are still on github.com/golang-jwt/jwt/v4 4.5?

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

Other github.com/golang-jwt/jwt/v4 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.