From 9f7cb91cc25dd4ef31377aff14ea2aaa0fa5c9f0 Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Tue, 19 May 2026 00:27:31 -0400 Subject: [PATCH] fix: prevent JS injection via token name in confirmRevoke onclick Token names containing single quotes (e.g. "O'Brien's key") broke the onclick attribute string by closing the JS string literal early. Apply JSON.stringify+esc pattern so name is safely embedded as a JSON string literal instead of a raw single-quoted string. --- services/web-ui/public/api-tokens.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/web-ui/public/api-tokens.html b/services/web-ui/public/api-tokens.html index 5c2e6dc..a2db18c 100644 --- a/services/web-ui/public/api-tokens.html +++ b/services/web-ui/public/api-tokens.html @@ -226,7 +226,7 @@
- + - \ No newline at end of file +