HighGHSA-ppj4-34rq-v8j9CVE-2021-42248CVE-2021-42836GHSA-c9gm-7rfj-8w5hGO-2021-0265
github.com/tidwall/gjson Vulnerable to REDoS attack
Published 25 Oct 2021 · Updated 20 May 2024
Is your project on an affected github.com/tidwall/gjson?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.9.3
- Fixed in
- 1.9.3
Update to the fixed version for your release line, for example:
go get github.com/tidwall/gjson@v1.9.3Details
GJSON is a Go package that provides a fast and simple way to get values from a json document. GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
Is GHSA-ppj4-34rq-v8j9 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/tidwall/gjson, and gives you the command that fixes it.
More advisories for github.com/tidwall/gjson
- HighCVE-2020-36067Improper Validation of Array Index in GJSON · 6 Feb 2023
- LowCVE-2020-36066Denial of service via maliciously crafted JSON in github.com/tidwall/gjson · 25 Aug 2022
- HighCVE-2020-35380Denial of service in GJSON · 23 Jun 2021
- HighCVE-2020-36066github.com/tidwall/gjson is vulnerable to Denial of service · 18 May 2021
- LowCVE-2020-36067Panic due to improper input validation in ForEach in github.com/tidwall/gjson · 14 Apr 2021
- LowCVE-2020-35380Panic due to improper input validation in Get in github.com/tidwall/gjson · 14 Apr 2021
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-42836
- Linkgithub.com/tidwall/gjson/issues/236
- Linkgithub.com/tidwall/gjson/issues/237
- Linkgithub.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944
- Linkgithub.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96
- Packagegithub.com/tidwall/gjson
- Linkgithub.com/tidwall/gjson/compare/v1.9.2...v1.9.3
- Linkpkg.go.dev/vuln/GO-2021-0265
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.