Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/tomwright/dasel/v3
  4. ›
  5. CVE-2026-62866

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

September 22, 2026

Same panic class as GHSA-m5j3-4634-c2vq and GHSA-m6xr-fvfg-5g64, sister site on the same function. Trigger is any selector ending in whitespace: dasel query 'a ' panics at selector/lexer/tokenize.go:60.

The whitespace-skip loop right above (lines 55-57) advances p.i to p.srcLen when the input is all-whitespace or whitespace-trailing. The very next line reads p.src[p.i] without a bounds check.

References

  • github.com/TomWright/dasel/commit/eee03aec28d4a33d6138098d065b7b37b85e3c55
  • github.com/TomWright/dasel/releases/tag/v3.11.2
  • github.com/TomWright/dasel/security/advisories/GHSA-65gg-g7rw-6cpc
  • github.com/advisories/GHSA-65gg-g7rw-6cpc
  • nvd.nist.gov/vuln/detail/CVE-2026-62866

Code Behaviors & Features

Detect and mitigate CVE-2026-62866 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0 before 3.11.2

Fixed versions

  • 3.11.2

Solution

Upgrade to version 3.11.2 or above.

Impact 6.2 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-129: Improper Validation of Array Index

Source file

go/github.com/tomwright/dasel/v3/CVE-2026-62866.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:19 +0000.