The vulnerability exposes a structural failure in Wicket's component composition model: parent AjaxEditableChoice* components delegate label rendering to child markup components without propagating the escaping contract, creating an invisible security gap that escapeModelStrings cannot close.
When AjaxEditableChoiceLabel renders its display value, it does so by writing into a child Label component's markup, not by returning its own output. The escapeModelStrings property you set on the parent has no effect because the parent never reads that property — the child does, and the parent never passes the value across. This is a cascade failure in Wicket's configuration propagation, not merely a forgotten htmlEscape() call.
The same IChoiceRenderer is correctly escaped when rendered as a dropdown option but not when rendered as the label — the developer who implemented the dropdown path understood escaping requirements while the label path's author worked in a context where the composition architecture obscured the security requirement. Meanwhile, the defaultNullLabel() override vector affects any subclass that made the natural-seeming decision to customize the empty-state display with something like 'Select a category' rather than a hardcoded constant. That override represents the most natural possible customization, the kind override a reasonable developer makes when they want their empty-state to say something more helpful than blank — and it creates an XSS vector.
The fix propagates escapeModelStrings from the parent to the child label, addressing the immediate symptom. But the underlying question is whether other Wicket component compositions have the same invisible escaping gap. If parent-to-child configuration propagation fails here, where else does it fail silently? Audit any component that writes parent model values into child markup for similar escaping gaps.