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
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
28 changes: 28 additions & 0 deletions tests/Unit/HttpFoundationSecurityTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

declare(strict_types=1);

namespace SymPress\TwigBundle\Tests\Unit;

use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpFoundation\HeaderUtils;
use Symfony\Component\HttpFoundation\Request;

final class HttpFoundationSecurityTest extends TestCase
{
public function testCacheControlDirectivesSurviveLongWhitespaceBeforeSeparators(): void
{
$request = new Request(server: [
'HTTP_CACHE_CONTROL' => '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"));
}
}
2 changes: 1 addition & 1 deletion tests/WordPress/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"require": {
"roots/wordpress": "^7.1.1",
"sympress/twig-bundle": "@dev",
"symfony/yaml": "^8.1"
"symfony/yaml": "^8.1.6"
},
"repositories": [
{
Expand Down
Loading