p PatchFirst

CVE-2026-32730

CVE-2026-32730 · ApostropheCMS MFA/TOTP Bypass via Incorrect MongoDB Query in Bearer Token Middleware

This page contains facts from public vulnerability sources. Check the original advisory before updating.

ApostropheCMS is an open-source content management framework. Prior to version 4.28.0, the bearer token authentication middleware in `@apostrophecms/express/index.js` (lines 386-389) contains an incorrect MongoDB query that allows incomplete login tokens — where the password was verified but TOTP/MFA requirements were NOT — to be used as fully authenticated bearer tokens. This completely bypasses multi-factor authentication for any ApostropheCMS deployment using `@apostrophecms/login-totp` or any custom `afterPasswordVerified` login requirement. Version 4.28.0 fixes the issue.

CVSS 8.1 · High · EPSS 0.4% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • apostrophe

    Versions
    • < 4.28.0: Affected

    No fix published

  • apostrophe npm

    Affected ranges
    • SEMVER: < 4.28.0

    Update to 4.28.0

Original sources

Check your server →