canDelete
src/elements/User.php
Last patched
Overview
canDelete in src/elements/User.php (craftcms/cms) was changed by 2 published CVE fixes in 2026, in 2 distinct patches that added or removed 4 lines in total.
craftcms/cms has 103 CVEs with a located fix in total, so 2% of them touched this function.
CVEs that patched it
Every published CVE whose fix changed canDelete, newest first, with the lines each fix touched.
CVE-2026-72781 · line 1454 · +1 −0
High · CVSS 8.7EPSS 0.8%2026-08-11CVE-2026-28782 · lines 1438–1439 · +2 −1
Medium · CVSS 5.7EPSS 0.3%2026-03-04
Get an alert when the next CVE fix lands in craftcms/cms, with the patched functions.
Monitor these CVEsOther functions in these files
Functions in the same file that CVE fixes also changed.
- 1findIdentityByAccessTokensrc/elements/User.php3 patches · 2 CVEs2026
- 2setNamesrc/elements/User.php2 patches · 1 CVE2026
- 3getFieldLayoutsrc/elements/User.php2 patches · 1 CVE2026
- 4getFullNamesrc/elements/User.php2 patches · 1 CVE2026
- 5getRefsrc/elements/User.php2 patches · 1 CVE2026
- 6isInGroupsrc/elements/User.php2 patches · 1 CVE2026
- 7setEagerLoadedElementssrc/elements/User.php2 patches · 1 CVE2026
- 8setGroupssrc/elements/User.php2 patches · 1 CVE2026
Other hotspots in the repository
Functions in craftcms/cms changed by the most distinct patches.
Frequently asked questions
Common questions about CVE fixes to canDelete.
- How many CVEs have patched canDelete?
- 2 published CVEs changed canDelete in craftcms/cms, in 2 distinct patches totalling 4 changed lines, between 2026 and 2026.
- What is the latest CVE that changed canDelete?
- CVE-2026-72781 (Craft CMS 5.0.0-RC1 before 5.10.7 Remote Code Execution via Twig Sandbox Escape), published 2026-08-11, changed lines 1454 of src/elements/User.php.
- How does canDelete compare to the rest of craftcms/cms?
- craftcms/cms has 103 CVEs with a located fix in total; 2 of them changed canDelete.
- What do the line numbers refer to?
- Line numbers are in the fixed version of the file, as the upstream patch left it. A CVE whose fix was backported to several branches is listed once, with the lines from the upstream commit.
References
- src/elements/User.php on GitHub (opens in a new tab)
- All patched functions in craftcms/cms
- Patched functions directory
Fix locations are computed by RadicalNotion.AI from the upstream patch diff of each CVE. CVE data is sourced from the CVE Program.
Track craftcms/cms CVEs
Get an alert when a new CVE lands in this repository, with the patched functions and AI-written remediation guidance.