Maintained by Restruct. If this fork saves you time, you can support ongoing maintenance.
This is a fork of silverstripe/silverstripe-framework for sites that still run Silverstripe CMS 5. It adds the medium-severity security fixes that upstream released for CMS 6 only, on top of upstream 5.4.31, and changes nothing else. The package name stays silverstripe/framework.
What to expect from this fork
- Security fixes only. The aim is to backport the fix for every published advisory against this package, at any severity, for as long as CMS 5 is in partial support upstream. This is best effort: there is no guaranteed response time.
- No features, no general bug fixes. Requests to port those will normally be declined. Use CMS 6 for them.
- It may be discontinued at any time. The fork exists mainly to keep our own projects secure until they move to CMS 6. Anyone is welcome to use it as is, under the same license and with no warranty. Help is appreciated: a report of a missed advisory or of a regression in a backport, or a pull request with a backport.
- Not affiliated with or endorsed by Silverstripe. The fixes are upstream's own work, except the mfa fix, which upstream did not publish for CMS 5 and is ours; any mistake in backporting them is ours too. Do not report problems with this fork to Silverstripe.
- Found a new vulnerability? Do not open a public issue. If it is in Silverstripe's code, report it to security@silverstripe.org as upstream asks. If it is in a change this fork made, email dev@restruct.nl.
- The way out is CMS 6. When a site upgrades, remove the fork and feed repositories (and the Packagist exclude) from the project's
composer.json.
For a CMS 5.4 project. Your require section stays as it is: the forks keep the upstream package names.
-
Add this to your project's
composer.json. Keep all five forks even if the project does not use one of them (an unused entry costs nothing), and keep the order: forks first, then the feed, then Packagist."repositories": [ {"type": "vcs", "url": "https://github.com/restruct/silverstripe-framework", "only": ["silverstripe/framework"]}, {"type": "vcs", "url": "https://github.com/restruct/silverstripe-versioned", "only": ["silverstripe/versioned"]}, {"type": "vcs", "url": "https://github.com/restruct/silverstripe-assets", "only": ["silverstripe/assets"]}, {"type": "vcs", "url": "https://github.com/restruct/silverstripe-userforms", "only": ["silverstripe/userforms"]}, {"type": "vcs", "url": "https://github.com/restruct/silverstripe-mfa", "only": ["silverstripe/mfa"]}, {"type": "composer", "url": "https://restruct.github.io/ss5-advisories"}, {"type": "composer", "url": "https://repo.packagist.org", "exclude": ["silverstripe/framework", "silverstripe/versioned", "silverstripe/assets", "silverstripe/userforms", "silverstripe/mfa", "silverstripe/cms"]}, {"packagist.org": false} ]
If the project already has a
repositoriessection, add these entries to it, ahead of any other entry that could provide these packages. -
Remove any
config.policy.advisories.ignore-id(oraudit.ignore) entries for the advisories in the table below, including the mfa one (PKSA-xxk3-rjxm-jftv). The feed handles them per version; an ignore would silence them for every version. -
Update and check:
composer update silverstripe/framework silverstripe/versioned silverstripe/assets silverstripe/userforms silverstripe/mfa silverstripe/cms composer show | grep -E '^silverstripe/(framework|versioned|assets|userforms|mfa|cms) ' composer audit
composer showshould list the-pNversions (5.4.31-p1,2.4.8-p1,2.4.6-p1,6.4.10-p1if the project uses userforms,5.4.4-p1if it uses mfa) and cms from the 5.4 line.composer auditshould not list any of the advisories this fork set handles. Then rundev/build flush=1.
To stop using the forks (for example when moving to CMS 6), remove these repository entries again.
CMS 5.4 is in partial support: upstream fixes only security issues with a CVSS score of 7.0 or higher on it (release policy). The medium-severity fixes of June and October 2026 were released for CMS 6 only, so a fully updated CMS 5 site still carries them. The right fix is to upgrade to CMS 6; this fork is for the time a site cannot do that yet.
The fixes are upstream's own commits, cherry-picked with git cherry-pick -x onto branch 5.4-restruct. Where a commit did not apply as is, the commit message has a "Backport note" saying what was adapted and why. Tests were adapted to PHPUnit 9.6 (CMS 5) in separate commits and no assertion was weakened. The one existing expectation that changed is the one upstream changed with the same fix (framework, CVE-2026-88987: data:text/xml is now removed), and it is in a commit of its own. The exception is mfa CVE-2026-55186: upstream published no fix for CMS 5, so that fix was written for this fork set, with its own regression tests, and is marked as such in the table.
Companion forks, for the other packages with backported fixes: restruct/silverstripe-versioned (silverstripe/versioned), restruct/silverstripe-assets (silverstripe/assets), restruct/silverstripe-userforms (silverstripe/userforms), restruct/silverstripe-mfa (silverstripe/mfa).
All advisories published for these packages in 2026 that affect their latest CMS 5 releases. Every fork lists the full set, so the whole picture is visible from any of them.
| Package | Advisory | Title | Status | Upstream fix |
|---|---|---|---|---|
| framework | SS-2026-004 PKSA-s9ft-gn8c-nz8s |
Password reset token account takeover | Backported since framework 5.4.30-p1 | 06e668db01 |
| framework | CVE-2026-88989 PKSA-byd1-vwr7-j3ng |
Auth bypass GridFieldDetailForm | Backported since framework 5.4.30-p1 | 693c948bae |
| framework | CVE-2026-54720 PKSA-x6tz-s6v3-ynk3 |
XSS attack through media embed | Backported since framework 5.4.30-p1 | 1bcb02adfc |
| framework | CVE-2026-91110 PKSA-mxm6-h6dq-vmtc |
XSS using control bytes | Backported since framework 5.4.30-p1 | dbf965166d |
| framework | CVE-2026-88987 PKSA-3ddc-hhgt-bqh9 |
XSS via XHTML data URI | Backported since framework 5.4.30-p1. As upstream, data:text/xml is now removed as well |
cea9c46eba |
| framework | CVE-2026-88988 PKSA-v91s-x13r-xsps |
XSS via SVG data URI | Backported since framework 5.4.30-p1 | 9b61e6d04d |
| framework | CVE-2026-91112 PKSA-r36n-y55f-yj29 |
CMS_ACCESS_SecurityAdmin privilege escalation | Backported since framework 5.4.30-p1 | bb4d04a498 |
| framework | CVE-2026-91114 PKSA-2w11-jnmw-7vn5 |
Stored XSS via unescaped permission in PermissionCheckboxSetField | Backported since framework 5.4.30-p1 | 3ac8440a3a |
| framework | CVE-2026-91113 PKSA-2h3f-jtk1-8f25 |
User-controlled ClassName allows unauthorized record type change | Backported since framework 5.4.30-p1 | 8b6e9c4514 |
| framework | CVE-2026-91115 PKSA-bqyr-kn4k-vx5h |
RCE via i18nTextCollectorTask writer parameter | Not applicable: the advisory affects framework >=6.0.0 only | - |
| versioned | CVE-2026-55779 PKSA-nksq-cxj8-zb32 |
XSS in archive admin restore | Backported in versioned 2.4.8-p1 | 6e30a2cf8d |
| userforms | CVE-2026-91111 PKSA-vyds-y4jb-5ff4 |
Uploaded XML XSS | Backported in assets 2.4.6-p1: the fix is in silverstripe/assets. Like the upstream fix, userforms 6.4.10-p1 requires the patched assets release (^2.4.6-p1) |
88750f95e8 |
| userforms | CVE-2026-88992 PKSA-w1yx-v3g8-nw8g |
Userforms CSV export restricted file access | Backported in userforms 6.4.10-p1 | 4d752ea8f3 |
| userforms | SS-2026-005 PKSA-r5k2-9jwp-nhhh |
XSS in required field label | Backported in userforms 6.4.10-p1 | bc96ea4af2 |
| mfa | CVE-2026-55186 PKSA-xxk3-rjxm-jftv |
Can bypass MFA during password reset flow | Fixed in mfa 5.4.4-p1. Upstream disclosed it without a fix for CMS 5, so the fix is this fork's own (the same one ships in restruct/silverstripe-mfa-bundle 1.9.1): the change password form refuses a reset until the multi-factor check is completed, for that member | 004ea58cdd |
| cms | CVE-2026-54717 PKSA-pjvm-vnw2-n3m2 |
XSS in breadcrumbs in page list view | Not applicable: in cms 5.4 the list view builds the breadcrumb line with SiteTree::Breadcrumbs(), which escapes titles. Checked by rendering the list view for a parent page titled <img src=x onerror=alert(1)>: the line came out as <img src=x onerror=alert(1)>/. The unescaped loop the upstream fix replaces first appears in cms 6.0 |
62f9912baa |
Already fixed by upstream in a CMS 5 release (update to that release or later; nothing to backport):
- framework 5.4.31; in this fork from 5.4.31-p1: SS-2026-008, Unauthenticated RCE via form submissions (critical)
- framework 5.4.31; in this fork from 5.4.31-p1: SS-2026-009, Login bypass for accounts without a password (critical)
- assets 2.4.5: CVE-2026-24749, DBFile permission bypass
- assets 2.4.6: SS-2026-003, RCE via renamed uploaded file
- userforms 6.4.9: CVE-2026-54721, Remote code execution via userforms email subject
- userforms 6.4.10: CVE-2026-88991, RCE in email subject field via template execution
- userforms 6.4.10: SS-2026-001, Template injection RCE in userforms
- userforms 6.4.10: SS-2026-006, RCE via template string escaping in userforms email subject
The five forks are installed together, with the advisory feed that goes with them (see Quick start above; restruct/ss5-advisories explains each line). The forks are listed first and limited with only to their own package, and Packagist is told not to serve these package names.
Releases are tagged <upstream version>-pN (the latest is 5.4.31-p1). Composer treats that as a stable version above 5.4.31 and below the next upstream release, so existing constraints such as ^5.4 keep matching.
Do not set "canonical": false on the fork repositories. With the forks canonical, a later upstream release on Packagist cannot silently replace the patched build; each upstream release is merged in here and tagged as <version>-p1. A scheduled job on this repository opens an issue when upstream tags a new release on this line.
Packagist records advisories by package name and version range and does not know about this fork, so a patched tag still falls inside the published ranges: composer audit reports the advisories above and Composer refuses to install it. The feed carries the same advisories with the patched tags taken out of the ranges, and nothing else changed, so an advisory that is not backported still blocks and reports. It rebuilds itself from Packagist every day.
Maintained, best effort, while CMS 5 is in partial support upstream, or until upstream releases these fixes for CMS 5, whichever comes first (see "What to expect" above). Report a missed advisory or a regression in a backport in this repository's issues. For everything else about the package itself, see the upstream repository.
Before each tag, the package's own test suite is run on the lowest and highest PHP version CMS 5 supports here (8.1 and 8.3), against an unmodified CMS 5.4 install, and compared with the same run on the upstream release it is based on. Tags are never moved or rewritten: a correction gets the next -pN.
BSD-3-Clause, as upstream. See LICENSE.