Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. apostrophe
  4. ›
  5. CVE-2026-32730

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

March 18, 2026 (updated March 19, 2026)

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.

References

  • github.com/advisories/GHSA-v9xm-ffx2-7h35
  • github.com/apostrophecms/apostrophe
  • github.com/apostrophecms/apostrophe/security/advisories/GHSA-v9xm-ffx2-7h35
  • nvd.nist.gov/vuln/detail/CVE-2026-32730

Code Behaviors & Features

Detect and mitigate CVE-2026-32730 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.28.0

Fixed versions

  • 4.28.0

Solution

Upgrade to version 4.28.0 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication
  • CWE-305: Authentication Bypass by Primary Weakness

Source file

npm/apostrophe/CVE-2026-32730.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:14 +0000.