Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(modly): record the host requirements security bump (certifi, cryptography, python-multipart, pytest) in the changelog and retire its work order

nirholas558110b7a62a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 771b15b5c..31cd7dada 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,6 +13,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **GET /api/crypto/bonding's last-known-good cache now survives a full RPC-lane cooldown, not just 30 minutes**: The last-known-good tier behind /api/crypto/bonding (added to survive a pump.fun Cloudflare block) kept each mint's cached bonding-curve status for only 30 minutes, far shorter than the outages it exists to cover: the Solana RPC lane cooldown runs up to 6 hours once a lane exhausts its quota, and the pump.fun Cloudflare block it was built for has stayed up for multiple days straight. Once both the 25-second live cache and the 30-minute backup expired during one of those outages, the endpoint fell all the way through to a hard 503 on every /launches and /oracle/coin bonding-progress panel. The cache now holds each mint's last good read for 6 hours by default, still overridable with PUMP_BONDING_LKG_TTL_S. (`/docs/api-reference`) `[fix]`
- **GET /api/pump-bounties and its stats/detail routes serve last-known-good data instead of a 502**: pump.fun's Cloudflare anti-bot challenge has been rejecting livestream-api.pump.fun's bounty API for hours at a time, which left the bounty list, the aggregate stats, and individual bounty detail pages 502ing for every visitor even though the board itself had not changed. All three routes now go through the same last-known-good cache tier already proven on /api/portal and /api/crypto/bonding: a fresh answer is mirrored into a 24-hour backup, and that backup answers (flagged with an x-pump-stale header) instead of a 502 once the live fetch fails. A true miss, with nothing cached at all, still returns the original pump.fun error unchanged. (`/bounties`) `[fix]`
- **Image-to-3D Forge instances recycle before a VRAM leak crashes a job**: The trellis lane's GPU worker already restarted itself between jobs once host memory ratcheted up, but had no equivalent check for GPU memory: a rasterizer dependency allocates outside torch's own memory pool, so an instance's usable VRAM only ever shrank, and the instance's own health check kept passing right up until a job crashed or Cloud Run killed it mid-generation. The worker now also tracks GPU memory after every job and restarts cleanly between jobs once it has ratcheted far enough, the same way the existing memory guard already does, so Forge image-to-3D jobs on this lane fail or stall less often. (`/image-to-3d`) `[fix]`
+- **Modly 3D-generation worker closes TLS, request-parsing and test-tooling advisories**: The Modly host environment pinned old releases of certifi (a compromised emSign root CA finding), cryptography, python-multipart (multipart DoS and file-write findings) and pytest. All four are now on current releases, and the worker's contract and CPU test suites pass against them. `[fix]`
- **Object-storage outages now answer a clean 503 with Retry-After instead of a raw 500**: When the R2 bucket is unreachable (account disabled, keys rotated, endpoint down), any API route that writes or reads an object without its own error handling, such as avatar upload, used to answer a bare 500 and fire a Sentry event and an unhandled-5xx alert on every request. The shared error boundary now treats a storage fault like a database outage: a 503 service_unavailable with Retry-After, one throttled warning, a single deduped ops alert, and a clean skip for cron ticks. Deliberate 4xx errors and real handler bugs are unchanged. (`/docs/api-reference`) `[fix]`
- **Rate limiter Redis path repaired and its health hint made honest**: The rate limiter had been failing every Redis call because @upstash/ratelimit 2.1+ sends a script flag that self-hosted Redis rejects, so traffic ran on the Postgres fallback while healthz called it transient. The library is pinned to 2.0.8, and this class of fault is now logged and reported as a non-transient script incompatibility. `[fix]`
- **Security hardening across sign-in, uploads, vaults, agents and the chat server**: A source audit led to fixes in many places. Agent updates only link avatars you own, and unpublished agents stay hidden from ask. Handoff, Telegram and SAML sign-ins are bound to the flow that started them, and the walk-avatar extension only accepts a token for a sign-in it began. Vault deposits that would mint zero shares are refunded, and strategy buys reserve against the daily SOL cap atomically. Oracle follow and test alerts need a linked Telegram chat, shown read-only in the panels. Anonymous uploads are size-checked hourly. The local chat server binds loopback and requires a token, and webhook retries re-run after a failed delivery. (`/oracle`) `[fix]`
diff --git a/data/changelog.json b/data/changelog.json
index 628aa7ec5..b94d618db 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,14 @@
{
"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security, desktop (desktop entries become the desktop app's release notes). `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-10-25",
+ "title": "Modly 3D-generation worker closes TLS, request-parsing and test-tooling advisories",
+ "summary": "The Modly host environment pinned old releases of certifi (a compromised emSign root CA finding), cryptography, python-multipart (multipart DoS and file-write findings) and pytest. All four are now on current releases, and the worker's contract and CPU test suites pass against them.",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-10-25",
"title": "Rate limiter Redis path repaired and its health hint made honest",
diff --git a/prompts/finish/450-auto-dependency-cve-modly-host-four-pins.md b/prompts/finish/450-auto-dependency-cve-modly-host-four-pins.md
deleted file mode 100644
index ac506a56f..000000000
--- a/prompts/finish/450-auto-dependency-cve-modly-host-four-pins.md
+++ /dev/null
@@ -1,112 +0,0 @@
-# 450. `workers/modly/requirements-host.txt` carries four stale pins with open advisories, including a CRITICAL cert-bundle issue, and no comment explaining any of them
-
-How to run: paste this file's repo path into a fresh Claude Code chat in this repository and say "run this work order". Runnable now, no gate, no owner action required.
-
-## Operating clause (binding)
-
-- Read CLAUDE.md first. CLAUDE.md overrides everything, including this file.
-- Finish 100% in this session. Never end the turn with a question, an option list, or an unexecuted plan.
-- This is a bug fix (a security defect): follow the test-first rule (CLAUDE.md, "Bug fixes are test-first") as far as it applies. There is no app-level behavior bug to reproduce with a new failing test (this is a dependency-version fix); the equivalent "prove it fails first" step is the OSV scan in step 2 below, run before the bump, then again after.
-- The only permitted stops are the CLAUDE.md stop-and-ask gates (spend/on-chain writes, push/deploy, posting externally, committing content referencing a crypto project other than `$THREE`, destroying unrecoverable data). This order touches none of them.
-- Concurrent agents share this worktree: stage explicit paths only (never `git add -A` or `git add .`), re-check `git status` and `git diff --staged` before committing.
-- The em-dash and en-dash characters are banned in everything you write.
-
-## Why this matters (measured 2026-10-25)
-
-`npm run audit:deps` (the repo's OSV-based Python pin scanner, `scripts/check-deps.mjs`) run today against `workers/modly/requirements-host.txt` reports open advisories against four of its pins, none of which carry any justifying comment in the file (unlike the `transformers`/`diffusers` pins in sibling workers, which do carry deliberate "held back by a base-image constraint" comments; these four have no such note, they are plain oversights):
-
- GHSA-6q48-6c7w-9gw2 [CRITICAL] certifi bundles emSign root CAs with compromised intermediate CA keys
- fixed in 2026.10.19
-
- GHSA-r6ph-v2qm-q3c2 [HIGH] Subgroup attack, missing validation for SECT curves, fixed in 46.0.5
- GHSA-jwv3-5hgf-82ww [HIGH] Duplicate self-signed intermediates cause exponential path-building, fixed in 49.0.0
- GHSA-537c-gmf6-5ccf [HIGH] Vulnerable OpenSSL included in cryptography wheels, fixed in 48.0.1
- GHSA-g6cj-pr64-35w5 [HIGH] PKCS#7 EnvelopedData decryption exposes a Bleichenbacher oracle, fixed in 50.0.0
- GHSA-p423-j2cm-9vmq [MODERATE] Buffer overflow on non-contiguous buffers, fixed in 46.0.7
- GHSA-m2h6-j472-rp4c [MODERATE] Wildcard DNS name verifier escapes permittedSubtrees, fixed in 49.0.0
- GHSA-m959-cc7f-wv43 [LOW] Incomplete DNS name constraint enforcement, fixed in 46.0.6
- (plus PYSEC-2026-2141, the same subgroup-attack finding under its PyPI advisory ID)
-
- GHSA-6w46-j5rx-g56g [MODERATE] Vulnerable tmpdir handling, fixed in 9.0.3
-
- GHSA-wp53-j4wj-2cfg [HIGH] Arbitrary file write via non-default configuration, fixed in 0.0.22
- GHSA-pp6c-gr5w-3c5g [HIGH] Unbounded multipart part headers DoS, fixed in 0.0.27
- GHSA-5rvq-cxj2-64vf [HIGH] Quadratic-time querystring parsing DoS, fixed in 0.0.30
- GHSA-mj87-hwqh-73pj [MODERATE] DoS via large multipart preamble/epilogue, fixed in 0.0.26
- GHSA-vffw-93wf-4j4q [LOW] Content-Disposition parameter smuggling, fixed in 0.0.30
- GHSA-6jv3-5f52-599m [LOW] Semicolon field-separator parameter smuggling, fixed in 0.0.30
- GHSA-v9pg-7xvm-68hf [LOW] Negative Content-Length buffers entire body in memory, fixed in 0.0.31
-
-The file's own header comment states the policy that makes fixing this safe: "Modly's own `api/requirements.txt` lists these packages with lower bounds only; the versions below satisfy every bound it declares." That means every pin in this file is free to move upward; nothing here is held down by Modly's own declared requirements. Current upstream latest (checked today via `pip index versions <pkg>`): `certifi` 2026.10.23, `cryptography` 50.0.2, `pytest` 9.1.1, `python-multipart` 0.0.32.
-
-This worker's backend (Modly, fetched at a pinned commit per `workers/modly/Dockerfile`) and the three.ws front code both run on this requirements file; `cryptography` and `certifi` sit directly on the TLS path every outbound call this worker makes depends on (Hugging Face Hub downloads, GCS uploads, MCP), and `python-multipart` is a declared dependency of Modly's own FastAPI backend for request-body parsing, which is reachable the moment a caller sends a crafted request to that backend. This is the same "hostile-input pass" class `prompts/masters/06-the-adversary.md` calls for: a request-parsing library with open DoS/arbitrary-file-write advisories sitting in front of a backend that serves third-party job requests is exactly the surface that lens says to check first.
-
-Not a duplicate of order 449 (that order is the same scan surfacing a Pillow finding in a different worker, `workers/rembg`, a different package, different file, no overlap) or of the `transformers`/`diffusers` findings already triaged and intentionally left alone across `workers/model-triposg`, `workers/texture`, `workers/model-hunyuan3d`, `workers/modly/requirements-triposg.txt`, `workers/modly/requirements-hunyuan.txt`, and `workers/longcat` (those carry explicit base-image-compatibility comments; the four pins here carry none).
-
-## Task
-
-1. Read `workers/modly/requirements-host.txt` in full (currently ~30 lines) and confirm the four pins named above and the absence of any justifying comment for them.
-2. Before changing anything, run the scanner and capture the "before" state:
-
- npm run audit:deps 2>&1 | tee /tmp/audit-deps-modly-before.log
- awk '/^[a-zA-Z0-9_.-]+@[0-9A-Za-z.+-]+$/{pkg=$0} /in: workers\/modly\/requirements-host.txt/{print pkg}' /tmp/audit-deps-modly-before.log | sort -u
-
- Confirm it lists `[email protected]`, `[email protected]`, `[email protected]`, `[email protected]` (counts may drift slightly from this order's writing if OSV added or reclassified entries; that does not change the fix).
-3. Edit `workers/modly/requirements-host.txt`: bump the four pins to a version that clears every advisory above:
- - `certifi==2025.8.3` to `certifi==2026.10.23` (fixes the CRITICAL emSign finding; pure CA-bundle data update, no API surface).
- - `cryptography==45.0.7` to `cryptography==50.0.2` (clears every HIGH/MODERATE/LOW listed above; use the latest stable rather than stopping at the lowest fixed version, consistent with the Pillow precedent in order 449 and in the sibling worker files that are already on current pins).
- - `pytest==8.3.5` to `pytest==9.1.1` (clears the tmpdir advisory; this is the only `pytest==` pin anywhere in `workers/`, `services/`, or `packages/`, confirmed via `grep -rn "^pytest==" workers/*/requirements*.txt`, so there is no cross-worker consistency constraint to preserve).
- - `python-multipart==0.0.20` to `python-multipart==0.0.32` (clears every advisory above).
- Add a short comment above the block (matching the file's existing section-header style) noting these four are kept current because nothing in this file is held down by Modly's declared lower bounds, per the header comment already in place.
-4. Re-run the scanner and capture the "after" state:
-
- npm run audit:deps 2>&1 | tee /tmp/audit-deps-modly-after.log
- awk '/^[a-zA-Z0-9_.-]+@[0-9A-Za-z.+-]+$/{pkg=$0} /in: workers\/modly\/requirements-host.txt/{print pkg}' /tmp/audit-deps-modly-after.log | sort -u
-
- Confirm none of the four packages appear in this output for `workers/modly/requirements-host.txt` anymore.
-5. Verify the bump installs and the host-side code still works, without the full GPU/CUDA image build (that build also clones and compiles two separate extension repos and pulls a multi-GB CUDA devel base image; it is disproportionate to a version-only pin bump and is not required here, since none of these four packages touch torch or CUDA). In a throwaway virtualenv:
-
- python3 -m venv /tmp/modly-host-venv
- /tmp/modly-host-venv/bin/pip install -r workers/modly/requirements-host.txt
- /tmp/modly-host-venv/bin/python -c "import certifi, cryptography, pytest, multipart; print(certifi.__version__, cryptography.__version__, pytest.__version__, multipart.__version__)"
-
- Confirm it prints `2026.10.23 50.0.2 9.1.1 0.0.32` (or whatever the current latest resolved to) with no install errors.
-6. Run the front's own CPU-only test suite against that venv, since this is the real exercise of the bumped stack end to end (FastAPI/Starlette request handling via `httpx`/`python-multipart`, the TLS stack via `cryptography`/`certifi`, pymeshlab/trimesh/numpy via `pytest`):
-
- cd workers/modly
- MODLY_CONTRACT_REQUIRE_BACKEND= /tmp/modly-host-venv/bin/python test_app_contract.py
- /tmp/modly-host-venv/bin/python -m pytest test_postprocess.py test_request_policy.py test_storage_backend.py -q
-
- `test_app_contract.py` must print only Part A's passes and exit 0 (Part B is skipped since `MODLY_CONTRACT_REQUIRE_BACKEND` is unset, matching how the file documents running outside Docker). All three pytest files must pass. If anything fails, read the failure, it is either a real incompatibility (fix forward, e.g. a pytest 9 collection change) or an environment gap (missing system lib for pymeshlab); do not skip the fix to avoid diagnosing it.
-7. Remove the throwaway venv (`rm -rf /tmp/modly-host-venv`) so it leaves no artifacts.
-8. Run `npm run check:rules -- --paths workers/modly/requirements-host.txt` and fix anything it flags.
-9. Add a `data/changelog.json` entry (tag `fix`) noting the Modly 3D-generation worker closed a batch of TLS, request-parsing, and test-tooling security advisories, matching the style of the entry order 449 adds, then run `npm run build:pages` and confirm only the expected generated files change.
-10. Read the full diff (`git diff workers/modly/requirements-host.txt data/changelog.json`) and confirm every changed line is one of the four version bumps, the new comment, and the one changelog entry.
-
-## Done when
-
-- `workers/modly/requirements-host.txt` pins `certifi==2026.10.23`, `cryptography==50.0.2`, `pytest==9.1.1`, `python-multipart==0.0.32` (or whatever was current latest at fix time if this order runs later than written), each clearing every advisory listed above.
-- `npm run audit:deps` no longer reports any of the four packages against `workers/modly/requirements-host.txt` (before/after logs captured).
-- A throwaway venv with the new requirements installs cleanly and prints the expected versions.
-- `test_app_contract.py` Part A and the three CPU-only pytest files (`test_postprocess.py`, `test_request_policy.py`, `test_storage_backend.py`) all pass against the bumped stack.
-- The throwaway venv is removed.
-- `npm run check:rules -- --paths workers/modly/requirements-host.txt` reports no violations.
-- A changelog entry exists and `npm run build:pages` ran cleanly.
-- Nothing outside `workers/modly/requirements-host.txt`, `data/changelog.json`, and the generated `public/changelog*`/`CHANGELOG.md` files changed.
-
-## Never blocked
-
-| Apparent blocker | Resolution |
-| --- | --- |
-| "Bumping pytest 8 to 9 is a major version, might break test collection." | Verify by running the three pytest-based suites listed in step 6 against the bumped version. If a collection or fixture incompatibility surfaces, it is a real, fixable issue (adjust the affected test), not a reason to hold the pin back; pytest is a test-only dependency here, never shipped on a request path. |
-| "The full Modly Docker image build would exercise this more thoroughly." | True but disproportionate: that build pulls a multi-GB CUDA devel base image and compiles two extension repos, none of which touch these four packages. The venv-based verification in steps 5 to 6 exercises the actual code paths (FastAPI/Starlette, TLS, pymeshlab/trimesh) that these packages serve. The full image build happens naturally at the next real deploy and is not gated by this order. |
-| "python-multipart isn't imported directly in this worker's own main.py." | Correct, it backs Modly's own fetched FastAPI backend, not the three.ws front's code. The version bump and the advisories it closes apply regardless of which side exercises it; verifying via `test_app_contract.py` (which calls into the installed FastAPI/Starlette stack) is the correct host-side check available without the full backend build. |
-| "Should certifi/cryptography go further than the lowest fixed version?" | Already done: use current latest (`50.0.2` / `2026.10.23`), not the lowest version that merely clears the listed advisories, consistent with order 449's Pillow bump and the already-current sibling worker pins. |
-
-## Report format
-
-State: the four old and new pin versions, the before/after `audit:deps` findings for this file, the venv install result, the `test_app_contract.py` and pytest results (pass counts), the `check:rules` result, and the commit hash.
diff --git a/public/changelog-recent.json b/public/changelog-recent.json
index ca6bc5e5c..940296abe 100644
--- a/public/changelog-recent.json
+++ b/public/changelog-recent.json
@@ -1,11 +1,11 @@
{
- "generated_at": "2026-10-25T11:58:03.204Z",
+ "generated_at": "2026-10-25T11:58:51.013Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
- "total": 4202,
+ "total": 4203,
"complete": false,
"full_feed": "/changelog.json",
"entries": [
@@ -79,6 +79,16 @@
"fix"
]
},
+ {
+ "date": "2026-10-25",
+ "type": "update",
+ "title": "Modly 3D-generation worker closes TLS, request-parsing and test-tooling advisories",
+ "summary": "The Modly host environment pinned old releases of certifi (a compromised emSign root CA finding), cryptography, python-multipart (multipart DoS and file-write findings) and pytest. All four are now on current releases, and the worker's contract and CPU test suites pass against them.",
+ "link": null,
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-10-25",
"type": "update",
@@ -1547,17 +1557,6 @@
"feature",
"docs"
]
- },
- {
- "date": "2026-10-13",
- "type": "update",
- "title": "The Home Assistant integration is ready for the HACS default store",
- "summary": "home-assistant-integration/ now validates clean against the real hassfest and HACS checks: manifest.json's documentation link fixed (it 404'd), version bumped to 1.0.1, and hacs.json's minimum Home Assistant version corrected to 2024.12.0 (the first release bundling the aiohttp.ClientWSTimeout the integration's relay client uses, confirmed against HA's own package_constraints.txt). It now ships its own local brand icons at the sizes both HACS and home-assistant/brands require. A new scripts/export-hacs-repo.mjs builds the exact standalone-repository tree (integration, README, LICENSE, hacs.json, and the two validation workflows, which exist only in that exported tree since this monorepo runs no GitHub Actions of its own) ready to push to a new repository. Verified end to end against a real Home Assistant container through its real config flow and a real services/home-relay server: 18 real entities, a confirmed auto-reconnect after a relay restart, and a documentation fix to the connectivity sensor's entity ID along the way. Creating the standalone repository and opening the hacs/default and home-assistant/brands pull requests are owner actions; submission text is ready in marketing/growth/submissions/home-assistant.md.",
- "link": "/docs/home-relay",
- "tags": [
- "improvement",
- "docs"
- ]
}
]
}
diff --git a/public/changelog.json b/public/changelog.json
index d257e5494..f72441876 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-10-25T11:58:03.173Z",
+ "generated_at": "2026-10-25T11:58:50.978Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -76,6 +76,16 @@
"fix"
]
},
+ {
+ "date": "2026-10-25",
+ "type": "update",
+ "title": "Modly 3D-generation worker closes TLS, request-parsing and test-tooling advisories",
+ "summary": "The Modly host environment pinned old releases of certifi (a compromised emSign root CA finding), cryptography, python-multipart (multipart DoS and file-write findings) and pytest. All four are now on current releases, and the worker's contract and CPU test suites pass against them.",
+ "link": null,
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-10-25",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 155ebba04..a383b16de 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -62,6 +62,14 @@
<category>fix</category>
<description>The trellis lane's GPU worker already restarted itself between jobs once host memory ratcheted up, but had no equivalent check for GPU memory: a rasterizer dependency allocates outside torch's own memory pool, so an instance's usable VRAM only ever shrank, and the instance's own health check kept passing right up until a job crashed or Cloud Run killed it mid-generation. The worker now also tracks GPU memory after every job and restarts cleanly between jobs once it has ratcheted far enough, the same way the existing memory guard already does, so Forge image-to-3D jobs on this lane fail or stall less often.</description>
</item>
+ <item>
+ <title>Modly 3D-generation worker closes TLS, request-parsing and test-tooling advisories</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-10-25:Modly 3D-generation worker closes TLS, request-parsing and test-tooling advisories</guid>
+ <pubDate>Sun, 25 Oct 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>The Modly host environment pinned old releases of certifi (a compromised emSign root CA finding), cryptography, python-multipart (multipart DoS and file-write findings) and pytest. All four are now on current releases, and the worker's contract and CPU test suites pass against them.</description>
+ </item>
<item>
<title>Object-storage outages now answer a clean 503 with Retry-After instead of a raw 500</title>
<link>https://three.ws/docs/api-reference</link>