CVE-2020-10675: Infinite Loop in jsonparser

github.com/buger/jsonparser Updated 02 Oct 2025

Summary

18/05/2021
Yes i
High
7.5

CVE-2020-10675: Infinite Loop in jsonparser. Affects github.com/buger/jsonparser versions < 1.0.0. Fixed in 1.0.0. How to fix ↓

Also tracked for

The same CVE-2020-10675 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 buger jsonparser library is a Go package that provides a fast and efficient way to parse JSON data. It is commonly used in Go applications to handle JSON parsing and manipulation. The library allows developers to extract values from JSON objects and arrays using a simple API. However, a vulnerability has been discovered in the library that can lead to a denial of service (infinite loop) when a specific Delete call is made.

Vulnerability Detail

The vulnerability in buger jsonparser (versions prior to 1.0.0) allows attackers to trigger an infinite loop by making a Delete call. This can result in a denial of service, causing the affected application to become unresponsive or crash. The issue arises due to improper handling of certain inputs during the Delete operation. Attackers can exploit this vulnerability by crafting malicious JSON payloads and sending them to the application. The impact of this vulnerability can be severe, as it can lead to service disruption and potential downtime.

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.0.0

This is the first release that contains the fix.

go get github.com/buger/jsonparser@v1.0.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a workaround, developers can implement input validation and sanitization mechanisms to mitigate the risk of exploitation. By carefully validating and sanitizing JSON inputs before passing them to the jsonparser library, developers can prevent malicious inputs from triggering the infinite loop. This can be achieved by using appropriate JSON validation libraries or implementing custom validation logic. Here is an example of how input validation can be performed using the encoding/json package in Go:

import (
    "encoding/json"
    "log"
)

func validateJSON(input []byte) error {
    var data interface{}
    if err := json.Unmarshal(input, &data); err != nil {
        log.Println("Invalid JSON input: ", err)
        return err
    }
    // Perform additional validation checks
    // ...
    return nil
}

Conclusion

The vulnerability in buger jsonparser can lead to a denial of service (infinite loop) in applications that use the library. To mitigate the risk, developers should update their applications to use buger jsonparser version 1.0.0 or later. Additionally, implementing input validation and sanitization mechanisms can help prevent the exploitation of this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/buger/jsonparser →

Share this vulnerability

FAQ

The vulnerability can lead to a denial of service (infinite loop) in applications that use the buger jsonparser library. This can result in the affected application becoming unresponsive or crashing, causing service disruption and potential downtime.

Attackers can exploit this vulnerability by crafting malicious JSON payloads and sending them to the application. By making a specific Delete call, they can trigger an infinite loop in the jsonparser library, causing the application to consume excessive resources and become unresponsive.

Yes, developers can fix this vulnerability by updating their applications to use buger jsonparser version 1.0.0 or later. By upgrading to a patched version of the library, the infinite loop issue is addressed, preventing the vulnerability from being exploited.

Developers can implement input validation and sanitization mechanisms to mitigate the risk of exploitation. By carefully validating and sanitizing JSON inputs before passing them to the jsonparser library, developers can prevent malicious inputs from triggering the infinite loop.

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.0.0

This is the first release that contains the fix.

go get github.com/buger/jsonparser@v1.0.0

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