Skip to content

Commit 0974055

Browse files
committed
1 parent 96c60d7 commit 0974055

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- The `utils/fix-field-layout-uids` command now checks for duplicate top-level field layout UUIDs. ([#18193](https://github.com/craftcms/cms/pull/18193))
66
- Fixed a bug where all plugin settings were being saved to the project config, rather than just posted settings. ([craftcms/commerce#4006](https://github.com/craftcms/commerce/issues/4006))
77
- Fixed a bug where custom selects could be positioned incorrectly after the window was resized. ([#18179](https://github.com/craftcms/cms/issues/18179))
8-
- Fixed an SSRF vulnerability. (GHSA-96pq-hxpw-rgh8)
8+
- Fixed SSRF vulnerabilities. (GHSA-96pq-hxpw-rgh8, GHSA-8jr8-7hr4-vhfx)
99
- Fixed a SQL injection vulnerability. (GHSA-2453-mppf-46cj)
1010

1111
## 4.16.17 - 2025-12-0421

src/gql/resolvers/mutations/Asset.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
use GraphQL\Error\UserError;
2525
use GraphQL\Type\Definition\ResolveInfo;
2626
use GuzzleHttp\Client;
27+
use GuzzleHttp\RequestOptions;
2728
use Throwable;
2829
use yii\base\Exception;
2930
use yii\base\InvalidArgumentException;
@@ -259,7 +260,10 @@ protected function handleUpload(AssetElement $asset, array $fileInformation): bo
259260

260261
// Download the file
261262
$tempPath = AssetsHelper::tempFilePath($extension);
262-
$this->createGuzzleClient()->request('GET', $url, ['sink' => $tempPath]);
263+
$this->createGuzzleClient()->request('GET', $url, [
264+
RequestOptions::ALLOW_REDIRECTS => false,
265+
RequestOptions::SINK => $tempPath,
266+
]);
263267
}
264268

265269
if (!$tempPath || !$filename) {

0 commit comments

Comments
 (0)