What’s Vulnerable › Vulnerabilities
CVE-2021-42836
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-10-22 · updated 2026-06-17
- Weakness: CWE-400
Description
GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
Affected products
- Gjson Project Gjson: before 1.9.3 — fixed in 1.9.3
How to fix
Upgrade to a fixed version: Gjson Project Gjson 1.9.3. Check the vendor advisory for mitigations.
References
- https://github.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944
- https://github.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96
- https://github.com/tidwall/gjson/compare/v1.9.2...v1.9.3
- https://github.com/tidwall/gjson/issues/236
- https://github.com/tidwall/gjson/issues/237
- https://github.com/tidwall/gjson/commit/590010fdac311cc8990ef5c97448d4fec8f29944
- https://github.com/tidwall/gjson/commit/77a57fda87dca6d0d7d4627d512a630f89a91c96
- https://github.com/tidwall/gjson/compare/v1.9.2...v1.9.3
- https://github.com/tidwall/gjson/issues/236
- https://github.com/tidwall/gjson/issues/237
Get alerted when CVE-2021-42836 or the next vulnerability affects your stack