---
id: CVE-2026-59168
title: >-
  Dasel is a command-line tool and library for querying, modifying, and
  transforming data structures
summary: >-
  Dasel is a command-line tool and library for querying, modifying, and
  transforming data structures. From 3.0.0 until 3.11.1,
  parsing/json/json_reader.go decodeValue, decodeObject, and decodeArray, and
  parsing/xml/reader.go parseElement, …
severity: medium
cvss: 6.2
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-674
vendor: TomWright
product: dasel
affected:
  - 'dasel >= 3.0.0, < 3.11.1'
patched:
  - github.com/tomwright/dasel/v3 3.11.1
published: '2026-09-21'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T21:25:27.050'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-59168'
references:
  - url: >-
      https://github.com/TomWright/dasel/commit/4c91d0d02dc59ce8404709b1bfed7a6fabe62f68
    label: security-advisories@github.com
  - url: 'https://github.com/TomWright/dasel/releases/tag/v3.11.1'
    label: security-advisories@github.com
  - url: 'https://github.com/TomWright/dasel/security/advisories/GHSA-cqxr-jxr2-85pq'
    label: security-advisories@github.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-59168'
  - url: 'https://github.com/advisories/GHSA-cqxr-jxr2-85pq'
  - url: 'https://github.com/TomWright/dasel'
tags:
  - nvd
  - cve.org
  - ghsa
  - go
  - osv
epss: 0.0013
epssPercentile: 0.0218
aliases:
  - GHSA-cqxr-jxr2-85pq
ecosystem: go
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-21T19:40:35.532900Z'
ingestedAt: '2026-09-21T17:49:53.172Z'
---

## Overview

Dasel is a command-line tool and library for querying, modifying, and transforming data structures. From 3.0.0 until 3.11.1, parsing/json/json_reader.go decodeValue, decodeObject, and decodeArray, and parsing/xml/reader.go parseElement, recurse once per input nesting level without a depth guard. Deeply nested attacker-controlled JSON or XML supplied through parsing.Format(...).NewReader(...).Read(data), the command-line interface, or the parse selector function can exhaust the Go goroutine stack and raise an unrecoverable fatal error that terminates the entire process. The XML input-size limit does not prevent depth exhaustion, and defer or recover cannot intercept the failure. This issue is fixed in version 3.11.1.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-59168)

Affected packages:

- `github.com/tomwright/dasel/v3 >= 3.0.0, <= 3.11.0`

Patched in:

- `github.com/tomwright/dasel/v3 3.11.1`

Source: https://github.com/advisories/GHSA-cqxr-jxr2-85pq
