# CVE-2026-62866: Dasel: Selector lexer panics on trailing whitespace in `parseCurRune`

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-21T16:51:18.520Z
- Modified: 2026-10-01T20:55:58.390Z
- Also known as: GHSA-65gg-g7rw-6cpc, GO-2026-6548
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- TomWright dasel: >= 3.0.0, < 3.11.2
- github.com/tomwright/dasel/v3 (Go): from 3.0.0 before 3.11.2
- github.com/tomwright/dasel (Go): all versions
- github.com/tomwright/dasel/v2 (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.2 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/TomWright/dasel/security/advisories/GHSA-65gg-g7rw-6cpc> (exploit, advisory, web)
- <https://github.com/TomWright/dasel/commit/eee03aec28d4a33d6138098d065b7b37b85e3c55> (web)
- <https://github.com/TomWright/dasel/releases/tag/v3.11.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-62866> (advisory)
- <https://github.com/TomWright/dasel> (package)

## Sources

- CVE List: [CVE-2026-62866](https://www.cve.org/CVERecord?id=CVE-2026-62866), CVE Terms of Use, modified 2026-09-21
- GitHub Advisory Database: [GHSA-65gg-g7rw-6cpc](https://github.com/advisories/GHSA-65gg-g7rw-6cpc), CC-BY-4.0, modified 2026-10-01
- Go Vulnerability Database: [GO-2026-6548](https://pkg.go.dev/vuln/GO-2026-6548), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-62866](https://nvd.nist.gov/vuln/detail/CVE-2026-62866), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-62866 · Whole record: https://cve.day/CVE-2026-62866.json · Rebuilt by cve.day 2026-11-25T22:59:40.352Z
