-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependency craftcms/cms to v4 [SECURITY] #54
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/packagist-craftcms-cms-vulnerability
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c017be7
to
7cb9e2d
Compare
7cb9e2d
to
6dd4542
Compare
6dd4542
to
57e044c
Compare
57e044c
to
19e4707
Compare
19e4707
to
043b593
Compare
043b593
to
f94fb62
Compare
f94fb62
to
d571068
Compare
d571068
to
7d56cf8
Compare
7d56cf8
to
5173f17
Compare
5173f17
to
e268ab7
Compare
e268ab7
to
4dcaf6b
Compare
4dcaf6b
to
8672bb2
Compare
8672bb2
to
bbc28d5
Compare
bbc28d5
to
bc0d236
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.4.0
->^4.7.0
GitHub Vulnerability Alerts
CVE-2022-37250
Craft CMS 4.2.0.1 suffers from Stored Cross Site Scripting (XSS) in
/admin/myaccount
.CVE-2022-37248
Craft CMS 4.2.0.1 is vulnerable to Cross Site Scripting (XSS) via
src/helpers/Cp.php
.CVE-2022-37251
Craft CMS
3.70-RC1
–3.7.55.1
and4.0.0-RC1
–4.2.0.1
are vulnerable to Cross Site Scripting (XSS) via entry revisions and drafts. Versions3.7.55.2
and4.2.1
contain patches for this issue.CVE-2022-37247
Craft CMS 4.2.0.1 is vulnerable to stored a cross-site scripting (XSS) via /admin/settings/fields page.
CVE-2022-37246
Craft CMS 4.2.0.1 is affected by Cross Site Scripting (XSS) in the file src/web/assets/cp/src/js/BaseElementSelectInput.js and in specific on the line
label: elementInfo.label
.CVE-2023-23927
Summary
When you insert a payload inside a label name or instruction of an entry type, an XSS happens in the quick post widget on the
admin dashboard.
PoC
2023-01-30.18-43-49.mp4
Impact
Tested with the free version of Craft CMS 4.3.6.1
CVE-2023-36260
An issue discovered in Craft CMS version 4.6.1.1 allows remote attackers to cause a denial of service (DoS) via crafted string to Feed-Me Name and Feed-Me URL fields due to saving a feed using an Asset element type with no volume selected.
Release Notes
craftcms/cms (craftcms/cms)
v4.7.0
Compare Source
Content Management
Administration
utils/prune-orphaned-matrix-blocks
command. (#14154)Extensibility
craft\base\ElementInterface::beforeDeleteForSite()
.craft\base\ElementInterface::afterDeleteForSite()
.craft\base\FieldInterface::beforeElementDeleteForSite()
.craft\base\FieldInterface::afterElementDeleteForSite()
.System
phpsessions
table, if it exists. (#13589)auto_position
plugin. (#14160)craft\web\CpScreenResponseBehavior::editUrl()
weren’t getting resolved to absolute URLs.v4.6.1
Compare Source
craft\log\MonologTarget
instances are now created viaCraft::createObject()
. (#13341)craft\helpers\Db::prepareValueForDb()
wasn’t converting objects to arrays for JSON columns.0
options within element indexes or condition rules. (#14127, #14143)craft\db\Migration::renameTable()
was renaming the table for the primary database connection, rather than the migration’s connection. (#14131)Craft.FormObserver
wasn’t working reliably for non-<form>
containers.v4.6.0
Compare Source
Content Management
Administration
disabledUtilities
config setting. (#14044)showFirstAndLastNameFields
config setting. (#14097)resave
commands now pass an empty string (''
) to fields’normalizeValue()
methods when--to
is set to:empty:
. (#13951)sections/create
command now supports--name
,--handle
,--type
,--no-versioning
,--uri-format
, and--template
options, and can now be run non-interactively. (#13864)index-assets/one
andindex-assets/all
commands now accept a--delete-empty-folders
option. (#13947)Extensibility
craft\base\conditions\ConditionRuleInterface::getLabelHint()
.craft\helpers\AdminTable::moveToPage()
. (#14051)craft\helpers\App::dbMutexConfig()
.craft\helpers\ElementHelper::searchableAttributes()
.craft\services\Elements::setElementUri()
.craft\services\Elements::EVENT_SET_ELEMENT_URI
. (#13930)craft\services\Search::createDbQuery()
.craft\base\MemoizableArray
now supports passing a normalizer method to the constructor, which will be lazily applied to each array item once, only if returned byall()
orfirstWhere()
. (#14104)craft\elements\actions\DeleteAssets
is no longer deprecated.craft\helpers\ArrayHelper::firstWhere()
now has a$valueKey
argument, which can be passed a variable by reference that should be set to the resulting value’s key in the array.craft\helpers\App::mutexConfig()
.Craft.FormObserver
. (#14114)footerActions
,moveToPageAction
,onCellClicked
,onCellDoubleClicked
,onRowClicked
,onRowDoubleClicked
, andpaginatedReorderAction
settings. (#14051)System
queue/get-job-info
action requests no longer create a mutex lock.mutex
driver is now set toyii\mutex\MysqlMutex
oryii\mutex\PgsqlMutex
by default, once again. (#14102)v4.5.15
Compare Source
craft\helpers\DateTimeHelper::nextYear()
andlastYear()
weren’t returning the correct dates. (#14109)maxCachedCloudImageSize
was set to0
. (#14100)craft\fields\BaseRelationField::normalizeValue()
wasn’t retaining eager-loaded values. (#14117)v4.5.14
Compare Source
relatedToAssets
,relatedToCategories
,relatedToEntries
,relatedToTags
, andrelatedToUsers
are now reserved user field handles. (#14075)craft\services\Security::$sensitiveKeywords
is no longer case-sensitive. (#14064)index-assets/cleanup
command accepted--cache-remote-images
,--create-missing-assets
, and--delete-missing-assets
options, even though they didn’t do anything.craft\web\Request::getIsPreview()
was returningtrue
for requests with expired tokens. (#14066)index-assets/one
command was overly-destructive when run with a subpath and the--delete-missing-assets
option. (#14087)v4.5.13
Compare Source
autocomplete
values when editing an address that belongs to the current user. (#13938)|markdown
and|md
filters now accept anencode
argument, which can be set totrue
to HTML-encode the content before parsing it as Markdown.pre-encoded
Markdown flavor, which can be used when the content has already been HTML-encoded.craft\elements\Address::getBelongsToCurrentUser()
.{% namespace %}
tags weren’t respecting namespaces set to0
. (#13943)SCENARIO_CREATE
, ifAsset::$tempFilePath
wasn’t set. (#14041)v4.5.12
Compare Source
autocomplete
values when editing the current user. (#13941)craft\db\Connection::onAfterTransaction()
.craft\errors\MutexException
. (#13985)craft\fieldlayoutelements\TextField::$inputType
. (#13988)craft\fieldlayoutelements\TextField::$type
.$inputType
should be used instead. (#13988)craft\base\ApplicationTrait::onAfterRequest()
callbacks weren’t necessarily triggered if anEVENT_AFTER_REQUEST
handler got in the way.craft\services\Elements::EVENT_AUTHORIZE_VIEW
event wasn’t always triggered when editing elements. (#13981))autosaveDrafts
config setting was disabled. (#13921)v4.5.11
Compare Source
craft\gql\types\DateTime::$setToSystemTimeZone
.craft\gql\types\DateTime
now supports JSON-encoded objects withdate
,time
, andtimezone
keys.craft\web\Response::setCacheHeaders()
now includes thepublic
directive in theCache-Control
header. (#13922)localized
GraphQL field wasn’t returning any results for drafts or revisions. (#13924)v4.5.10
Compare Source
db/drop-table-prefix
command.owner
address query param.title
attribute. (#13876)--column-inserts
topg_dump
.craft\web\AssetManager::$cacheSourcePaths
.sortOrder
values were the same. (#13896)v4.5.9
Compare Source
storage/
folder existed.v4.5.8
Compare Source
focalPoint
argument to asset save mutations. (#13846)up
command now accepts a--no-backup
option.{% cache %}
tags now store any<meta>
tags registered withyii\web\View::registerMetaTag()
. (#13832)craft\errors\ExitException
.craft\web\View::startMetaTagBuffer()
.craft\web\View::clearMetaTagBuffer()
.craft_modify_app_config()
function. (#13855){% exit %}
tags without a status code weren’t outputting any HTML that had already been output in the template. (#13848)v4.5.7
Compare Source
pgpassword
andpwd
to the list of keywords that Craft will look for when determining whether a value is sensitive and should be redacted from logs, etc.craft\events\DefineCompatibleFieldTypesEvent
.craft\services\Fields::EVENT_DEFINE_COMPATIBLE_FIELD_TYPES
. (#13793)craft\web\assets\inputmask\InputmaskAsset
.craft\web\Request::accepts()
now supports wildcard (e.g.application/*
). (#13759)Craft.ElementEditor
instances are now configured with anelementId
setting, which is kept up-to-date when a provisional draft is created. (#13795)Garnish.isPrimaryClick()
.defaultDirMode
config setting wasn’t being respected when thestorage/runtime/
andstorage/logs/
folders were created. (#13756)transformGifs
andtransformSvgs
config settings weren’t always being respected when using@transform
GraphQL directives. (#13808)require
packages differently than how Composer does it natively, whenconfig.sort-packages
was set totrue
. (#13806)v4.5.6
Compare Source
autosaveDrafts
config setting is disabled. (#12348)resave/addresses
command. (#13720)resave/matrix-blocks
command now supports an--owner-id
option.craft\helpers\App::phpExecutable()
.craft\helpers\Component::cleanseConfig()
.craft\helpers\Component::createComponent()
now filters outas X
andon X
keys from the component config.craft\services\Announcements::push()
now has an$adminsOnly
argument. (#13728)Craft.appendHeadHtml()
andappendBodyHtml()
now load external scripts asynchronously, and return promises.onQueryParams
callback method wasn’t set. (#13677)CRAFT_DOTENV_PATH
environment variable was set, or a console command was executed with the--dotenvPath
option. (#13725)craft\services\Elements::saveElement()
was called with$runValidation
set tofalse
.v4.5.5
Compare Source
maxGraphqlBatchSize
config setting. (#13693)v4.5.4
Compare Source
@stripTags
and@trim
GraphQL directives. (#9971)SK
to the list of keywords that Craft will look for when determining whether a value is sensitive and should be redacted from logs, etc. (#3619)|replace
Twig filter now has aregex
argument, which can be set tofalse
to disable regular expression parsing. (#13642)craft\events\DefineUserGroupsEvent
.craft\services\Users::EVENT_DEFINE_DEFAULT_USER_GROUPS
. (#12283)craft\services\Users::getDefaultUserGroups()
.craft\events\UserAssignGroupEvent
now extendsDefineUserGroupsEvent
, giving it a new$userGroups
property.craft\helpers\DateTimeHelper::toDateTime()
now supportsDateTimeImmutable
values. (#13656)craft\web\Response::setCacheHeaders()
no longer includespublic
in theCache-Control
header when$overwrite
isfalse
. (#13676)craft\events\UserAssignGroupEvent
.DefineUserGroupsEvent
should be used instead.craft\services\Elements::duplicateElement()
now supports passing asiteAttributes
array to the$attributes
argument, for setting site-specific attributes.photo
field.value
key. (#13648)typeId
labels for admin users with “Show field handles in edit forms” enabled. (#13627)transformGifs
andtransformSvgs
config settings weren’t always being respected. (#13624, #13635)fill
transform properties weren’t being passed along bycraft\elements\Asset::getUrlsBySize()
andgetSrcset()
. (#13650)v4.5.3
Compare Source
null
values astrue
.Craft.namespaceId()
wasn’t working properly if the namespace ended in a]
character.|replace
Twig filter wasn’t identifying regular expressions that contained escaped slashes. (#13618)v4.5.2
Compare Source
craft\helpers\UrlHelper::buildQuery()
is no longer deprecated. (#12796)v4.5.1
Compare Source
Garnish.uiLayerManager.addLayer()
now supports abubble
option, which allows non-matching keyboard shortcuts to bubble up to the parent layer.HOME
environment variable was set for PHP. (#13590)craft\fields\Matrix::serializeValue()
was settingfields
keys to a closure. (#13592)v4.5.0
Compare Source
Content Management
Accessibility
<img>
tags generated viacraft\element\Asset::getImg()
no longer use the assets’ titles asalt
fallback values. (#12854)alt
attributes set to the file extension. (#12724)Administration
setup/cloud
command, which prepares a Craft install to be deployed to Craft Cloud.setup/message-tables
command, which can be run to set the project up for database-stored static translations via DbMessageSource. (#13542)entrify/global-set
command now have “Show the Status field” disabled by default. (#12837)defaultCountryCode
config setting. (#13478)active
,addresses
,admin
,email
,friendlyName
,locked
,name
,password
,pending
,suspended
, andusername
are now reserved user field handles. (#13579)Development
_globals
global Twig variable for front-end templates, which can be used to store custom values in a global scope. (#13050, #12951)|replace
Twig filter now supports passing in a hash with regular expression keys. (#12956){% exit %}
tags now support passing a message after the status code. (#13166)null
torelatedToAssets
,relatedToEntries
,relatedToUsers
,relatedToCategories
,relatedToTags
, andrelatedToAll
arguments. (#7954)varchar
for existing fields, and defaults to “Automatic” for new fields. (#13025, #12954)users/login
JSON responses now include information about the logged-in user. (#13374)Extensibility
getDirtyAttributes()
andgetDirtyFields()
methods now return the attribute names and field handles that were modified on the draft for save events. (#12967)defaultFilter
key, which defines the default filter condition that should be applied when the source is selected. (#13499)craft\addresses\SubdivisionRepository
. (#13361)craft\base\Element::showStatusField()
. (#13265)craft\base\Element::thumbSvg()
. (#13262)craft\base\ElementInterface::getIsSlugTranslatable()
.craft\base\ElementInterface::getSlugTranslationDescription()
.craft\base\ElementInterface::getSlugTranslationKey()
.craft\base\ElementInterface::getThumbHtml()
.craft\base\ElementInterface::modifyCustomSource()
.craft\base\ElementInterface::setDirtyFields()
.craft\base\ElementInterface::setFieldValueFromRequest()
. (#12935)craft\base\FieldInterface::normalizeValueFromRequest()
. (#12935)craft\base\FieldLayoutProviderInterface
. (#13250)craft\base\FsInterface::getShowHasUrlSetting()
. (#13224)craft\base\FsInterface::getShowUrlSetting()
. (#13224)craft\base\FsTrait::$showHasUrlSetting
. (#13224)craft\base\FsTrait::$showUrlSetting
. (#13224)craft\behaviors\EventBehavior
. (#13502)craft\controllers\AssetsControllerTrait
.craft\elements\db\ElementQuery::EVENT_BEFORE_POPULATE_ELEMENT
.craft\events\AssetBundleEvent
.craft\events\DefineAddressSubdivisionsEvent
. (#13361)craft\events\MoveElementEvent::$action
. (#13429)craft\events\MoveElementEvent::$targetElementId
. (#13429)craft\events\MoveElementEvent::getTargetElement()
. (#13429)craft\gql\GqlEntityRegistry::getOrCreate()
. (#13354)craft\helpers\Assets::iconSvg()
.craft\helpers\StringHelper::escapeShortcodes()
. (#12935)craft\helpers\StringHelper::unescapeShortcodes()
. (#12935)craft\models\FieldLayout::$provider
. (#13250)craft\services\Addresses::$formatter
, which can be used to override the default address formatter. (#13242, #12615)craft\services\Addresses::EVENT_DEFINE_ADDRESS_SUBDIVISIONS
. (#13361)craft\services\Addresses::defineAddressSubdivisions()
. (#13361)craft\services\Elements::collectCacheInfoForElement()
.craft\services\Elements::getRecentActivity()
. (#13420)craft\services\Elements::trackActivity()
. (#13420)craft\services\ProjectConfig::$cacheDuration
. (#13164)craft\services\Structures::ACTION_APPEND
. (#13429)craft\services\Structures::ACTION_PLACE_AFTER
. (#13429)craft\services\Structures::ACTION_PLACE_BEFORE
. (#13429)craft\services\Structures::ACTION_PREPEND
. (#13429)craft\services\Structures::EVENT_AFTER_INSERT_ELEMENT
. (#13429)craft\services\Structures::EVENT_BEFORE_INSERT_ELEMENT
. (#13429)Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.