Skip to content

chore(deps): bump PHP dependencies to close published advisories [10.16] - #41784

Merged
phil-davis merged 1 commit into
10.16from
fix/deps-10.16-cve
Aug 22, 2026
Merged

phil-davis merged 1 commit into
10.16from
fix/deps-10.16-cve

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Backports the dependency updates that master already has to the 10.16 branch,
for the 10.16.5 release (OC10-149).

Why

The 10.16 branch has had no dependency update since the 10.16.4 release commit
(852062dd, 2026-07-29). An inventory of owncloud/server:10.16.4 matched
against the GitHub Advisory Database found sixteen published advisories
against lib/composer alone. master is already clean — this brings 10.16
in line.

Package Was Now Advisories closed
guzzlehttp/guzzle 7.10.0 7.15.3 9 (incl. CVE-2026-69246, HIGH)
guzzlehttp/psr7 2.8.0 2.13.0 4
phpseclib/phpseclib 3.0.52 3.0.56 1
symfony/routing v5.4.52 v5.4.53 1
rhukster/dom-sanitizer dev-main 1.0.14 1
guzzlehttp/promises 2.3.0 2.5.2 — (transitive)
symfony/polyfill-php80 v1.33.0 v1.37.0 — (transitive)

CVE-2026-69246 is the one currently suppressed in
owncloud-docker/server's v22.04/10.16.4/.trivyignore; this lets that
suppression be dropped for the 10.16.5 image.

The dom-sanitizer pin is also a scanner blind spot

rhukster/dom-sanitizer was required as "dev-main". A branch pin resolves to a
commit and carries no version number, so no advisory version range can ever
match it — Trivy and every other range-based scanner have silently reported
nothing for this package in every scan we have ever run. The 10.16.4 image ships
commit 0794d8de (2025-11-30), which is five commits behind tag 1.0.10 and
therefore affected by CVE-2026-40301.

Requiring ^1.0.10 fixes the vulnerability and makes the dependency visible to
scanners. Note master still has the dev-main pin, so 11.x has the same blind
spot — a separate PR follows for that.

What is deliberately not changed

firebase/php-jwt stays at 6.10.0 and remains affected by CVE-2025-45769
(low, CVSS 6.5, weak encryption). The advisory is only fixed in 7.0.0, and every
7.x release requires php: ^8.0, so it cannot be applied to a branch that
supports PHP 7.4. master carries v7.1.0 because it is PHP 8.3. This one has to
be accepted for the lifetime of the 10.16 line; it is called out in the changelog
entry so it is not mistaken for an oversight.

Verification

  • resolved with composer update --no-install under config.platform.php = 7.4,
    so the result is what the release build will produce
  • composer validate passes
  • all 68 production packages in the new lock re-checked against the GitHub
    Advisory Database: only the php-jwt advisory above remains
  • lib/composer is not tracked in git, so this is lockfile-only

Structural note

.github/dependabot.yml has no target-branch, so Dependabot only ever opens
PRs against master. That is why this branch drifted for a month while master
stayed current, and it will happen again on the next release branch unless an
entry with target-branch: "10.16" is added.

Refs: OC10-149

🤖 Generated with Claude Code

@phil-davis
phil-davis merged commit 11d5d06 into 10.16 Aug 22, 2026
10 checks passed
@phil-davis
phil-davis deleted the fix/deps-10.16-cve branch August 22, 2026 00:23
phil-davis pushed a commit that referenced this pull request Aug 22, 2026
.github/dependabot.yml declared no target-branch, so Dependabot only ever
opened PRs against master. The maintained 10.16 branch received no dependency
updates at all, which is why it drifted behind on published composer advisories
until they were backported by hand in #41784.

Adds a second composer block with target-branch: "10.16". npm and
github-actions are deliberately left master-only: the /build npm tree and the
workflow pins are not part of the release tarball, so there is no security
benefit to duplicating that churn on a maintenance branch.

Signed-off-by: Thomas Müller <[email protected]>
oc-tmueller added a commit that referenced this pull request Sep 25, 2026
Bump version.php to 10.16.5 and materialize the changelog fragments for
this release.

$OC_Version becomes [10, 16, 5, 0]: the 4th digit is the internal
DB-upgrade patch level, not the public patch number, and nothing in this
release needs it moved.

The 11 fragments in changelog/unreleased/ move into
changelog/10.16.5_2026-09-25/ (git mv, so the renames stay tracked) and
CHANGELOG.md is regenerated with calens. unreleased/ keeps its .gitkeep
and is now empty, ready for the next cycle.

Security:

- #41784 update PHP dependencies to close published advisories
- #41803 prevent path traversal via appconfig public_/remote_ keys
- #41827 reject SVG/script content before it reaches ImageMagick bitmap
  previews
- #41834 pin the Imagick coder for each preview provider

Bugfixes:

- #41782 restore index usage for filecache writes on Oracle
- #41808 avoid a deprecation notice when hashing the file cache path on
  Oracle
- #41814 show federated users in the share dialog when local users also
  match
- #41819 speed up Oracle schema introspection
- #41835 release the file handle when a bitmap preview cannot be decoded
- #41855 report a preview file that cannot be opened without logging
  noise

Changes:

- #41788 update PHP dependencies

Same shape as 852062d ("feat: release 10.16.4"), which did the changelog
and the version bump in one commit. Once merged, v10.16.5 gets tagged on
the merged commit and the release bundles are built and published from
owncloud/server-release.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
oc-tmueller added a commit that referenced this pull request Sep 25, 2026
* feat: release 10.16.5

Bump version.php to 10.16.5 and materialize the changelog fragments for
this release.

$OC_Version becomes [10, 16, 5, 0]: the 4th digit is the internal
DB-upgrade patch level, not the public patch number, and nothing in this
release needs it moved.

The 11 fragments in changelog/unreleased/ move into
changelog/10.16.5_2026-09-25/ (git mv, so the renames stay tracked) and
CHANGELOG.md is regenerated with calens. unreleased/ keeps its .gitkeep
and is now empty, ready for the next cycle.

Security:

- #41784 update PHP dependencies to close published advisories
- #41803 prevent path traversal via appconfig public_/remote_ keys
- #41827 reject SVG/script content before it reaches ImageMagick bitmap
  previews
- #41834 pin the Imagick coder for each preview provider

Bugfixes:

- #41782 restore index usage for filecache writes on Oracle
- #41808 avoid a deprecation notice when hashing the file cache path on
  Oracle
- #41814 show federated users in the share dialog when local users also
  match
- #41819 speed up Oracle schema introspection
- #41835 release the file handle when a bitmap preview cannot be decoded
- #41855 report a preview file that cannot be opened without logging
  noise

Changes:

- #41788 update PHP dependencies

Same shape as 852062d ("feat: release 10.16.4"), which did the changelog
and the version bump in one commit. Once merged, v10.16.5 gets tagged on
the merged commit and the release bundles are built and published from
owncloud/server-release.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>

* fix: correct three defects in the 10.16.5 release notes

Found reviewing the release commit, all three in text that ships inside the
tarball, so this is the last point at which they are free to fix.

**Six updated dependencies were unnamed.** Diffing composer.lock at v10.16.4
against this branch gives 17 changed production packages; the entry listed 11.
Missing: sabre/dav (4.7.0 to 4.7.1), sabre/event (5.1.7 to 5.1.9),
sabre/vobject (4.5.8 to 4.6.1), pimple/pimple (v3.6.1 to v3.6.2),
nikic/php-parser (v5.7.0 to v5.9.0) and dg/composer-cleaner (v2.2.1 to
v2.2.2). All but sabre/event are direct entries in composer.json's require,
and sabre/vobject is a minor bump of the vCard/iCalendar parser behind CalDAV
and CardDAV — an administrator auditing what moved in that stack for 10.16.5
would have seen nothing. Five of the six came from #41787, whose URL was
missing from the entry as well; nikic/php-parser then went on to v5.9.0 in
#41830, which was already listed. Earlier releases on this branch do list
sabre bumps here (10.10.0, 10.11.0, 10.12.0), so the omission also broke the
house convention.

**Two entries linked a pull request that never reached this branch.** #41819
was merged into ci/oracle-db-in-github-actions-10.16, an intermediate branch
that no longer exists on the remote; the change reached 10.16 through #41815
(9408736). Likewise the 41835 entry cited only master's #41835, while the
10.16 delivery was #41837 (6443822). Both now cite the 10.16 pull request
first, matching what 41827, 41834 and 41855 already do with #41863 — so
calens also makes the branch's own pull request the primary link.

CHANGELOG.md is regenerated with calens and, as on the rest of this branch,
written without a trailing newline: `ocrelease changelog` captures calens'
stdout through execa, which strips it, and every released section on 10.16 was
produced that way. Adding one here would only create churn at the next
release.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>

* chore: fold the federated address book sync fix into the 10.16.5 release notes

Its fix merged into 10.16 after the release notes were first prepared, so
its changelog fragment was still sitting in changelog/unreleased and would
have been deferred to the next release while the fix itself shipped in this
one.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>

---------

Signed-off-by: Thomas Müller <[email protected]>
Co-authored-by: Thomas Müller <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants