CVE-2026-55369

Waline login accepts a non-string email as a match-all MongoDB query

Published Oct 28, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
Waline is a comment system with backend support. Prior to version 1.41.1, the login endpoint POST /api/token reads the email field from the request body without checking its type and passes it straight into the MongoDB storage query. When email is not a string (for example a JSON object such as {"$ne": null}), the MongoDB storage adapter's parseWhere silently DROPS the field rather than rejecting the request, producing an empty filter that matches ALL users. The endpoint then verifies the submitted password against the FIRST user returned (user[0]), which in Waline is the first-registered user — the site administrator. This is a PARTIAL authentication bypass, not a full one. The attacker still needs a valid password for that first user; this is not a zero-knowledge bypass and it does not disclose passwords. Its concrete effects are: (1) the email/identifier factor is removed for the administrator account, (2) user enumeration (a non-string email never fails the "no such user" branch), and (3) credential-stuffing amplification — an attacker can test a leaked or weak password against the administrator account without knowing the administrator's email. This issue has been patched in version 1.41.1.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Waline to version 1.41.1 or later, which validates the email field before constructing the MongoDB query.
  • Implement server‑side input validation on the /api/token endpoint to reject non‑string values for email.
  • Monitor authentication logs for unusual login attempts using non‑string email values and apply rate‑limiting or account lockout to mitigate credential‑stuffing amplification.
  • Configure the MongoDB adapter to reject empty or malformed filters rather than silently dropping them.

Generated by OpenCVE AI on October 28, 2026 at 15:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Waline
Waline waline
Vendors & Products Waline
Waline waline
Type Values Removed Values Added
Description Waline is a comment system with backend support. Prior to version 1.41.1, the login endpoint POST /api/token reads the email field from the request body without checking its type and passes it straight into the MongoDB storage query. When email is not a string (for example a JSON object such as {"$ne": null}), the MongoDB storage adapter's parseWhere silently DROPS the field rather than rejecting the request, producing an empty filter that matches ALL users. The endpoint then verifies the submitted password against the FIRST user returned (user[0]), which in Waline is the first-registered user — the site administrator. This is a PARTIAL authentication bypass, not a full one. The attacker still needs a valid password for that first user; this is not a zero-knowledge bypass and it does not disclose passwords. Its concrete effects are: (1) the email/identifier factor is removed for the administrator account, (2) user enumeration (a non-string email never fails the "no such user" branch), and (3) credential-stuffing amplification — an attacker can test a leaked or weak password against the administrator account without knowing the administrator's email. This issue has been patched in version 1.41.1.
Title Waline login accepts a non-string email as a match-all MongoDB query
Weaknesses CWE-287
CWE-943
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

Weaknesses
  • CWE-287

    Improper Authentication

  • CWE-943

    Improper Neutralization of Special Elements in Data Query Logic

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 2, 2026, 8:14 PM
Reserved
Jun 16, 2026, 6:57 PM
Status
Deferred
Published
Oct 28, 2026, 1:17 PM
Modified
Nov 2, 2026, 9:17 PM