Skip to content
OpenAdvisories
High · 8.1 CVE-2026-32730 EUVD-2026-12975GHSA-v9xm-ffx2-7h35

ApostropheCMS MFA/TOTP Bypass via Incorrect MongoDB Query in Bearer Token Middleware

Published Mar 18, 2026 · Updated Mar 19, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
apostrophecms apostrophe < 4.28.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm apostrophe < 4.28.0 4.28.0 GHSA-v9xm-ffx2-7h35

References