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

- 種別: advisory
- 重大度: medium
- 関連技術: nodejs, mongodb, vercel
- 公開日時: 2026-10-28T21:17:58.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-jf75-q64q-g65r)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-jf75-q64q-g65r

影響: npm:@waline/vercel <= 1.40.3 → 1.41.0
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 i…