Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions core/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions core/vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -4389,17 +4389,17 @@
},
{
"name": "phpmailer/phpmailer",
"version": "v7.1.1",
"version_normalized": "7.1.1.0",
"version": "v7.4.1",
"version_normalized": "7.4.1.0",
"source": {
"type": "git",
"url": "https://github.com/PHPMailer/PHPMailer.git",
"reference": "1bc1716a507a65e039d4ac9d9adebbbd0d346e15"
"reference": "4ddb1d8485a4216f8a97beaf185361669c619dc2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/1bc1716a507a65e039d4ac9d9adebbbd0d346e15",
"reference": "1bc1716a507a65e039d4ac9d9adebbbd0d346e15",
"url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/4ddb1d8485a4216f8a97beaf185361669c619dc2",
"reference": "4ddb1d8485a4216f8a97beaf185361669c619dc2",
"shasum": ""
},
"require": {
Expand All @@ -4410,11 +4410,11 @@
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"doctrine/annotations": "^1.2.6 || ^1.13.3",
"doctrine/annotations": "^1.2.6",
"php-parallel-lint/php-console-highlighter": "^1.0.0",
"php-parallel-lint/php-parallel-lint": "^1.3.2",
"phpcompatibility/php-compatibility": "^10.0.0@dev",
"squizlabs/php_codesniffer": "^3.13.5",
"squizlabs/php_codesniffer": "^3.13.6 || ^4.0.2",
"yoast/phpunit-polyfills": "^1.0.4"
},
"suggest": {
Expand All @@ -4423,14 +4423,15 @@
"ext-imap": "Needed to support advanced email address parsing according to RFC822",
"ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses",
"ext-openssl": "Needed for secure SMTP sending and DKIM signing",
"greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication",
"hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication",
"ipwsystems/oauth2-entraid-provider": "Needed for Microsoft Azure (Entra ID) XOAUTH2 authentication",
"league/oauth2-google": "Needed for Google XOAUTH2 authentication",
"psr/log": "For optional PSR-3 debug logging",
"symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)",
"thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication"
},
"time": "2026-05-18T08:06:14+00:00",
"time": "2026-12-04T10:35:10+00:00",
"published-time": "2026-12-04T10:35:39+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -4462,7 +4463,7 @@
"description": "PHPMailer is a full-featured email creation and transfer class for PHP",
"support": {
"issues": "https://github.com/PHPMailer/PHPMailer/issues",
"source": "https://github.com/PHPMailer/PHPMailer/tree/v7.1.1"
"source": "https://github.com/PHPMailer/PHPMailer/tree/v7.4.1"
},
"funding": [
{
Expand Down
6 changes: 3 additions & 3 deletions core/vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -584,9 +584,9 @@
'dev_requirement' => false,
),
'phpmailer/phpmailer' => array(
'pretty_version' => 'v7.1.1',
'version' => '7.1.1.0',
'reference' => '1bc1716a507a65e039d4ac9d9adebbbd0d346e15',
'pretty_version' => 'v7.4.1',
'version' => '7.4.1.0',
'reference' => '4ddb1d8485a4216f8a97beaf185361669c619dc2',
'type' => 'library',
'install_path' => __DIR__ . '/../phpmailer/phpmailer',
'aliases' => array(),
Expand Down
2 changes: 1 addition & 1 deletion core/vendor/phpmailer/phpmailer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
- Protects against header injection attacks
- Error messages in over 50 languages!
- DKIM and S/MIME signing support
- Compatible with PHP 5.5 and later, including PHP 8.5
- Compatible with PHP 5.5 and later, including PHP 8.6
- Namespaced to prevent name clashes
- Much more!

Expand Down
14 changes: 14 additions & 0 deletions core/vendor/phpmailer/phpmailer/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

Please disclose any security issues or vulnerabilities found through [Tidelift's coordinated disclosure system](https://tidelift.com/security) or to the maintainers privately.

In PHPMailer 6.10.0 — 7.3.0, SMTPUTF8 mode skipped the quoting applied to display names on other code paths, writing untrusted names into To/From/Cc/Bcc/Reply-To headers verbatim. If an email address contained UTF-8 characters, an accompanying user-supplied name containing `<`, `>` and `,` could append extra mailboxes to the header's address list. When sending by SMTP, these addresses are not used (though they would be visible to recipients), but in the mail, sendmail and qmail transports these became real delivery recipients, copying messages to additional user-supplied addresses. Recorded as [GHSA-wpxm-6j67-ccr4](https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-wpxm-6j67-ccr4). Reported by Priyank Nigam, Microsoft Security Engineering @priyankn.

PHPMailer 7.3.0 and earlier fail to escape backslashes in attachment file names in addition to double quotes, closing the same quoted-string injection vector as CVE-2020-13625. A name like `a\"; filename=evil.exe` could inject a second `filename` parameter into `Content-Type`/`Content-Disposition` headers, bypassing attachment filters based on file name extensions; the attachments themselves are unaffected. Recorded as [GHSA-jqw7-rprw-3x24](https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-jqw7-rprw-3x24). Reported by @Humbertosp of [SVO](https://svo.com.br).

PHPMailer 7.3.0 and earlier do not validate the `Priority` property, permitting header injection if the caller fails to validate priority values. Recorded as [GHSA-m63c-qqvj-57cp](https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-m63c-qqvj-57cp). Reported by [Fariskhi Vidyan](mailto:fvidyan@gmail.com).

PHPMailer 7.3.0 and earlier do not validate the `type` parameter of attachments, permitting MIME sub-part header injection if the caller fails to validate type values. Impact is limited because it only applies to attachments, so can't inject message-level headers. Mitigated by applying `secureHeader()` to `$type` values. Recorded as [GHSA-6p6c-7gc2-3mpg](https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-6p6c-7gc2-3mpg). Reported by [N.Harsha Vardhan](mailto:saiharsha0546@gmail.com).

PHPMailer 7.3.0 and earlier do not validate the `DKIM_selector`, `DKIM_domain`, and `DKIM_identity` properties, permitting header injection if the caller fails to validate their values. Mitigated by applying validation checks before the properties are used. Recorded as [GHSA-69mx-xjj2-3m35](https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-69mx-xjj2-3m35). Reported by [Fariskhi Vidyan](mailto:fvidyan@gmail.com).

PHPMailer 7.3.0 and earlier will read any additional data in the input buffer after a TLS session is started with STARTTLS. This is a protocol contravention, but can result in the excess data appearing *inside* the TLS tunnel. After the fix, any data present at this point will cause the connection to be aborted. Recorded as [GHSA-48ww-9fvv-776g](https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-48ww-9fvv-776g). Reported by @markhutsefluts.

In PHPMailer 5.2.14 – 7.3.0, punycoded IDN addresses malformed due to using a mismatched `CharSet` could allow attacker-provided addresses to be used for sending. Recorded as [GHSA-jr68-w5cp-4rp7](https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-jr68-w5cp-4rp7): Reported by Dickson Wu (SEAL & CertiK) @DicksonWu654.

PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is injected into the host project's scope by other means). If the `$patternselect` parameter to `validateAddress()` is set to `'php'` (the default, defined by `PHPMailer::$validator`), and the global namespace contains a function called `php`, it will be called in preference to the built-in validator of the same name. Mitigated in PHPMailer 6.5.0 by denying the use of simple strings as validator function names. Recorded as [CVE-2021-3603](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3603). Reported by [Vikrant Singh Chauhan](mailto:vi@hackberry.xyz) via [huntr.dev](https://www.huntr.dev/).

PHPMailer versions 6.4.1 and earlier contain a possible remote code execution vulnerability through the `$lang_path` parameter of the `setLanguage()` method. If the `$lang_path` parameter is passed unfiltered from user input, it can be set to [a UNC path](https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths), and if an attacker is also able to persuade the server to load a file from that UNC path, a script file under their control may be executed. This vulnerability only applies to systems that resolve UNC paths, typically only Microsoft Windows.
Expand Down
2 changes: 1 addition & 1 deletion core/vendor/phpmailer/phpmailer/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.1
7.4.1
34 changes: 17 additions & 17 deletions core/vendor/phpmailer/phpmailer/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "phpmailer/phpmailer",
"type": "library",
"description": "PHPMailer is a full-featured email creation and transfer class for PHP",
"license": "LGPL-2.1-only",
"type": "library",
"authors": [
{
"name": "Marcus Bointon",
Expand All @@ -21,16 +22,10 @@
],
"funding": [
{
"url": "https://github.com/Synchro",
"type": "github"
"type": "github",
"url": "https://github.com/Synchro"
}
],
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"lock": false
},
"require": {
"php": ">=5.5.0",
"ext-ctype": "*",
Expand All @@ -39,25 +34,25 @@
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"doctrine/annotations": "^1.2.6 || ^1.13.3",
"doctrine/annotations": "^1.2.6",
"php-parallel-lint/php-console-highlighter": "^1.0.0",
"php-parallel-lint/php-parallel-lint": "^1.3.2",
"phpcompatibility/php-compatibility": "^10.0.0@dev",
"squizlabs/php_codesniffer": "^3.13.5",
"squizlabs/php_codesniffer": "^3.13.6 || ^4.0.2",
"yoast/phpunit-polyfills": "^1.0.4"
},
"suggest": {
"decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication",
"ext-imap": "Needed to support advanced email address parsing according to RFC822",
"ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses",
"ext-openssl": "Needed for secure SMTP sending and DKIM signing",
"greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication",
"decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication",
"directorytree/imapengine": "For uploading sent messages via IMAP, see gmail example",
"ipwsystems/oauth2-entraid-provider": "Needed for Microsoft Azure (Entra ID) XOAUTH2 authentication",
"hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication",
"league/oauth2-google": "Needed for Google XOAUTH2 authentication",
"psr/log": "For optional PSR-3 debug logging",
"symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)",
"thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication",
"directorytree/imapengine": "For uploading sent messages via IMAP, see gmail example"
"thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand All @@ -71,14 +66,19 @@
"PHPMailer\\Test\\": "test/"
}
},
"license": "LGPL-2.1-only",
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"lock": false
},
"scripts": {
"check": "./vendor/bin/phpcs",
"style": "./vendor/bin/phpcbf",
"test": "./vendor/bin/phpunit --no-coverage",
"coverage": "./vendor/bin/phpunit",
"lint": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . --show-deprecated -e php,phps --exclude vendor --exclude .git --exclude build"
"@php -r \"passthru(escapeshellarg(PHP_BINARY) . ' ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint -p ' . escapeshellarg(escapeshellarg(PHP_BINARY)) . ' . --show-deprecated -e php,phps --exclude vendor --exclude .git --exclude build ' . implode(' ', array_map('escapeshellarg', array_slice(\\$argv, 1))), \\$code); exit(\\$code);\" --"
]
}
}
17 changes: 13 additions & 4 deletions core/vendor/phpmailer/phpmailer/get_oauth_token.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
use Hayageek\OAuth2\Client\Provider\Yahoo;
//@see https://github.com/stevenmaguire/oauth2-microsoft
use Stevenmaguire\OAuth2\Client\Provider\Microsoft;
//@see https://github.com/greew/oauth2-azure-provider
use Greew\OAuth2\Client\Provider\Azure;
//@see https://packagist.org/packages/ipwsystems/oauth2-entraid-provider
use IpwSystems\OAuth2\Client\Provider\EntraID;

if (!isset($_GET['code']) && !isset($_POST['provider'])) {
?>
Expand All @@ -60,7 +60,7 @@
<input type="radio" name="provider" value="Microsoft" id="providerMicrosoft">
<label for="providerMicrosoft">Microsoft</label><br>
<input type="radio" name="provider" value="Azure" id="providerAzure">
<label for="providerAzure">Azure</label><br>
<label for="providerAzure">Azure / EntraID</label><br>
<h1>Enter id and secret</h1>
<p>These details are obtained by setting up an app in your provider's developer console.
</p>
Expand Down Expand Up @@ -142,7 +142,7 @@
case 'Azure':
$params['tenantId'] = $tenantId;

$provider = new Azure($params);
$provider = new EntraID($params);
$options = [
'scope' => [
'https://outlook.office.com/SMTP.Send',
Expand All @@ -160,15 +160,24 @@
//If we don't have an authorization code then get one
$authUrl = $provider->getAuthorizationUrl($options);
$_SESSION['oauth2state'] = $provider->getState();
//Providers that use PKCE need the code verifier again when the code is redeemed
//getPkceCode() needs league/oauth2-client 2.7.0 or later
$_SESSION['oauth2pkce'] = method_exists($provider, 'getPkceCode') ? $provider->getPkceCode() : null;
header('Location: ' . $authUrl);
exit;
//Check given state against previously stored one to mitigate CSRF attack
} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {
unset($_SESSION['oauth2state']);
unset($_SESSION['oauth2pkce']);
unset($_SESSION['provider']);
exit('Invalid state');
} else {
unset($_SESSION['provider']);
//Restore the PKCE code verifier before redeeming the code (no effect for providers without PKCE)
if (method_exists($provider, 'setPkceCode')) {
$provider->setPkceCode(isset($_SESSION['oauth2pkce']) ? $_SESSION['oauth2pkce'] : null);
}
unset($_SESSION['oauth2pkce']);
//Try to get an access token (using the authorization code grant)
$token = $provider->getAccessToken(
'authorization_code',
Expand Down
Loading