The vulnerability stems from missing homoglyph validation in username handling. The patch introduces: 1) A new USERNAME_PATTERN regex restricting to Latin/Common characters 2) A new UsernameIDNHomographValidator 3) Integration of this validator in the user profile provider. The vulnerable functions are the pre-patch username validation mechanisms that lacked these protections, particularly in Validation.java (which had no username pattern check) and AbstractUserProfileProvider.java (which lacked the homograph validator in its validation chain). The test case added in AccountFormServiceTest.java demonstrates how homoglyph usernames like 'bоb' (with Cyrillic 'о') were previously accepted.