CVE-2026-40318: Go Path Traversal Arbitrary File Delete Via Filepath Join

A filesystem path is built in a single `filepath.Join` rooted at the user data directory (`util.DataDir`) and concatenated with a user-controllable string parameter (`$ID + $EXT`), then passed to a deletion primitive (`filelock.RemoveWithoutFatal`, `filelock.Remove`, `os.Remove`, `os.RemoveAll`) without verifying that the resolved path stays inside the inten

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-40318-go-path-traversal-arbitrary-file-delete-via-filepath-join --engine opengrep

Description

A filesystem path is built in a single `filepath.Join` rooted at the user data directory (`util.DataDir`) and concatenated with a user-controllable string parameter (`$ID + $EXT`), then passed to a deletion primitive (`filelock.RemoveWithoutFatal`, `filelock.Remove`, `os.Remove`, `os.RemoveAll`) without verifying that the resolved path stays inside the inten