Skip to content

chore(deps): base image 2.0.5, and drop the vulnerable mongodb/mongodb - #13552

Merged
abnegate merged 2 commits into
mainfrom
chore/base-image-2.0.5
Sep 9, 2026
Merged

abnegate merged 2 commits into
mainfrom
chore/base-image-2.0.5

Conversation

@abnegate

@abnegate abnegate commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

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 -xdebug pin 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):

2.0.4 2.0.5
php:8.5-alpine digest sha256:763e2dc5… sha256:aa66ee42…
ext-mongodb 2.4.1 2.5.2
protobuf 5.36.0 5.36.1

Checked 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 base succeeds on this branch, and the built image runs PHP 8.5.10, carries the application code and passes php -l on app/http.php.

2. mongodb/mongodb removed — CVE-2026-81525

The lock carried mongodb/mongodb 2.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/mongo 1.5.3 required mongodb/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 is BSON\* 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 required ext-mongodb ^2.4, which no Appwrite base image ships.

Nothing here referenced it 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.

Verification

  • Lock moves by exactly two packages, 138 → 137: mongodb/mongodb removed, utopia-php/mongo 1.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 validate passes; its warnings are pre-existing and about other packages' exact-version constraints.
  • Release verified by ancestry, not by absence: tag 1.5.4 is identical to merge commit 34ccfd6e.

Not verified

The full test suite was not run locally; CI covers it. composer.json is unchanged — utopia-php/mongo is transitive via utopia-php/database ^7.0.0, so there is no constraint here to edit. The -xdebug tag is only mounted when DEBUG=true, so the development path is exercised by CI only if a job sets it.

🤖 Generated with Claude Code

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]>
@greptile-apps

greptile-apps Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

The changes appear safe to merge, with only the existing non-blocking Xdebug validation gap remaining.

Summary

  • Upgrades utopia-php/mongo from 1.5.3 to 1.5.4.
  • Removes the unused mongodb/mongodb production dependency.
  • Keeps symfony/polyfill-php85 only in development dependencies.
  • No new actionable issue was identified in the changes since the previous review.

Comment thread Dockerfile Resolved
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]>
@github-actions

github-actions Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → chore/base-image-2.0.5 (after).

Metric Before After Change
🚀 Requests/sec 257.56 262.15 ⚪ +1.8%
⏱️ Latency P50 68.23 ms 66.19 ms ⚪ -3%
⏱️ Latency P95 157.64 ms 157.74 ms ⚪ +0.1%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 66.19 157.74 16,074 262.15 +0.1
Account 127.65 249.05 846 14.13 -17.51
TablesDB 63.96 119.99 8,742 144.25 +1.84
Storage 60.6 132.4 4,230 72.11 -5.99
Functions 98.83 194.04 2,256 39.12 +7.51

Top API waits (after)

API request Max wait (ms)
account.name.update 465.36
functions.variables.update 388.95
account.prefs.update 340.01
functions.variables.delete 313.64
functions.variables.get 302.73

@abnegate abnegate changed the title chore(docker): move the base image to 2.0.5 chore(deps): base image 2.0.5, and drop the vulnerable mongodb/mongodb Sep 9, 2026
@abnegate
abnegate merged commit 27f8de3 into main Sep 9, 2026
86 of 87 checks passed
@abnegate
abnegate deleted the chore/base-image-2.0.5 branch September 9, 2026 06:04
@ChiragAgg5k ChiragAgg5k mentioned this pull request Sep 10, 2026
2 of 4 tasks
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.

1 participant