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

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-18T19:48:51.000Z
- Modified: 2026-06-17T10:36:17.173Z
- Also known as: GHSA-v9xm-ffx2-7h35
- Weaknesses: CWE-287, CWE-305
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- apostrophecms apostrophe: < 4.28.0
- apostrophe (npm): before 4.28.0
- apostrophecms apostrophecms: before 4.28.0

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/apostrophecms/apostrophe/security/advisories/GHSA-v9xm-ffx2-7h35> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32730> (advisory)
- <https://github.com/apostrophecms/apostrophe> (package)

## Sources

- CVE List: [CVE-2026-32730](https://www.cve.org/CVERecord?id=CVE-2026-32730), CVE Terms of Use, modified 2026-03-19
- GitHub Advisory Database: [GHSA-v9xm-ffx2-7h35](https://github.com/advisories/GHSA-v9xm-ffx2-7h35), CC-BY-4.0, modified 2026-03-19
- NVD: [CVE-2026-32730](https://nvd.nist.gov/vuln/detail/CVE-2026-32730), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-32730 · Whole record: https://cve.day/CVE-2026-32730.json · Rebuilt by cve.day 2026-11-25T22:59:16.148Z
