File tree Expand file tree Collapse file tree 4 files changed +25
-1
lines changed
Expand file tree Collapse file tree 4 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "asyncapi" : " 2.0.0" ,
3+ "info" : {
4+ "title" : " asyncapijson" ,
5+ "version" : " 1.0.1" ,
6+ "description" : " some description"
7+ },
8+ "servers" : {
9+ "server1" : {
10+ "url" : " https://server1.com/" ,
11+ "protocol" : " https" ,
12+ "protocolVersion" : " 1"
13+ },
14+ "server2" : {
15+ "url" : " https://server2.com" ,
16+ "protocol" : " https" ,
17+ "protocolVersion" : " 1" ,
18+ "description" :" XSS_IS_HERE<img src=x onerror=alert(document.domain)>"
19+ }
20+ },
21+ "channels" : {}
22+ }
Original file line number Diff line number Diff line change 1010 "no-endpoints/no-endpoints.raml" : " RAML 1.0" ,
1111 "google-drive-api/google-drive-api.raml" : " RAML 1.0" ,
1212 "async-api/async-api.yaml" : " ASYNC 2.0" ,
13+ "W-10881270/W-10881270.json" : " ASYNC 2.0" ,
1314 "exchange-experience-api/exchange-experience-api.raml" : " RAML 0.8" ,
1415 "multiple-servers/multiple-servers.yaml" : { "type" : " OAS 3.0" , "mime" : " application/yaml" },
1516 "APIC-641/APIC-641.yaml" : { "type" : " OAS 3.0" , "mime" : " application/yaml" },
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class ApiDemo extends ApiDemoPage {
2626 [ 'multiple-servers' , 'Multiple servers' ] ,
2727 [ 'async-api' , 'AsyncAPI' ] ,
2828 [ 'APIC-641' , 'APIC-641' ] ,
29+ [ 'W-10881270' , 'W-10881270' ] ,
2930 ] . map (
3031 ( [ file , label ] ) => html `
3132 < anypoint-item data-src ="${ file } -compact.json "> ${ label } </ anypoint-item >
Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ export class ApiSummary extends AmfHelperMixin(LitElement) {
412412 const description = this . _computeDescription ( server ) ;
413413 return html `< li >
414414 ${ uri }
415- < arc-marked .markdown =${ description } class ="server-description"> </ arc-marked >
415+ < arc-marked .markdown =${ description } class ="server-description" sanitize > </ arc-marked >
416416 </ li > ` ;
417417 }
418418
You can’t perform that action at this time.
0 commit comments