Live threats

All CVEs / Gjson Project

CVE-2021-42836Gjson Project Gjson

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gjson.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gjson_projectgjson< 1.9.3

Official sources

References

Links published by the sources. Open them with care.