CVE-2021-42836Gjson Project Gjson
High 7.5 No auth needed
Follow: this CVE · Gjson Project · Gjson Project Gjson We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 82
- Auth required
- No
- Published
- Oct 22, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
What to do
- Apply the vendor's security update for Gjson.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/tidwall/gjson |
< 1.9.3 |
1.9.3 |
go get github.com/tidwall/gjson@v1.9.3 |
| Go | github.com/tidwall/gjson |
< 1.9.3 |
1.9.3 |
go get github.com/tidwall/gjson@v1.9.3 |
Per OSV / GitHub Advisories (GHSA-ppj4-34rq-v8j9, GO-2021-0265). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gjson_project | gjson | < 1.9.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Exploit Issue Tracking Third Party Advisory
- github.com Exploit Issue Tracking Patch