craftcms/cms
Functions and files changed by CVE fixes in this repository.
Latest located fix
Overview
103 published CVEs have a fix traced to functions in craftcms/cms, the earliest published in 2017. Those fixes changed 388 distinct functions across 136 files, in 1,124 patch hunks.
Among the 11,752 repositories tracked here, craftcms/cms ranks #37 by the number of CVEs with a located fix.
Most patched functions
Functions in craftcms/cms changed by the most distinct patches.
- 1handleUploadsrc/gql/resolvers/mutations/Asset.php5 patches · 5 CVEs2026
- 2checkArrowFunctionsrc/web/twig/Extension.php4 patches · 4 CVEs2025 to 2026
- 3actionReplaceFilesrc/controllers/AssetsController.php3 patches · 4 CVEs2026
- 4validateHostnamesrc/gql/resolvers/mutations/Asset.php3 patches · 3 CVEs2026
- 5isFolderIndexsrc/elements/Asset.php3 patches · 2 CVEs2026
- 6prepElementQueryForTableAttributesrc/elements/Entry.php3 patches · 2 CVEs2026
- 7findIdentityByAccessTokensrc/elements/User.php3 patches · 2 CVEs2026
- 8getRoutesrc/base/ElementInterface.php3 patches · 2 CVEs2026
- 9getSitesrc/base/ElementInterface.php3 patches · 2 CVEs2026
- 10prepareEditScreensrc/base/ElementInterface.php3 patches · 2 CVEs2026
- 11getFieldLayoutsrc/base/ElementInterface.php3 patches · 2 CVEs2026
- 12setEnabledForSitesrc/base/ElementInterface.php3 patches · 2 CVEs2026
- 13checkMethodAllowedsrc/web/twig/SecurityPolicy.php3 patches · 2 CVEs2026
- 14gqlTypeNameByContextsrc/elements/MatrixBlock.php3 patches · 2 CVEs2026
- 15checkPropertyAllowedsrc/web/twig/SecurityPolicy.php3 patches · 2 CVEs2026
Most patched files
Files in craftcms/cms changed by the most CVE fixes.
- 1src/controllers/AssetsController.php12 CVEs · 6 functions
- 2src/gql/resolvers/mutations/Asset.php8 CVEs · 5 functions
- 3src/elements/Asset.php7 CVEs · 28 functions
- 4src/web/twig/Extension.php7 CVEs · 11 functions
- 5src/helpers/Cp.php6 CVEs · 10 functions
- 6src/controllers/ElementsController.php6 CVEs · 9 functions
- 7src/controllers/ElementIndexesController.php6 CVEs · 5 functions
- 8src/elements/User.php5 CVEs · 17 functions
- 9src/elements/Entry.php5 CVEs · 12 functions
- 10src/base/Element.php5 CVEs · 9 functions
Fix size
How much code a CVE fix in craftcms/cms changes, with backports counted once.
Latest CVEs
The most recently published CVEs with a fix located in craftcms/cms, and the functions each fix changed.
- Critical · CVSS 9.3EPSS 0.3%2026-08-11
- Medium · CVSS 6.9EPSS 0.2%2026-08-11
- High · CVSS 8.7EPSS 0.8%2026-08-11
- High · CVSS 8.7EPSS 0.4%2026-08-11
- High · CVSS 8.7EPSS 0.8%2026-08-11
- CVE-2026-14794actionGetNewUsersDataMedium · CVSS 5.3EPSS 0.4%2026-07-06
- CVE-2026-14793actionReorderSetsMedium · CVSS 5.3EPSS 0.4%2026-07-06
- High · CVSS 7.1EPSS 0.4%2026-07-02
- CVE-2026-50281actionReplaceFileHigh · CVSS 7.1EPSS 0.4%2026-07-02
- Medium · CVSS 6.0EPSS 0.4%2026-07-01
- Craft CMS: Authorship spoofing in `entries/save-entry` via pre-check/post-mutation authorization gapCVE-2026-50279actionSaveEntryHigh · CVSS 7.6EPSS 0.4%2026-07-01
- High · CVSS 8.7EPSS 0.4%2026-07-01
Get an alert for each new craftcms/cms CVE, with the patched functions and AI-written analysis.
Monitor these CVEsOther repositories
Repositories with a similar number of located CVE fixes.
Frequently asked questions
Common questions about CVE fixes in craftcms/cms.
- How many CVEs have a located fix in craftcms/cms?
- 103 published CVEs have a fix traced to functions in craftcms/cms, touching 388 functions across 136 files.
- Which function in craftcms/cms has been patched most often?
- handleUpload in src/gql/resolvers/mutations/Asset.php has been changed by 5 distinct patches, fixing 5 CVEs, from 2026 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.
References
- craftcms/cms on GitHub (opens in a new tab)
- Patched functions directory
- CWE directory: the weakness types behind these fixes
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.