Technical impact
Waline's login endpoint accepts the email field without type checking, forwarding any value directly into a MongoDB query. When the value is not a string, the MongoDB adapter silently drops the field, resulting in an empty filter that matches every user. The endpoint then verifies the supplied password against the first user returned, which is the first‑registered administrator. This allows an attacker to bypass the email factor, enabling a partial authentication bypass while still requiring the administrator’s password. The flaw does not leak credentials or provide a true zero‑knowledge bypass, but it does eliminate the first factor and enables credential‑stuffing amplification and user enumeration.
Affected Systems
The vulnerability affects Waline comment systems with version numbers below 1.41.1. All deployments running Waline 1.40.x and earlier are susceptible. The issue is present in the login API endpoint /api/token and is relevant to any application using the walinejs:waline backend.
Risk and Exploitability
The CVSS score of 6.5 indicates a medium severity vulnerability. EPSS is not available, so the exploitation probability is unknown, but the vulnerability can be triggered via a standard web request to the login endpoint, making it remotely exploitable. The flaw is not listed in CISA’s KEV catalog. Because the attacker must still know a valid administrator password, full compromise requires credential stuffing or a leaked password. Nonetheless, the ability to remove the email factor makes brute‑forcing or credential‑stuffing significantly more effective.