CMSB v4.0.0 Beta (Security Updates & Hardening, Major Rewrite, PHP 8.6 Support)
3 posts by 3 authors in: Forums > CMS Builder
Last Post: Yesterday at 2:09pm (RSS)
By Dave - Monday at 10:40pm
Hi everyone,
We've just released v4.0.0 beta, and we're already running it on our site on PHP 8.6.
This is our biggest release to date, more than twice the size of our last biggest release. Most of the work since 3.84 went into a full security review of the CMS and its libraries: all of the code, by hand and with the latest AI models from OpenAI and Anthropic. Those are the same kind of tools an attacker can now run against any software, so we ran them against ours first. The result is 104 security fixes and hardening changes, and more than 1,000 hours of development and testing over the last six months, with contributions from everyone on our team.
Along with the security work, we modernized a lot of the code base, and automated tests now run on every change we make, against the oldest and newest versions of PHP, MySQL and MariaDB we support. We're also already running it locally on PHP 8.6 (released 11 days ago), and we tested this beta there. A few old features that very few sites use have been removed, such as the hidden dateCalendar field type and the old useSeoUrls viewer option. We're calling this 4.0 because some old features are gone and some functions changed, so sites with custom code should read the upgrade notes first.
Here are some highlights from this release:
- Security review: 104 security changes from a full review of the CMS and its libraries (see below)
- Server Info: a new "Last Patched" line shows when your server's operating system updates were last installed, so you can see whether your web host is keeping the server up to date
- PHP session patch: includes the patch for CVE-2026-115560 from the php2shell issue
- Trusted Hosts: the CMS only accepts the domain names you've set, so the links and emails it builds always use your own domain
- Admin links: a link into the admin from an email or another website asks before it opens, so a link someone sends you can't open admin pages as you without your click
- WYSIWYG protection: HTML that could be unsafe is flagged with the reasons, and a button removes it
- SVG uploads: files that could run scripts are refused, and "check existing" lists the ones already uploaded
- Audit Log: saving General Settings, Security Settings, Branding or Advanced Settings is logged, with each old and new value
- Scheduled tasks: schedules work the same as Linux cron, and one failed task no longer stops the rest
- Languages: the admin can be shown in German and Japanese, and French, Spanish, Portuguese and Hebrew went from 5-20% translated to 98% or more
- Backups: website backups are up to 2x faster
- PHP 8.6: supported and tested, along with PHP 8.1 through 8.5
- Modernized code: a cleanup of the whole code base, with major updates to our ZenDB, SmartArray and SmartString libraries. We removed a few old features that very few sites use, which leaves less old code to maintain and secure.
About the security fixes: This release fixes SQL injection, code execution, cross-site scripting, file upload and access-check issues. Most of them needed a CMS login, or a logged-in user to open a link. On a default install, the most serious kinds (SQL injection and code execution) needed an editor or admin account, or an editor or admin to open a link sent to them. We recommend every site upgrade once the final version is out. The Security section of the changelog and the upgrade notes list the changes you'll see or may need to act on.
Before you upgrade: Most sites upgrade with no errors. If you have custom code, your own plugins, or a site on more than one domain, read the v4.0.0 section of the upgrade notes first. It lists what to check on your site and how to find it:
https://github.com/interactivetools-com/cms-builder/blob/main/UPGRADING.md
The full changelog is on GitHub:
https://github.com/interactivetools-com/cms-builder/blob/main/CHANGELOG.md
We're keeping this beta shorter than usual, so we can get these fixes out to everyone as soon as possible. If you're able to help test and help us catch any issues, we'd really appreciate it. We're happy to provide free support for anyone testing the beta, to get your upgrade working or for any fixes needed, until the final release.
You can download the latest beta here: https://www.interactivetools.com/download/
Please post (or email) any feedback, questions, concerns, or bugs you find.
Thanks!
interactivetools.com
Wow that's a big update, nice work! Suspect I'll have a few breakages to deal with when testing it later.
I had Claude Code install the Beta on a couple of development sites so all of my integrations can be accounted for. Claude reported some bugs found:
# CMS Builder 4.0.0 beta1 (build 3148): bugs found by Sagentic
Found while testing on cmsbuild.dev and sagentic.dev (PHP 8.3.37, MariaDB 10.11, `open_basedir` on, DirectAdmin).
Each entry has what to report to interactivetools.com and our workaround, if any.
## 1. Developer Log page prints an open_basedir warning for logged files outside the site
- **Where:** `lib/menus/_error_log/actionHandler.php` lines 242 and 315: `realpath($record['filepath'])`.
- **Steps:** a Developer Log record whose `filepath` is outside `open_basedir` (ours: a server-side worker at
`/usr/local/lib/...` that loads the site's CMS library from the command line). Open Admin → Developer Log.
- **Result:** `Warning: realpath(): open_basedir restriction in effect. File(/usr/local/lib/...) is not within the allowed path(s)` printed at the top of the list.
- **Expected:** no warning; fall back to the stored path (the `?: $record['filepath']` fallback is already there, the warning just isn't suppressed).
- **Suggested fix:** `@realpath(...)`, or check the path against `open_basedir` first.
- **Our workaround:** none needed; cosmetic.
## 2. `$GLOBALS['PLUGIN_ACTION_MENU_LINKS']` removed without an UPGRADING note
- **Where:** `lib/plugin_functions.php` `pluginAction_addLink()` (~line 543). 3.84 collected Plugins-menu links in
`$GLOBALS['PLUGIN_ACTION_MENU_LINKS']`; 4.0 prints them through `Plugin::on('plugin_actions', ...)` and the markup
changed to `<a href='?...' data-method='post'>`.
- **Result:** a plugin that lists other plugins' action links (ours: a plugin manager dashboard) silently shows none.
- **Expected:** a line in UPGRADING.md's "Custom code that calls internal CMS functions", or keep the global.
- **Our workaround:** capture `Plugin::action('plugin_actions', $pluginPath)` output (works on 3.84 and 4.0).
## Notes (not bugs)
- A non-browser request that hits the link-check page gets 403 "Forbidden: this link only opens from the page a
browser shows here" (curl, ajax without the token). By design; worth a sentence in UPGRADING for ajax authors.
## 3. Empty string in an encrypted column logs "cannot decrypt" (new in 4.0)
- **Where:** ZenDB 1.2.1 `src/Connection.php` ~1179: only `null` is skipped before decrypting.
- **Steps:** a record whose encrypted (MEDIUMBLOB) field holds `''` (written by raw SQL, an import, or older code).
Load any page that reads the record.
- **Result:** Developer Log: `Warning: ZenDB: cannot decrypt MEDIUMBLOB column `acronym`, returning raw bytes. Wrong
encryptionKey, or the column holds unencrypted data.` 3.84 was silent.
- **Expected:** treat `''` like `null` (empty), as the check for null already does. The message also points the
admin at a wrong encryption key, which sends them looking in the wrong place.
- **Our workaround:** set such cells to NULL (sagentic.dev cms_domains #566, 14 cells, 2026-12-01).
Kenny H