---
id: CVE-2026-62866
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.2,
  selector/lexer/tokenize.go parseCurRune advances the input index across
  trailing whitespace and then reads the s…
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-129
vendor: TomWright
product: dasel
affected:
  - 'dasel >= 3.0.0, < 3.11.2'
patched:
  - github.com/tomwright/dasel/v3 3.11.2
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-62866'
references:
  - url: >-
      https://github.com/TomWright/dasel/commit/eee03aec28d4a33d6138098d065b7b37b85e3c55
    label: security-advisories@github.com
  - url: 'https://github.com/TomWright/dasel/releases/tag/v3.11.2'
    label: security-advisories@github.com
  - url: 'https://github.com/TomWright/dasel/security/advisories/GHSA-65gg-g7rw-6cpc'
    label: security-advisories@github.com
  - url: 'https://github.com/TomWright/dasel/security/advisories/GHSA-65gg-g7rw-6cpc'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-62866'
  - url: 'https://github.com/advisories/GHSA-65gg-g7rw-6cpc'
  - url: 'https://github.com/TomWright/dasel'
tags:
  - nvd
  - cve.org
  - exploit-available
  - ghsa
  - go
  - osv
epss: 0.00192
epssPercentile: 0.07863
aliases:
  - GHSA-65gg-g7rw-6cpc
ecosystem: go
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-21T17:59:52.863215Z'
ingestedAt: '2026-09-21T17:49:53.174Z'
---

## Overview

Dasel is a command-line tool and library for querying, modifying, and transforming data structures. From 3.0.0 until 3.11.2, selector/lexer/tokenize.go parseCurRune advances the input index across trailing whitespace and then reads the source at the exhausted index without an end-of-input check. A selector ending in whitespace, including input passed through lexer.NewTokenizer(...).Tokenize() or dasel.Query, can therefore cause an index-out-of-range panic and terminate the process. This issue is fixed in version 3.11.2.

## Remediation

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

## Package advisory (CVE-2026-62866)

Affected packages:

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

Patched in:

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

Source: https://github.com/advisories/GHSA-65gg-g7rw-6cpc
