baserCMS: Public Web API mail-form submission bypasses image CAPTCHA
What fixes it
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
baserCMS is a website development framework. In versions 5.0.0 before 5.3.2 and 5.4.0 before 5.4.2, the public POST /baser/api/bc-mail/mail_messages/add/{mailContentId}.json endpoint accepts submissions without enforcing the form's auth_captcha setting. BcMail\Controller\Api\MailMessagesController::add() and MailMessagesService::create() omit the BcCaptchaService::check() verification of captcha_id and auth_captcha performed by MailController::submit() in the web UI. An unauthenticated attacker who can reach the API can therefore automate submissions without solving the enabled image challenge. The API disables FormProtection and has no rate limit; submissions can generate administrator-inbox spam, send attacker-influenced auto-replies to third parties when an email field is present, and accumulate mail_messages database records when save_info is enabled. The API already enforces the isAccepting() check added for CVE-2026-30878; the missing CAPTCHA check is a separate control failure. This issue has been patched in versions 5.3.2 and 5.4.2.
Text from CVE List
Affected versions 3
- basercmsaffected: >= 5.0.0, < 5.3.2CVE List
- basercmsaffected: >= 5.4.0, < 5.4.2CVE List
- baserCMS, other>= 5.0.0, <= 5.4.1GitHub
References 4
- github.com/baserproject/basercms/commit/3444154ca40f308ade8991e54459248f866dcf61Fixvia CVE List
- github.com/baserproject/basercms/releases/tag/5.3.2Fixvia CVE List
- github.com/baserproject/basercms/releases/tag/5.4.2Fixvia CVE List
- github.com/baserproject/basercms/security/advisories/GHSA-cpxq-6gjp-m59gAdvisoryvia CVE List