choose-files kitten: Sanitize untrusted text in the preview panel

File names, archive member names, symlink targets, error messages and
ebook metadata were written to the terminal unsanitized, allowing
crafted names to inject escape codes (e.g. OSC 52 to overwrite the
clipboard) merely by highlighting the entry.
This commit is contained in:
Kovid Goyal 2026-11-14 12:02:45 +05:30
parent add52d9cf7
commit 4fa6709910
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
12 changed files with 246 additions and 36 deletions

View file

@ -135,6 +135,8 @@ Detailed list of changes
- Unicode input kitten: Fix searching by name not finding some characters such as the pound sign (:iss:`10862`)
- choose-files kitten: Sanitize file names, archive member names, ebook metadata and previewer output everywhere they are displayed so they cannot inject escape codes into the terminal
- :doc:`Custom shaders <custom-shaders>`: Add ``screen-shake`` shaders that shake
a window on bell and new events and uniforms for command start/finish and
alternate screen enter/exit