File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 49
49
"serve-handler" : " ^6.1.6" ,
50
50
"tailwind-merge" : " ^2.5.3" ,
51
51
"tailwindcss-animate" : " ^1.0.7" ,
52
- "zod" : " ^3.25.76"
52
+ "zod" : " ^3.25.76" ,
53
+ "strict-url-sanitise" : " ^0.0.1"
53
54
},
54
55
"devDependencies" : {
55
56
"@eslint/js" : " ^9.11.1" ,
Original file line number Diff line number Diff line change 8
8
OAuthMetadata ,
9
9
} from "@modelcontextprotocol/sdk/shared/auth.js" ;
10
10
import { SESSION_KEYS , getServerSpecificKey } from "./constants" ;
11
+ import { sanitizeUrl } from 'strict-url-sanitise' ;
11
12
12
13
export const getClientInformationFromSessionStorage = async ( {
13
14
serverUrl,
@@ -129,7 +130,7 @@ export class InspectorOAuthClientProvider implements OAuthClientProvider {
129
130
}
130
131
131
132
redirectToAuthorization ( authorizationUrl : URL ) {
132
- window . location . href = authorizationUrl . href ;
133
+ window . location . href = sanitizeUrl ( authorizationUrl . href ) ;
133
134
}
134
135
135
136
saveCodeVerifier ( codeVerifier : string ) {
You can’t perform that action at this time.
0 commit comments