Is github.com/tidwall/gjson 1.9 vulnerable?

Go · 5 releases from 1.9.0 to 1.9.4 · latest github.com/tidwall/gjson is 1.20.4 · checked 18 Nov 2026

No known advisories in the last release

github.com/tidwall/gjson 1.9.4, the last 1.9 release, has no known advisories. 2 advisories affect earlier 1.9.x releases, so update to 1.9.4.

Update within 1.9:go get github.com/tidwall/gjson@v1.9.4

Is your project on an affected github.com/tidwall/gjson?

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 1.9.x, affecting earlier releases

  • LowCVE-2021-42248GO-2021-026515 Aug 2022

    Denial of service via maliciously crafted path in github.com/tidwall/gjson

    Affected
    <1.9.3
    Fixed in
    1.9.3
  • HighCVE-2021-42248GHSA-ppj4-34rq-v8j925 Oct 2021

    github.com/tidwall/gjson Vulnerable to REDoS attack

    Affected
    <1.9.3
    Fixed in
    1.9.3

Every github.com/tidwall/gjson 1.9.x release

Affected: 1.9.0 to 1.9.2. 1.9.3 and later are not affected. Latest github.com/tidwall/gjson: 1.20.4.

VersionKnown advisories
github.com/tidwall/gjson 1.9.4None
github.com/tidwall/gjson 1.9.3None
github.com/tidwall/gjson 1.9.2CVE-2021-42248, CVE-2021-42248
github.com/tidwall/gjson 1.9.1CVE-2021-42248, CVE-2021-42248
github.com/tidwall/gjson 1.9.0CVE-2021-42248, CVE-2021-42248

Which of your client projects are still on github.com/tidwall/gjson 1.9?

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

Other github.com/tidwall/gjson 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.