CVE-2026-32730 ApostropheCMS MFA/TOTP Bypass via Incorrect MongoDB Query in Bearer Token Middleware
HighCVSS 8.1
EPSS 0.56%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| apostrophecms | < 4.28.0 | 4.28.0 | Fixed |
| npm apostrophe(npm) | < 4.28.0; <= 4.27.1 | 4.28.0 | Fixed |
| apostrophecms apostrophe | = < 4.28.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apostrophecms apostrophe | = < 4.28.0 | No fix listed |
| npm apostrophe(npm) | <= 4.27.1 | No fix listed |
| apostrophecms | < 4.28.0 | 4.28.0 |
| npm apostrophe(npm) | < 4.28.0 | 4.28.0 |
References
- https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-v9xm-ffx2-7h35 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product