From 261bd76bcf318f9aa4b224d3117eb562ed088871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brian=20Sch=C3=A4ffner?= Date: Fri, 16 Oct 2026 14:34:59 +0200 Subject: [PATCH] fix(deps): require patched Symfony security dependencies --- CHANGELOG.md | 10 ++++++++ composer.json | 6 ++--- tests/Unit/HttpFoundationSecurityTest.php | 28 +++++++++++++++++++++++ tests/WordPress/composer.json | 2 +- 4 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 tests/Unit/HttpFoundationSecurityTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 99f6380..79aae04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html) where applicable. +## 1.2.3 - 2026-10-16 + +- Require Symfony HttpFoundation 8.1.9 or newer to exclude CVE-2026-108082 + and include the follow-up fix for whitespace header separators. +- Require patched SymPress Kernel and Framework Bundle releases so lowest + dependency resolution also excludes vulnerable ExpressionLanguage and YAML. +- Require a patched Symfony YAML version in the WordPress integration fixture + to exclude CVE-2026-109413. +- Cover Cache-Control parsing with long whitespace runs and whitespace separators. + ## 1.2.0 - 2026-10-01 - Make WordPress helpers and the shared document layout available to registered diff --git a/composer.json b/composer.json index 837f449..01d60c0 100644 --- a/composer.json +++ b/composer.json @@ -14,12 +14,12 @@ "php": "^8.5", "symfony/config": "^8.0", "symfony/dependency-injection": "^8.0", - "symfony/http-foundation": "^8.1", + "symfony/http-foundation": "^8.1.9", "symfony/http-kernel": "^8.1", "symfony/twig-bridge": "^8.1", "symfony/twig-bundle": "^8.1", - "sympress/framework-bundle": "^1.0.2", - "sympress/kernel": "^1.1.1", + "sympress/framework-bundle": "^1.0.7", + "sympress/kernel": "^1.1.10", "twig/twig": "^3.22" }, "require-dev": { diff --git a/tests/Unit/HttpFoundationSecurityTest.php b/tests/Unit/HttpFoundationSecurityTest.php new file mode 100644 index 0000000..4ac7d92 --- /dev/null +++ b/tests/Unit/HttpFoundationSecurityTest.php @@ -0,0 +1,28 @@ + 'private' . str_repeat(' ', 25) . ', max-age=60', + ]); + + self::assertTrue($request->headers->hasCacheControlDirective('private')); + self::assertSame('60', $request->headers->getCacheControlDirective('max-age')); + } + + public function testHeaderWhitespaceSeparatorsRemainSupported(): void + { + self::assertSame(['foo', 'bar'], HeaderUtils::split('foo bar', ' ')); + self::assertSame(['foo bar', 'baz'], HeaderUtils::split("foo bar\tbaz", "\t")); + } +} diff --git a/tests/WordPress/composer.json b/tests/WordPress/composer.json index 087a1f6..dc6929c 100644 --- a/tests/WordPress/composer.json +++ b/tests/WordPress/composer.json @@ -8,7 +8,7 @@ "require": { "roots/wordpress": "^7.1.1", "sympress/twig-bundle": "@dev", - "symfony/yaml": "^8.1" + "symfony/yaml": "^8.1.6" }, "repositories": [ {