Skip to content

Commit 6cfe552

Browse files
msukkariclaude
andcommitted
fix(web): prevent XSS in OAuth consent screen toast message
Replace dynamic `result.message` interpolation with a static string to fix CodeQL alert #33 (js/xss-through-exception, CWE-79/CWE-116). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bae8381 commit 6cfe552

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/web/src/app/oauth/authorize/components/consentScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function ConsentScreen({
5050
window.location.href = result;
5151
} else {
5252
toast({
53-
description: `❌ Failed to approve authorization. ${result.message}`,
53+
description: '❌ Failed to approve authorization. Please try again.',
5454
});
5555
}
5656
setPending(null);

0 commit comments

Comments
 (0)