Commit 629033c
authored
Prevent Lua injection in Neovim error notifications (#3277)
### Motivation
- Prevent execution of attacker-controlled Lua by removing string
interpolation of error messages into generated Lua code for Neovim
notifications.
### Description
- Replace unsafe interpolation in `showErrorMessage` with an
argument-bound call by using `vim.notify(...)` as the Lua snippet and
passing the `message` via `executeLua` arguments so user text is treated
as data.
### Testing
- Ran the repository lint suite with `pnpm run lint`, which completed
successfully.
------
[Codex
Task](https://chatgpt.com/codex/cloud/tasks/task_e_6a0a285bb2708333beb624ab75faffbd)1 parent b22870c commit 629033c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
| 167 | + | |
| 168 | + | |
169 | 169 | | |
0 commit comments