The vulnerability exists in the i18nextify library, specifically in how it handles translations within href and src attributes. The core of the issue lies in the translateProps function in src/localize.js. This function, prior to the patch, would substitute translation placeholders with their corresponding values without any sanitization of the URL schemes. This allowed an attacker who could control the translation values to inject malicious URLs using schemes like javascript: or data:, leading to a DOM-based Cross-Site Scripting (XSS) vulnerability. The patch addresses this by introducing a new function, isDangerousUrl, which checks for and blocks these malicious schemes. The translateProps function was updated to use this check and replace any dangerous URLs with an empty string, effectively neutralizing the threat. The walk function, which is also in src/localize.js and is responsible for traversing the DOM and calling translateProps, was also updated to include an optional sanitization hook, providing a secondary layer of defense.