---
title: "craftcms/cms: functions and files changed by CVE fixes"
url: https://radicalnotion.ai/fixes/craftcms/cms
type: fixes-repository
description: "103 CVE fixes in craftcms/cms changed 386 functions across 136 files."
updated: 2026-08-11
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# craftcms/cms: patched functions

- **CVEs with a located fix:** 103
- **Functions patched:** 386
- **Files patched:** 136
- **Diff hunks:** 1,143
- **Languages:** php, javascript, template, typescript
- **Rank by CVE fixes:** 40 of 12,140
- **First fix:** 2017-04-22
- **Latest fix:** 2026-08-11
- **Repository:** [https://github.com/craftcms/cms](https://github.com/craftcms/cms)

## Typical fix size

- Median lines changed per fix: 8
- Fixes touching a single function: 48%
- Fixes under 20 changed lines: 70%

## Most-patched functions

| Function | File | CVEs | Patches | Last fixed |
| --- | --- | --- | --- | --- |
| [checkArrowFunction](https://radicalnotion.ai/fixes/craftcms/cms/checkArrowFunction) | src/web/twig/Extension.php | 4 | 6 | 2026-03-04 |
| [handleUpload](https://radicalnotion.ai/fixes/craftcms/cms/handleUpload) | src/gql/resolvers/mutations/Asset.php | 5 | 5 | 2026-04-21 |
| [createTwig](https://radicalnotion.ai/fixes/craftcms/cms/createTwig) | src/web/View.php | 3 | 4 | 2026-03-04 |
| [actionReplaceFile](https://radicalnotion.ai/fixes/craftcms/cms/actionReplaceFile) | src/controllers/AssetsController.php | 4 | 3 | 2026-07-02 |
| [actionResourceJs](https://radicalnotion.ai/fixes/craftcms/cms/actionResourceJs) | src/controllers/AppController.php | 3 | 3 | 2026-07-01 |
| [groupFilter](https://radicalnotion.ai/fixes/craftcms/cms/groupFilter) | src/web/twig/Extension.php | 3 | 3 | 2026-03-04 |
| [validateHostname](https://radicalnotion.ai/fixes/craftcms/cms/validateHostname) | src/gql/resolvers/mutations/Asset.php | 3 | 3 | 2026-02-24 |
| [prepElementQueryForTableAttribute](https://radicalnotion.ai/fixes/craftcms/cms/prepElementQueryForTableAttribute) | src/elements/Entry.php | 2 | 3 | 2026-08-11 |
| [isFolderIndex](https://radicalnotion.ai/fixes/craftcms/cms/isFolderIndex) | src/elements/Asset.php | 2 | 3 | 2026-08-11 |
| [prepareEditScreen](https://radicalnotion.ai/fixes/craftcms/cms/prepareEditScreen) | src/base/ElementInterface.php | 2 | 3 | 2026-08-11 |
| [getSite](https://radicalnotion.ai/fixes/craftcms/cms/getSite) | src/base/ElementInterface.php | 2 | 3 | 2026-08-11 |
| [gqlTypeNameByContext](https://radicalnotion.ai/fixes/craftcms/cms/gqlTypeNameByContext) | src/elements/MatrixBlock.php | 2 | 3 | 2026-08-11 |
| [getRoute](https://radicalnotion.ai/fixes/craftcms/cms/getRoute) | src/base/ElementInterface.php | 2 | 3 | 2026-08-11 |
| [getFieldLayout](https://radicalnotion.ai/fixes/craftcms/cms/getFieldLayout) | src/base/ElementInterface.php | 2 | 3 | 2026-08-11 |
| [setEnabledForSite](https://radicalnotion.ai/fixes/craftcms/cms/setEnabledForSite) | src/base/ElementInterface.php | 2 | 3 | 2026-08-11 |

## Most-patched files

| File | CVEs | Functions |
| --- | --- | --- |
| src/controllers/AssetsController.php | 12 | 6 |
| src/gql/resolvers/mutations/Asset.php | 8 | 5 |
| src/elements/Asset.php | 7 | 28 |
| src/web/twig/Extension.php | 7 | 11 |
| src/helpers/Cp.php | 6 | 10 |
| src/controllers/ElementsController.php | 6 | 9 |
| src/controllers/ElementIndexesController.php | 6 | 5 |
| src/elements/User.php | 5 | 17 |
| src/elements/Entry.php | 5 | 12 |
| src/base/Element.php | 5 | 8 |

## Latest CVE fixes

| CVE | Title | Severity | CVSS | CISA KEV | Functions changed | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-72785 | Craft CMS before 5.10.6 Authorization Bypass via structures/move-element | critical | 9.3 | No | defineSources | 2026-08-11 |
| CVE-2026-72783 | Craft CMS 5.0.0-RC1 before 5.10.6 Path Traversal via ensurePathIsContained | medium | 6.9 | No | prefixPath | 2026-08-11 |
| CVE-2026-72781 | Craft CMS 5.0.0-RC1 before 5.10.7 Remote Code Execution via Twig Sandbox Escape | high | 8.7 | No | AllowableInSandbox, methodAllowedInSandbox, isFolderIndex | 2026-08-11 |
| CVE-2026-72779 | Craft CMS 5.0.0-RC1 before 5.10.6 Arbitrary File Read via SplFileObject | high | 8.7 | No | createFunction | 2026-08-11 |
| CVE-2026-72778 | Craft CMS 5.0.0-RC1 before 5.10.6 Authenticated RCE via condition.config | high | 8.7 | No | createCondition, createConditionRule | 2026-08-11 |
| CVE-2026-14794 | Craft CMS Charts Endpoint ChartsController.php actionGetNewUsersData improper authorization | medium | 5.3 | No | actionGetNewUsersData | 2026-07-06 |
| CVE-2026-14793 | Craft CMS reorder-sets Endpoint GlobalsController.php actionReorderSets authorization | medium | 5.3 | No | actionReorderSets | 2026-07-06 |
| CVE-2026-50282 | Craft CMS: Unauthorized Deletion of Destination Folders During Forced Moves | high | 7.1 | No | actionMoveFolder, actionReplaceFile, \_assembleSourceInfoForFolder | 2026-07-02 |
| CVE-2026-50281 | Craft CMS: Mass assignment via id in newAttributes during bulk duplicate overwrites existing elements | high | 7.1 | No | actionReplaceFile | 2026-07-02 |
| CVE-2026-50280 | Craft CMS: Authorization bypass in \`entries/move-to-section\` via missing target-section save check | medium | 6.0 | No | actionMoveToSection, actionMoveToSectionModalData | 2026-07-01 |
| CVE-2026-50279 | Craft CMS: Authorship spoofing in \`entries/save-entry\` via pre-check/post-mutation authorization gap | high | 7.6 | No | actionSaveEntry | 2026-07-01 |
| CVE-2026-55794 | Craft CMS: Potential authenticated Remote Code Execution via referrer redirect | high | 8.7 | No | actionEdit, getAltActions, getPostedRedirectUrl | 2026-07-01 |

## Frequently asked questions

### How many CVEs have a located fix in craftcms/cms?

103 published CVEs have a fix traced to functions in craftcms/cms, touching 386 functions across 136 files.

### Which function in craftcms/cms has been patched most often?

checkArrowFunction in src/web/twig/Extension.php has been changed by 6 distinct patches, fixing 4 CVEs, from 2025 to 2026.

### How large is a typical CVE fix in craftcms/cms?

The median fix changes 8 lines. 70% of fixes change 20 lines or fewer, and 48% change a single function.

### How is a fix located to a function?

The upstream fix commit for each CVE is fetched and its diff is split into hunks. Each hunk is attributed to the function, method or type it changes, using the definition the diff itself names. Backports of the same fix to stable branches are counted once.

## Similar repositories

- [mantisbt/mantisbt](https://radicalnotion.ai/fixes/mantisbt/mantisbt) (103 CVEs)
- [radareorg/radare2](https://radicalnotion.ai/fixes/radareorg/radare2) (103 CVEs)
- [chamilo/chamilo-lms](https://radicalnotion.ai/fixes/chamilo/chamilo-lms) (104 CVEs)
- [InternationalColorConsortium/iccDEV](https://radicalnotion.ai/fixes/internationalcolorconsortium/iccdev) (104 CVEs)
- [openssl/openssl](https://radicalnotion.ai/fixes/openssl/openssl) (109 CVEs)
- [python-pillow/Pillow](https://radicalnotion.ai/fixes/python-pillow/pillow) (109 CVEs)
- [Dolibarr/dolibarr](https://radicalnotion.ai/fixes/dolibarr/dolibarr) (96 CVEs)
- [symfony/symfony](https://radicalnotion.ai/fixes/symfony/symfony) (96 CVEs)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/fixes/craftcms/cms). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
