The issue arises from insufficient input sanitization in the logging mechanism, leading to improper output neutralization for logs. This allows user-controllable data, such as identifiers or other sensitive information, to be included in log entries without restrictions.