Skip to content

Commit f17d903

Browse files
committed
Merge branch 'release/1.7.52'
2 parents c83810d + 7629870 commit f17d903

5 files changed

Lines changed: 19 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# v1.7.52
2+
## 04/29/2026
3+
4+
1. [](#new)
5+
* GPM client now sends the running PHP version with index requests so the server can substitute PHP-aware compat fallbacks when a plugin's latest release requires a newer PHP than the client can run.
6+
1. [](#bugfix)
7+
* [security] Extended default `uploads_dangerous_extensions` to include `md`, `yaml`, `yml`, `json`, `twig`, `ini` — page-content extensions that can be weaponised via permissive form-upload `accept` policies (GHSA-w4rc-p66m-x6qq, defense-in-depth alongside the Form 9.1.0 plugin fix).
8+
19
# v1.7.51
210
## 04/28/2026
311

system/config/security.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,12 @@ uploads_dangerous_extensions:
4444
- shtm
4545
- js
4646
- exe
47+
# Page-content extensions: writing these into a page directory turns
48+
# an upload into arbitrary page-content takeover (GHSA-w4rc-p66m-x6qq).
49+
- md
50+
- yaml
51+
- yml
52+
- json
53+
- twig
54+
- ini
4755
sanitize_svg: true

system/defines.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
// Some standard defines
1111
define('GRAV', true);
12-
define('GRAV_VERSION', '1.7.51');
12+
define('GRAV_VERSION', '1.7.52');
1313
define('GRAV_SCHEMA', '1.7.0_2020-11-20_1');
1414
define('GRAV_TESTING', false);
1515

system/src/Grav/Common/GPM/Remote/AbstractPackageCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct($repository = null, $refresh = false, $callback = nu
4949
$cache_dir = Grav::instance()['locator']->findResource('cache://gpm', true, true);
5050
$this->cache = new FilesystemCache($cache_dir);
5151

52-
$this->repository = $repository . '?v=' . GRAV_VERSION . '&' . $channel . '=1';
52+
$this->repository = $repository . '?v=' . GRAV_VERSION . '&php=' . PHP_VERSION . '&' . $channel . '=1';
5353
$this->raw = $this->cache->fetch(md5($this->repository));
5454

5555
$this->fetch($refresh, $callback);

system/src/Grav/Common/GPM/Remote/GravCore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct($refresh = false, $callback = null)
4343
$channel = Grav::instance()['config']->get('system.gpm.releases', 'stable');
4444
$cache_dir = Grav::instance()['locator']->findResource('cache://gpm', true, true);
4545
$this->cache = new FilesystemCache($cache_dir);
46-
$this->repository .= '?v=' . GRAV_VERSION . '&' . $channel . '=1';
46+
$this->repository .= '?v=' . GRAV_VERSION . '&php=' . PHP_VERSION . '&' . $channel . '=1';
4747
$this->raw = $this->cache->fetch(md5($this->repository));
4848

4949
$this->fetch($refresh, $callback);

0 commit comments

Comments
 (0)