CVE-2020-35381: Denial of Service in jsonparser

github.com/buger/jsonparser Updated 02 Oct 2025

Summary

14/04/2021
Yes i
High
7.5

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

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.

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/buger/jsonparser.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback