The issue exists due to mishandled output encoding during the overwrite of an HTML element, which can lead to Cross-Site Scripting. If encoded HTML input is passed into the `shave` package, the output will be decoded, potentially resulting in Cross-Site Scripting.