CVE-2026-55369
published medium CVSS 3.1 · 6.5Waline login accepts a non-string email as a match-all MongoDB query
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| walinejs | — | waline<= 1.40.3 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| walinejs | waline | <= 1.40.3 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-287 CWE-287: Improper Authentication
- CWE-943 CWE-943: Improper Neutralization of Special Elements in Data Query Logic
References
3Provider assertions
2GitHub_M · cna
Waline login accepts a non-string email as a match-all MongoDB query
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7eed568b8bf6e5463ecee0451369472ec9678b347a140dc89c1b6433e34dc85b
- Ingested
- 02 Nov 2026, 20:22:49 UTC
- Source record
- Official CVE record