Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @waline/vercel
  4. ›
  5. GHSA-jf75-q64q-g65r

GHSA-jf75-q64q-g65r: Waline login accepts a non-string email as a match-all MongoDB query

October 28, 2026

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.

References

  • github.com/advisories/GHSA-jf75-q64q-g65r
  • github.com/walinejs/waline/commit/e611aed4e571c2a86103f5cee48791ca6b460360
  • github.com/walinejs/waline/pull/3646
  • github.com/walinejs/waline/security/advisories/GHSA-jf75-q64q-g65r

Code Behaviors & Features

Detect and mitigate GHSA-jf75-q64q-g65r with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.41.0

Fixed versions

  • 1.41.0

Solution

Upgrade to version 1.41.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication
  • CWE-943: Improper Neutralization of Special Elements in Data Query Logic

Source file

npm/@waline/vercel/GHSA-jf75-q64q-g65r.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 29 Oct 2026 00:16:07 +0000.