diff --git a/civicrm.php b/civicrm.php
index 6ad2cfc5a76e2c68999709aadf52e943e4a35df9..c742c386ebbd4388ad5742fcfec0d66548db60b8 100644
--- a/civicrm.php
+++ b/civicrm.php
@@ -2,7 +2,7 @@
 /**
  * Plugin Name: CiviCRM
  * Description: CiviCRM - Growing and Sustaining Relationships
- * Version: 5.40.0
+ * Version: 5.40.1
  * Requires at least: 4.9
  * Requires PHP:      7.2
  * Author: CiviCRM LLC
@@ -54,7 +54,7 @@ if (!defined('ABSPATH')) {
 }
 
 // Set version here: when it changes, will force Javascript & CSS to reload.
-define('CIVICRM_PLUGIN_VERSION', '5.40.0');
+define('CIVICRM_PLUGIN_VERSION', '5.40.1');
 
 // Store reference to this file.
 if (!defined('CIVICRM_PLUGIN_FILE')) {
diff --git a/civicrm/civicrm-version.php b/civicrm/civicrm-version.php
index 7a93937c575607edd37354f4554fdb62591c5d23..32a11e88a24f4490835b5c50f3193eb7857a043a 100644
--- a/civicrm/civicrm-version.php
+++ b/civicrm/civicrm-version.php
@@ -1,7 +1,7 @@
 <?php
 /** @deprecated */
 function civicrmVersion( ) {
-  return array( 'version'  => '5.40.0',
+  return array( 'version'  => '5.40.1',
                 'cms'      => 'Wordpress',
                 'revision' => '' );
 }
diff --git a/civicrm/ext/afform/admin/info.xml b/civicrm/ext/afform/admin/info.xml
index 051e85f81e180f666738556069f78518d29388af..d240fa35deb2ef7c482ccd9a508b88d90b5fd420 100644
--- a/civicrm/ext/afform/admin/info.xml
+++ b/civicrm/ext/afform/admin/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2020-01-09</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <develStage>alpha</develStage>
   <compatibility>
     <ver>5.23</ver>
diff --git a/civicrm/ext/afform/core/info.xml b/civicrm/ext/afform/core/info.xml
index 1a92203b699b0ce8b1a73ffe200db548e1ca78f8..b4ff608432d8043e9becf9fe94ce0ab1fadb1a21 100644
--- a/civicrm/ext/afform/core/info.xml
+++ b/civicrm/ext/afform/core/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2020-01-09</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <develStage>alpha</develStage>
   <compatibility>
     <ver>5.23</ver>
diff --git a/civicrm/ext/afform/html/info.xml b/civicrm/ext/afform/html/info.xml
index 8c224a40564e1d90297a3a5c906b73d8d975291d..a62c1c89c1a5eab709df1911efb83ea9496ebc33 100644
--- a/civicrm/ext/afform/html/info.xml
+++ b/civicrm/ext/afform/html/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2020-01-09</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <develStage>alpha</develStage>
   <compatibility>
     <ver>5.23</ver>
diff --git a/civicrm/ext/afform/mock/info.xml b/civicrm/ext/afform/mock/info.xml
index b6f2c2d2f71d52d954480924994ff45fa443bc75..5efc18007ab36c76ff07bf21c553f9f382996dfb 100644
--- a/civicrm/ext/afform/mock/info.xml
+++ b/civicrm/ext/afform/mock/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2020-01-09</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <tags>
     <tag>mgmt:hidden</tag>
   </tags>
diff --git a/civicrm/ext/authx/info.xml b/civicrm/ext/authx/info.xml
index 2647fa24f965ead2a63dc61cb980a6c3765af9ca..25b9e4d9043dc070e2c770734a281b9d6a5bfc5b 100644
--- a/civicrm/ext/authx/info.xml
+++ b/civicrm/ext/authx/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2021-02-11</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <develStage>alpha</develStage>
   <compatibility>
     <ver>5.0</ver>
diff --git a/civicrm/ext/ckeditor4/info.xml b/civicrm/ext/ckeditor4/info.xml
index a67866d66b3c662e97200b89b6a73eb23804e228..5421b95d787c58126dd698663be0009c3b6ecc88 100644
--- a/civicrm/ext/ckeditor4/info.xml
+++ b/civicrm/ext/ckeditor4/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">https://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2021-05-23</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <develStage>stable</develStage>
   <compatibility>
     <ver>5.39</ver>
diff --git a/civicrm/ext/contributioncancelactions/info.xml b/civicrm/ext/contributioncancelactions/info.xml
index 2493eabe0753806b86f267c1c0c23d678ca5789f..0a6dc40ce0ad579318114a470864662f264f3a6d 100644
--- a/civicrm/ext/contributioncancelactions/info.xml
+++ b/civicrm/ext/contributioncancelactions/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2020-10-12</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <develStage>stable</develStage>
   <compatibility>
     <ver>5.32</ver>
diff --git a/civicrm/ext/eventcart/info.xml b/civicrm/ext/eventcart/info.xml
index 510e6e5e136add5d1c6c87ff6cf4c7990e8bd7fc..49c72f765a09488ec4199caaad188f3c964d9e9a 100644
--- a/civicrm/ext/eventcart/info.xml
+++ b/civicrm/ext/eventcart/info.xml
@@ -13,7 +13,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2020-08-03</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <tags>
     <tag>mgmt:hidden</tag>
   </tags>
diff --git a/civicrm/ext/ewaysingle/info.xml b/civicrm/ext/ewaysingle/info.xml
index 161c56d73f54aa34a4bcfb312562665efc43e303..429ecc96f8ba3da9c5c5082ff67161254e4689eb 100644
--- a/civicrm/ext/ewaysingle/info.xml
+++ b/civicrm/ext/ewaysingle/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2020-10-07</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <tags>
     <tag>mgmt:hidden</tag>
   </tags>
diff --git a/civicrm/ext/financialacls/info.xml b/civicrm/ext/financialacls/info.xml
index 786c0f03c82b43aee9bb131fde1c932495966a4c..69917fa860214cf03ffb0815c0624634dfc7e15f 100644
--- a/civicrm/ext/financialacls/info.xml
+++ b/civicrm/ext/financialacls/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2020-08-27</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <develStage>stable</develStage>
   <compatibility>
     <ver>5.30</ver>
diff --git a/civicrm/ext/flexmailer/info.xml b/civicrm/ext/flexmailer/info.xml
index 95137181023c6981bf74aa88a86e8bea0b43f494..ad1c0579b47009e244731942a652ddbacae47b43 100644
--- a/civicrm/ext/flexmailer/info.xml
+++ b/civicrm/ext/flexmailer/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2020-08-05</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <develStage>stable</develStage>
   <comments>
     FlexMailer is an email delivery engine which replaces the internal guts
diff --git a/civicrm/ext/greenwich/info.xml b/civicrm/ext/greenwich/info.xml
index e4dbefed157c3584413eeaf654a4adf01db23b60..df8483f347e3f9d27cde8c8eb1ac264f771ec8fa 100644
--- a/civicrm/ext/greenwich/info.xml
+++ b/civicrm/ext/greenwich/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2020-07-21</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <tags>
     <tag>mgmt:hidden</tag>
   </tags>
diff --git a/civicrm/ext/oauth-client/info.xml b/civicrm/ext/oauth-client/info.xml
index 56c8b15305772c48727131cc69937f00d3112c28..e8bc73cc99082aebc7e36a5de4deae5c0686869a 100644
--- a/civicrm/ext/oauth-client/info.xml
+++ b/civicrm/ext/oauth-client/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2020-10-23</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <develStage>stable</develStage>
   <compatibility>
     <ver>5.38</ver>
diff --git a/civicrm/ext/payflowpro/info.xml b/civicrm/ext/payflowpro/info.xml
index 4cce110745f705b46b646b3cbd0da33b56700c25..988c66d611f3f4c9d012d7c8f522210d26d2146f 100644
--- a/civicrm/ext/payflowpro/info.xml
+++ b/civicrm/ext/payflowpro/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2021-04-13</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <develStage>stable</develStage>
   <compatibility>
     <ver>5.0</ver>
diff --git a/civicrm/ext/recaptcha/info.xml b/civicrm/ext/recaptcha/info.xml
index e39aa28fc494d1e5592c23fdc391437d32171fd4..3c0eb1f3cd7ef1f5c7851ed6bdcbfd0b6b3b7679 100644
--- a/civicrm/ext/recaptcha/info.xml
+++ b/civicrm/ext/recaptcha/info.xml
@@ -13,7 +13,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2021-04-03</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <tags>
     <tag>mgmt:hidden</tag>
   </tags>
diff --git a/civicrm/ext/search_kit/Civi/Api4/SearchDisplay.php b/civicrm/ext/search_kit/Civi/Api4/SearchDisplay.php
index fff6f151e6e0d5f9f30fd696fd021dfc468ac9bd..3327eaa36184d13b96baa7f4a2551b0d52aad017 100644
--- a/civicrm/ext/search_kit/Civi/Api4/SearchDisplay.php
+++ b/civicrm/ext/search_kit/Civi/Api4/SearchDisplay.php
@@ -32,6 +32,8 @@ class SearchDisplay extends Generic\DAOEntity {
   public static function permissions() {
     $permissions = parent::permissions();
     $permissions['default'] = ['administer CiviCRM data'];
+    $permissions['getSearchTasks'] = ['access CiviCRM'];
+    // Permission for run action is checked internally
     $permissions['run'] = [];
     return $permissions;
   }
diff --git a/civicrm/ext/search_kit/info.xml b/civicrm/ext/search_kit/info.xml
index 0c4a174a33f41bb586bdfdd09efe62a52aae91c7..4f37c89c161f98190d1b1b236286792b522eee5e 100644
--- a/civicrm/ext/search_kit/info.xml
+++ b/civicrm/ext/search_kit/info.xml
@@ -14,7 +14,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2021-01-06</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <develStage>beta</develStage>
   <compatibility>
     <ver>5.38</ver>
diff --git a/civicrm/ext/sequentialcreditnotes/info.xml b/civicrm/ext/sequentialcreditnotes/info.xml
index 6e09dddd41028efa98eb50fde106495be4ee1273..3d923eb4a1741c0a1f309caa3d127f1f7ac6f30e 100644
--- a/civicrm/ext/sequentialcreditnotes/info.xml
+++ b/civicrm/ext/sequentialcreditnotes/info.xml
@@ -15,7 +15,7 @@
     <url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
   </urls>
   <releaseDate>2020-01-28</releaseDate>
-  <version>5.40.0</version>
+  <version>5.40.1</version>
   <tags>
     <tag>mgmt:hidden</tag>
   </tags>
diff --git a/civicrm/release-notes.md b/civicrm/release-notes.md
index 9f9ff9f158ebde2d6ef07b8375895ca695e9e101..f4b7b709c2d9ad03b7752eb6c55e793c52b6c975 100644
--- a/civicrm/release-notes.md
+++ b/civicrm/release-notes.md
@@ -15,6 +15,15 @@ Other resources for identifying changes are:
     * https://github.com/civicrm/civicrm-joomla
     * https://github.com/civicrm/civicrm-wordpress
 
+## CiviCRM 5.40.1
+
+Released August 6, 2021
+
+- **[Synopsis](release-notes/5.40.1.md#synopsis)**
+- **[Bugs resolved](release-notes/5.40.1.md#bugs)**
+- **[Credits](release-notes/5.40.1.md#credits)**
+- **[Feedback](release-notes/5.40.1.md#feedback)**
+
 ## CiviCRM 5.40.0
 
 Released August 5, 2021
diff --git a/civicrm/release-notes/5.40.1.md b/civicrm/release-notes/5.40.1.md
new file mode 100644
index 0000000000000000000000000000000000000000..6a91c891a93328878c157a655bd9ec7f373ede85
--- /dev/null
+++ b/civicrm/release-notes/5.40.1.md
@@ -0,0 +1,40 @@
+# CiviCRM 5.40.1
+
+Released August 6, 2021
+
+- **[Synopsis](#synopsis)**
+- **[Bugs resolved](#bugs)**
+- **[Credits](#credits)**
+- **[Feedback](#feedback)**
+
+## <a name="synopsis"></a>Synopsis
+
+| *Does this version...?*                                         |          |
+| --------------------------------------------------------------- | -------- |
+| Change the database schema?                                     | no       |
+| Alter the API?                                                  | no       |
+| Require attention to configuration options?                     | no       |
+| Fix problems installing or upgrading to a previous version?     | no       |
+| Introduce features?                                             | no       |
+| **Fix bugs?**                                                   | **yes**  |
+
+## <a name="bugs"></a>Bugs resolved
+
+* **_Contact Dashboard_: If "Pledges" are disabled, then dashboard shows incorrect links ([dev/core#2740](https://lab.civicrm.org/dev/core/-/issues/2740): [#21051](https://github.com/civicrm/civicrm-core/pull/21051))**
+* **_Search Kit_: "Actions" menu does not display for some users ([#21045](https://github.com/civicrm/civicrm-core/pull/21045))**
+* **_WordPress_: Restore rendering for certain page-views ([dev/wordpress#107](https://lab.civicrm.org/dev/wordpress/-/issues/107), [dev/wordpress#112](https://lab.civicrm.org/dev/wordpress/-/issues/112): [wordpress#255](https://github.com/civicrm/civicrm-wordpress/pull/255))**
+
+  A recent bug-fix from v5.39.0 ([dev/wordpress#91](https://lab.civicrm.org/dev/wordpress/-/issues/91)) leads to complex interactions with various themes and plugins. This fix has been reverted until a more durable fix is developed.
+
+## <a name="credits"></a>Credits
+
+This release was developed by the following authors and reviewers:
+
+Wikimedia Foundation - Eileen McNaughton; Tadpole Collective - Kevin Cristiano; rbaugh; Joinery - Allen Shaw;
+CiviCRM - Coleman Watts, Tim Otten; Christian Wach; chriscant; Agileware - Justin Freeman, Francis Whittle
+
+## <a name="feedback"></a>Feedback
+
+These release notes are edited by Tim Otten and Andrew Hunt.  If you'd like to
+provide feedback on them, please login to https://chat.civicrm.org/civicrm and
+contact `@agh1`.
diff --git a/civicrm/sql/civicrm_data.mysql b/civicrm/sql/civicrm_data.mysql
index fefd50328de1f71a258f2cc740c1b1b620dfc589..391f06467f7ed2265b17d2d7f22d84055ff6b55e 100644
--- a/civicrm/sql/civicrm_data.mysql
+++ b/civicrm/sql/civicrm_data.mysql
@@ -23954,4 +23954,4 @@ INSERT INTO `civicrm_report_instance`
     ( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
 VALUES
     (  @domainID, 'Survey Details', 'survey/detail', 'Detailed report for canvassing, phone-banking, walk lists or other surveys.', 'access CiviReport', 'a:39:{s:6:"fields";a:2:{s:9:"sort_name";s:1:"1";s:6:"result";s:1:"1";}s:22:"assignee_contact_id_op";s:2:"eq";s:25:"assignee_contact_id_value";s:0:"";s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:17:"street_number_min";s:0:"";s:17:"street_number_max";s:0:"";s:16:"street_number_op";s:3:"lte";s:19:"street_number_value";s:0:"";s:14:"street_name_op";s:3:"has";s:17:"street_name_value";s:0:"";s:15:"postal_code_min";s:0:"";s:15:"postal_code_max";s:0:"";s:14:"postal_code_op";s:3:"lte";s:17:"postal_code_value";s:0:"";s:7:"city_op";s:3:"has";s:10:"city_value";s:0:"";s:20:"state_province_id_op";s:2:"in";s:23:"state_province_id_value";a:0:{}s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:12:"survey_id_op";s:2:"in";s:15:"survey_id_value";a:0:{}s:12:"status_id_op";s:2:"eq";s:15:"status_id_value";s:1:"1";s:11:"custom_1_op";s:2:"in";s:14:"custom_1_value";a:0:{}s:11:"custom_2_op";s:2:"in";s:14:"custom_2_value";a:0:{}s:17:"custom_3_relative";s:1:"0";s:13:"custom_3_from";s:0:"";s:11:"custom_3_to";s:0:"";s:11:"description";s:75:"Detailed report for canvassing, phone-banking, walk lists or other surveys.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"access CiviReport";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
-UPDATE civicrm_domain SET version = '5.40.0';
+UPDATE civicrm_domain SET version = '5.40.1';
diff --git a/civicrm/sql/civicrm_generated.mysql b/civicrm/sql/civicrm_generated.mysql
index 2379cf40d2b1626a5fc1b5ef50a9a8862ef966f7..7f6595a6fe94477ca8a55841716278a260d364e4 100644
--- a/civicrm/sql/civicrm_generated.mysql
+++ b/civicrm/sql/civicrm_generated.mysql
@@ -2869,7 +2869,7 @@ UNLOCK TABLES;
 LOCK TABLES `civicrm_domain` WRITE;
 /*!40000 ALTER TABLE `civicrm_domain` DISABLE KEYS */;
 INSERT INTO `civicrm_domain` (`id`, `name`, `description`, `version`, `contact_id`, `locales`, `locale_custom_strings`) VALUES
- (1,'Default Domain Name',NULL,'5.40.0',1,NULL,'a:1:{s:5:\"en_US\";a:0:{}}');
+ (1,'Default Domain Name',NULL,'5.40.1',1,NULL,'a:1:{s:5:\"en_US\";a:0:{}}');
 /*!40000 ALTER TABLE `civicrm_domain` ENABLE KEYS */;
 UNLOCK TABLES;
 
diff --git a/civicrm/templates/CRM/Contact/Page/View/UserDashBoard.tpl b/civicrm/templates/CRM/Contact/Page/View/UserDashBoard.tpl
index 88c8532cad52377530a28f624c7d86b1aa5553a2..5192a1b2be89186b1518ce64071d2ec9aec64db3 100644
--- a/civicrm/templates/CRM/Contact/Page/View/UserDashBoard.tpl
+++ b/civicrm/templates/CRM/Contact/Page/View/UserDashBoard.tpl
@@ -24,7 +24,7 @@
     <tr{if isset($element.class)} class="{$element.class}"{/if}>
       <td>
         <div class="header-dark">{$element.sectionTitle}</div>
-        {include file=$element.templatePath}
+        {include file=$element.templatePath context="user"}
       </td>
     </tr>
   {/foreach}
diff --git a/civicrm/vendor/autoload.php b/civicrm/vendor/autoload.php
index 095f84b7f854e3bc3f5a6ad484c22519ae46967c..5a41859f00bae10927127aa6559921a20cabe71a 100644
--- a/civicrm/vendor/autoload.php
+++ b/civicrm/vendor/autoload.php
@@ -4,4 +4,4 @@
 
 require_once __DIR__ . '/composer/autoload_real.php';
 
-return ComposerAutoloaderInit05259761874e2d1c20613ef26304838a::getLoader();
+return ComposerAutoloaderInit1fcd1cbc8068223afd547ab1e13b7c28::getLoader();
diff --git a/civicrm/vendor/composer/autoload_real.php b/civicrm/vendor/composer/autoload_real.php
index ca8c9d5dbf6a18fd919cfc986ef71319e8eb3e2a..c1eed51b3c27dcb0377cad4dd0eba398d2f2ef37 100644
--- a/civicrm/vendor/composer/autoload_real.php
+++ b/civicrm/vendor/composer/autoload_real.php
@@ -2,7 +2,7 @@
 
 // autoload_real.php @generated by Composer
 
-class ComposerAutoloaderInit05259761874e2d1c20613ef26304838a
+class ComposerAutoloaderInit1fcd1cbc8068223afd547ab1e13b7c28
 {
     private static $loader;
 
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit05259761874e2d1c20613ef26304838a
             return self::$loader;
         }
 
-        spl_autoload_register(array('ComposerAutoloaderInit05259761874e2d1c20613ef26304838a', 'loadClassLoader'), true, true);
+        spl_autoload_register(array('ComposerAutoloaderInit1fcd1cbc8068223afd547ab1e13b7c28', 'loadClassLoader'), true, true);
         self::$loader = $loader = new \Composer\Autoload\ClassLoader();
-        spl_autoload_unregister(array('ComposerAutoloaderInit05259761874e2d1c20613ef26304838a', 'loadClassLoader'));
+        spl_autoload_unregister(array('ComposerAutoloaderInit1fcd1cbc8068223afd547ab1e13b7c28', 'loadClassLoader'));
 
         $includePaths = require __DIR__ . '/include_paths.php';
         $includePaths[] = get_include_path();
@@ -31,7 +31,7 @@ class ComposerAutoloaderInit05259761874e2d1c20613ef26304838a
         if ($useStaticLoader) {
             require_once __DIR__ . '/autoload_static.php';
 
-            call_user_func(\Composer\Autoload\ComposerStaticInit05259761874e2d1c20613ef26304838a::getInitializer($loader));
+            call_user_func(\Composer\Autoload\ComposerStaticInit1fcd1cbc8068223afd547ab1e13b7c28::getInitializer($loader));
         } else {
             $map = require __DIR__ . '/autoload_namespaces.php';
             foreach ($map as $namespace => $path) {
@@ -52,19 +52,19 @@ class ComposerAutoloaderInit05259761874e2d1c20613ef26304838a
         $loader->register(true);
 
         if ($useStaticLoader) {
-            $includeFiles = Composer\Autoload\ComposerStaticInit05259761874e2d1c20613ef26304838a::$files;
+            $includeFiles = Composer\Autoload\ComposerStaticInit1fcd1cbc8068223afd547ab1e13b7c28::$files;
         } else {
             $includeFiles = require __DIR__ . '/autoload_files.php';
         }
         foreach ($includeFiles as $fileIdentifier => $file) {
-            composerRequire05259761874e2d1c20613ef26304838a($fileIdentifier, $file);
+            composerRequire1fcd1cbc8068223afd547ab1e13b7c28($fileIdentifier, $file);
         }
 
         return $loader;
     }
 }
 
-function composerRequire05259761874e2d1c20613ef26304838a($fileIdentifier, $file)
+function composerRequire1fcd1cbc8068223afd547ab1e13b7c28($fileIdentifier, $file)
 {
     if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
         require $file;
diff --git a/civicrm/vendor/composer/autoload_static.php b/civicrm/vendor/composer/autoload_static.php
index 1da457c7d1104873e156a4a18b0c79225d5c5039..08a857e5d2ee4990adb2da79c8e7526bb66b6d4f 100644
--- a/civicrm/vendor/composer/autoload_static.php
+++ b/civicrm/vendor/composer/autoload_static.php
@@ -4,7 +4,7 @@
 
 namespace Composer\Autoload;
 
-class ComposerStaticInit05259761874e2d1c20613ef26304838a
+class ComposerStaticInit1fcd1cbc8068223afd547ab1e13b7c28
 {
     public static $files = array (
         '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
@@ -572,11 +572,11 @@ class ComposerStaticInit05259761874e2d1c20613ef26304838a
     public static function getInitializer(ClassLoader $loader)
     {
         return \Closure::bind(function () use ($loader) {
-            $loader->prefixLengthsPsr4 = ComposerStaticInit05259761874e2d1c20613ef26304838a::$prefixLengthsPsr4;
-            $loader->prefixDirsPsr4 = ComposerStaticInit05259761874e2d1c20613ef26304838a::$prefixDirsPsr4;
-            $loader->prefixesPsr0 = ComposerStaticInit05259761874e2d1c20613ef26304838a::$prefixesPsr0;
-            $loader->fallbackDirsPsr0 = ComposerStaticInit05259761874e2d1c20613ef26304838a::$fallbackDirsPsr0;
-            $loader->classMap = ComposerStaticInit05259761874e2d1c20613ef26304838a::$classMap;
+            $loader->prefixLengthsPsr4 = ComposerStaticInit1fcd1cbc8068223afd547ab1e13b7c28::$prefixLengthsPsr4;
+            $loader->prefixDirsPsr4 = ComposerStaticInit1fcd1cbc8068223afd547ab1e13b7c28::$prefixDirsPsr4;
+            $loader->prefixesPsr0 = ComposerStaticInit1fcd1cbc8068223afd547ab1e13b7c28::$prefixesPsr0;
+            $loader->fallbackDirsPsr0 = ComposerStaticInit1fcd1cbc8068223afd547ab1e13b7c28::$fallbackDirsPsr0;
+            $loader->classMap = ComposerStaticInit1fcd1cbc8068223afd547ab1e13b7c28::$classMap;
 
         }, null, ClassLoader::class);
     }
diff --git a/civicrm/xml/version.xml b/civicrm/xml/version.xml
index ecb57b879ba4dc3bf3f9fc5c73a2fbdf8e6f046c..709ca62913e3127d16ebe1dab6367cbb0221897c 100644
--- a/civicrm/xml/version.xml
+++ b/civicrm/xml/version.xml
@@ -1,4 +1,4 @@
 <?xml version="1.0" encoding="iso-8859-1" ?>
 <version>
-  <version_no>5.40.0</version_no>
+  <version_no>5.40.1</version_no>
 </version>