diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/index.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/index.vue index e064d274..4e69d28a 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/index.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/index.vue @@ -93,6 +93,9 @@ export default { const hostname = this.value.spec.template.spec.hostname || ''; + // Display name can contain arbitrary strings. There is no XSS risk because the value is + // rendered via Vue's {{ }} interpolation which auto-escapes HTML; v-html is never used for + // this field. See harvester/harvester#10423 for details. const customizeDisplayName = !!(this.value.metadata?.annotations?.[HCI_ANNOTATIONS.VM_DISPLAY_NAME]); return {