Skip to content

Commit 855e832

Browse files
Potential fix for code scanning alert no. 1: Incomplete URL scheme check
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 0c15504 commit 855e832

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hostBridge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ export class HostBridge implements ToastService {
834834
const uri = vsc.Uri.parse(uriString);
835835

836836
// SECURITY: Block dangerous URI schemes that could execute code or fetch remote resources
837-
const blockedSchemes = ['http', 'https', 'command', 'javascript', 'data', 'vscode-command'];
837+
const blockedSchemes = ['http', 'https', 'command', 'javascript', 'data', 'vbscript', 'vscode-command'];
838838
if (blockedSchemes.includes(uri.scheme)) {
839839
throw new Error(`Access denied: Cannot read from scheme "${uri.scheme}"`);
840840
}

0 commit comments

Comments
 (0)