The better-auth package had a reflected cross-site scripting (XSS) vulnerability in its /api/auth/error page. The vulnerability was due to the error URL parameter being reflected as HTML without proper sanitization. This allowed attackers to execute arbitrary JavaScript in the context of the user's browser by tricking them into visiting a crafted URL. The issue affects versions from 0.0.2 up to but not including 1.1.16. A fix is available in version 1.1.16.