Repository navigation
chore(deps): base image 2.0.5, and drop the vulnerable mongodb/mongodb - #13552
Merged
Merged
Conversation
Picks up appwrite/docker-base 2.0.5, a weekly dependency roll: the pinned php:8.5-alpine index digest, ext-mongodb 2.4.1 -> 2.5.2 and protobuf 5.36.0 -> 5.36.1. Nothing the image exposes moves. Both tags run PHP 8.5.10 and carry a byte-identical module list, so this is version drift inside two extensions rather than a change in surface. The comment above the xdebug mount names the tag it is explaining, so it moves with the pins it describes. Co-Authored-By: Claude Opus 5 <[email protected]>
Contributor
CVE-2026-81525 (high) affects mongodb/mongodb >=2.0.0,<2.4.1; the lock carried 2.1.2. It could not be reached from here: utopia-php/mongo 1.5.3 required mongodb/mongodb 2.1.*, so the fixed 2.4.1 was outside the constraint and no update in this repository could take it. utopia-php/mongo 1.5.4 (utopia-php/mongo#50) removes the requirement rather than widening it. That package is a from-scratch wire-protocol client and every MongoDB symbol it names is BSON or a driver exception -- both from ext-mongodb, not from the composer library -- so the library was installed everywhere and called nowhere. Widening it instead would have pulled in a package requiring ext-mongodb ^2.4, which no Appwrite base image ships. Nothing in this repository referenced the library either: no MongoDB\ symbol appears anywhere under app/, src/ or tests/, and the only lock entry naming it is utopia-php/query's require-dev, which is never installed transitively. Lock moves by exactly two packages, 138 -> 137, nothing added. `composer audit --locked` now reports no advisories. Co-Authored-By: Claude Opus 5 <[email protected]>
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
2 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two dependency moves that both land in the container.
1. Base image 2.0.4 → 2.0.5
appwrite/base:2.0.5— the base pin, the-xdebugpin used for the mounted extension, and the comment that names the tag it explains.2.0.5 is a weekly automated dependency roll (docker-base#103):
php:8.5-alpinedigestsha256:763e2dc5…sha256:aa66ee42…ext-mongodbprotobufChecked against both images rather than read off the release notes: PHP is unchanged (
8.5.10, same build date) and the module list is byte-identical — nothing added, nothing dropped. So this is version drift inside two extensions, not a change in surface.docker build --target basesucceeds on this branch, and the built image runs PHP 8.5.10, carries the application code and passesphp -lonapp/http.php.2.
mongodb/mongodbremoved — CVE-2026-81525The lock carried
mongodb/mongodb2.1.2, inside the affected range of CVE-2026-81525 (high,>=2.0.0,<2.4.1). It was unreachable from this repository:utopia-php/mongo1.5.3 requiredmongodb/mongodb 2.1.*, so the fixed 2.4.1 sat outside the constraint and no update here could take it.utopia-php/mongo#50, released as 1.5.4, removes the requirement rather than widening it. That package is a from-scratch wire-protocol client: every
MongoDB\symbol it names isBSON\*or a driver exception, both provided by ext-mongodb, not by the composer library. The library was installed by every consumer and called by none. Widening instead would have requiredext-mongodb ^2.4, which no Appwrite base image ships.Nothing here referenced it either — no
MongoDB\symbol appears anywhere underapp/,src/ortests/, and the only lock entry naming it isutopia-php/query'srequire-dev, which is never installed transitively.Verification
mongodb/mongodbremoved,utopia-php/mongo1.5.3 → 1.5.4. Nothing added — verified by comparing the full package set before and after, not by reading the diff.composer audit --locked→ "No security vulnerability advisories found." (exit 0). It reported CVE-2026-81525 before.composer validatepasses; its warnings are pre-existing and about other packages' exact-version constraints.1.5.4isidenticalto merge commit34ccfd6e.Not verified
The full test suite was not run locally; CI covers it.
composer.jsonis unchanged —utopia-php/mongois transitive viautopia-php/database ^7.0.0, so there is no constraint here to edit. The-xdebugtag is only mounted whenDEBUG=true, so the development path is exercised by CI only if a job sets it.🤖 Generated with Claude Code