Skip to content

Update bundled symfony/yaml and symfony/filesystem to 7.4.23 - #201

Merged
dnnsjsk merged 1 commit into
inline0:mainfrom
Contributolo:security/symfony-7.4.23
Nov 7, 2026
Merged

dnnsjsk merged 1 commit into
inline0:mainfrom
Contributolo:security/symfony-7.4.23

Conversation

@Contributolo

Copy link
Copy Markdown
Collaborator

The scoped runtime in lib/ ships symfony/yaml 7.4.21 and symfony/filesystem 7.4.0. Both are affected by advisories fixed in Symfony 7.4.23, published after Blockstudio 7.7.12 (which bundles the affected versions):

  • symfony/yaml: GHSA-hwfg-qwvh-2wfx (PKSA-nktx-f1n1-b4yd), exponential and quadratic parse times in the YAML parser. Page_Markdown::parse_yaml() uses it for the frontmatter of file-based pages.
  • symfony/filesystem: GHSA-6prc-h956-hxjq (PKSA-g499-cm4q-v35y), any prefix before :// is treated as a path root. In the bundled runtime only scssphp calls Path::canonicalize() and Path::makeRelative().

Both are listed by composer audit --locked on main. As with the earlier updates, they sit under require-dev, so dependency alerts for sites running the plugin do not report them.

Changes

  • composer update symfony/yaml symfony/filesystem --with symfony/yaml:7.4.23 --with symfony/filesystem:7.4.23: only these two packages change in composer.lock (yaml 7.4.21 to 7.4.23, filesystem 7.4.0 to 7.4.23, both within the existing constraints). The source.reference values match the commits behind the v7.4.23 tags.
  • lib/symfony/yaml rebuilt with composer scope (PHP 8.4, as in CI).
  • lib/symfony/filesystem: composer scope does not rebuild this package (it is not in blockstudio-scoped-packages), so I prefixed it with php-scoper and the repository's scoper.inc.php. Scoping 7.4.23 yields the same 12 files as the current copy, and the diff against lib/ contains only upstream changes.
  • lib/dependencies/versions.json names the new versions. classmap.php is unchanged (no new classes).

Note for review: filesystem moves 23 patch releases, so besides the advisory fix it picks up other 7.4 bugfixes (for example Path::normalize() no longer rewrites backslashes on UNIX, and remove()/mirror()/tempnam() fixes).

Checks

  • composer audit --locked: two advisories before, none after.
  • composer scope -- --check: private dependencies match the lockfile.
  • composer test:dependencies: isolation passes (clean, before, after) and the updater integration passes.
  • php -l on all changed PHP files.
  • Smoke test against the scoped runtime: Yaml::parse() reads frontmatter as before and rejects pathological nesting and alias input; Path::canonicalize() and Path::makeRelative() behave as expected; scssphp compiles an @import plus @extend stylesheet through the bundled Path helper.

Full suites and E2E are left to CI, as described in AGENTS.md.

The scoped runtime in lib/ ships symfony/yaml 7.4.21 and
symfony/filesystem 7.4.0. Symfony 7.4.23 fixes two published advisories
that composer audit reports for these versions:

- symfony/yaml: GHSA-hwfg-qwvh-2wfx (PKSA-nktx-f1n1-b4yd), exponential
  and quadratic parse times in the YAML parser
- symfony/filesystem: GHSA-6prc-h956-hxjq (PKSA-g499-cm4q-v35y), any
  prefix before "://" is treated as a path root

Only symfony/yaml and symfony/filesystem change in composer.lock.
lib/symfony/yaml is rebuilt with composer scope on PHP 8.4. composer
scope does not rebuild lib/symfony/filesystem (it is not part of the
scoped package list), so it is prefixed with php-scoper and the same
scoper.inc.php configuration. Scoping 7.4.23 reproduces the existing
7.4.0 file set, and the diff against lib/ contains only upstream changes.
@Contributolo Contributolo added the bug Something isn't working label Nov 6, 2026
@dnnsjsk
dnnsjsk merged commit 9bbe3fb into inline0:main Nov 7, 2026
@dnnsjsk

dnnsjsk commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Merged and released in 7.7.13, included in 12440a6. The bundled, scoped Symfony YAML and Filesystem libraries are now 7.4.23. Locked Composer security audits, dependency isolation, runtime regressions, and the full CI and distribution suites passed. Thanks for catching this and preparing the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants