Repository navigation
Require patched symfony/yaml (GHSA-2v3c-qxhr-7vpv) - #47
Conversation
Drop the unpatched 4.4 line and floor each supported line at 5.4.54, 6.4.45, 7.4.18, or 8.1.6. Co-authored-by: August Flanagan <aflanagan@users.noreply.github.com>
|
Opus 5.5 High review of Verdict: APPROVE. I found no blocking issues. This is posted as a comment because this token cannot submit a formal GitHub review. Treat it as an approval. What I checkedThe constraint covers every patched line, and no vulnerable version is still reachable.
The SDK's YAML usage works on 5.4 through 8.1.
No public API change. Findings
|
The package already cannot install below that floor; this only corrects the metadata. Co-authored-by: August Flanagan <aflanagan@users.noreply.github.com>
|
Addressed the Skipping the other notes:
|
|
Opus 5.5 High re-review of Verdict: APPROVE. I found no blocking issues. This is a comment because this token cannot submit a formal GitHub review. What changed since
|
| Allowed line | Requires PHP |
|---|---|
| 5.4.54 (the only 5.4 release allowed) | >=7.2.5 |
| 6.4.45–6.4.49 | >=8.1 |
| 7.4.18–7.4.22 | >=8.2 |
| 8.1.6–8.1.10 | >=8.4.1 |
The lowest of these is 7.2.5, so >=7.2.5 is exactly the floor the dependency already enforces. It adds no new restriction. Leaving the constraint without an upper bound matches the previous style; the symfony/yaml constraint already handles newer PHP versions.
The dev requirements fit the new floor: phpunit/phpunit ^8.5.52 requires PHP >= 7.2.
I resolved the head with Composer 2.11.1 and config.platform.php:
- 7.2.4: rejected at the root, with
cronitor/cronitor-php require php >=7.2.5. PHP 7.1 and older now get a clear error about the SDK itself, instead of an indirect conflict throughsymfony/yaml. - 7.2.5 and 8.0.30: resolve
symfony/yamlv5.4.54. - 8.1.0: resolves v6.4.49.
- 8.2.0 and 8.4.0: resolve v7.4.22. PHP 8.4.0 is below the
>=8.4.1that 8.1.x needs, so it correctly falls back to 7.4. - 8.4.1: resolves v8.1.10.
On PHP 7.2.34, composer validate --strict passes. Both composer install and composer update --prefer-lowest resolve symfony/yaml v5.4.54, and the suite passes in both cases: OK, 23 tests, 36 assertions. composer audit reports no security advisories, in both the full and --no-dev runs. It lists three abandoned dev-only packages, which were already there at f70838bc.
A consumer project smoke test on real PHP 7.2 (yaml 5.4.54) and PHP 8.4 (yaml 8.1.10) passes:
readConfig()parses the sample config correctly.- A document nested 20,000 levels deep throws
ParseException: Maximum nesting depth of 128 exceeded.
The CI build check passes on this head.
Earlier notes
- Note 1, the
phpconstraint: resolved. - Note 2, release notes: resolved. The Release notes section says this drops PHP < 7.2.5, asks for a minor release such as 1.4.0, and explains that PHP 7.1 users will silently stay on 1.3.4.
- The PHP 8 CI matrix and release cutting: skipping both is reasonable. Both were non-blocking and out of scope for this PR.
Findings
None blocking. Nothing new is non-blocking either.
Correction to my previous comment
In the nested-input bullet, I wrote that 4.4 "crashed nothing visibly but parsed with no exception". It should say: with the old constraint, symfony/yaml 4.4.0 on PHP 7.2 and 4.4.45 on PHP 7.1 parsed the 20,000-level document without throwing any exception, so nothing enforced a nesting limit. The verdict and findings in that comment are unchanged.
Summary
Fixes Dependabot alert #6, GHSA-2v3c-qxhr-7vpv (CVE-2026-109413). Deeply nested inline YAML in
symfony/yamlcauses unbounded recursion and crashes the process.composer.jsonnow requiressymfony/yaml: ^5.4.54|^6.4.45|^7.4.18|^8.1.6instead of^4.4|^5.2|^6.0|^7.0|^8.0. Those floors are the patched releases. The 4.4 line is dropped because it has no patched release. Thephpconstraint is now>=7.2.5, which matches whatsymfony/yaml5.4.54 already requires. No SDK code, public APIs, env vars, or config changed, and nocomposer.lockwas added.Consumers can no longer install
symfony/yaml4.4. In practice that ends PHP 7.1 support, because Symfony 5.4 needs PHP >= 7.2.5.Release notes
This drops PHP < 7.2.5. Release it as a minor version (for example 1.4.0) rather than a patch, because PHP 7.1 users will silently stay on 1.3.4 with the vulnerable
symfony/yaml4.4.Tests
PHP 7.2.34 (the version CI uses), Composer 2.11.1:
composer validate --strict— passedcomposer install— resolvedsymfony/yamlv5.4.54;composer run-script test— OK (23 tests, 36 assertions) with PHPUnit 8.5.56composer update --prefer-lowest— resolvedsymfony/yamlv5.4.54 (PHPUnit 8.5.52); Composer reported no security vulnerability advisories;composer run-script test— OK (23 tests, 36 assertions)After changing
"php"to>=7.2.5, on PHP 7.2.34:composer validate --strict— passedcomposer install— resolvedsymfony/yamlv5.4.54composer run-script test— OK (23 tests, 36 assertions) with PHPUnit 8.5.56PHP 8.3.6:
composer validate --strict— passedcomposer install— resolved patchedsymfony/yamlv6.4.49composer run-script test— fatal before PHPUnit:AspectMock\Kernel::init()is incompatible withGo\Core\AspectKernel::init(): void. The same fatal happens with the previous constraint, which also resolvessymfony/yamlv6.4.49 on PHP 8.3. CI runs only PHP 7.2.