CVE-2020-35381: Denial of Service in jsonparser
Summary
CVE-2020-35381: Panic due to improper input validation in github.com/buger/jsonparser. Affects github.com/buger/jsonparser versions < 1.1.1. Fixed in 1.1.1. How to fix ↓
Also tracked for
- golang-github-buger-jsonparser · Debian:11
The same CVE-2020-35381 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The package under scrutiny is github.com/buger/jsonparser, which is a Go library for parsing JSON data. It provides efficient and flexible methods for extracting values from JSON documents. However, it is vulnerable to a denial of service (DoS) attack.
Vulnerability Detail
The vulnerability (CVE-2020-35381) in jsonparser before version 1.1.1 allows attackers to cause a denial of service by exploiting a flaw in the handling of GET calls. This vulnerability can be exploited remotely and may lead to the unavailability of the affected service. The Common Vulnerability Scoring System (CVSS) score for this vulnerability is 7.5, indicating a high severity.
How To Fix
Latest published version: v1.6.1 as of 22 Oct 2026
go get github.com/buger/jsonparser@v1.6.1
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
1.1.1
This is the first release that contains the fix.
go get github.com/buger/jsonparser@v1.1.1
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
In conclusion, the jsonparser package before version 1.1.1 is vulnerable to a denial of service attack. To mitigate this vulnerability, it is recommended to update the package to the latest version. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for github.com/buger/jsonparser →
FAQ
This vulnerability allows attackers to cause a denial of service, potentially leading to the unavailability of the affected service.
Yes, this vulnerability can be exploited remotely.
The severity of this vulnerability is rated as high, with a CVSS score of 7.5.
To fix this vulnerability, update the jsonparser package to version 1.1.1 or later.
No specific workaround has been mentioned for this vulnerability.
References
Related vulnerabilities
Recent vulnerabilities recorded for github.com/buger/jsonparser.