CVE-2026-32730 ApostropheCMS MFA/TOTP Bypass via Incorrect MongoDB Query in Bearer Token Middleware
Attackers can bypass multi-factor authentication in ApostropheCMS by exploiting a flawed MongoDB query in bearer token middleware, gaining unauthorized access.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-32730?
CVE-2026-32730 is a high-severity authentication bypass vulnerability in apostrophecms apostrophe, published on 18 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2026-32730?
2 open source packages ship an affected version, including apostrophe. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
apostrophe npm | All versions | 4.28.0 |
apostrophe npm | All versions | 4.28.0 |
Products include Apostrophecms Apostrophecms.
How do I fix CVE-2026-32730?
Upgrade apostrophe to 4.28.0 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2026-32730 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-32730 exists.
Other vulnerabilities in apostrophecms apostrophe
- CVE-2021-25979 Apostrophe - Insufficient Session Expiration
- CVE-2026-35569 ApostropheCMS: Stored XSS in SEO Fields Leads to Authenticated API Data Exposure in ApostropheCMS
- CVE-2026-40186 ApostropheCMS: sanitize-html allowedTags Bypass via Entity-Decoded Text in nonTextTags Elements
- CVE-2026-33889 ApostropheCMS: Stored XSS via CSS Custom Property Injection in `@apostrophecms/color-field` Escaping Style Tag Context
- CVE-2021-25978 Apostrophe - XSS
Sources
Also known as GHSA-v9xm-ffx2-7h35.