# Security updates: the fast path **Status:** proposal for the maintainers to adopt. Written 2026-11-23. Taper normally waits before adopting a new dependency release, because new releases are where supply-chain attacks land. That wait is wrong when the release fixes a known flaw that puts users at risk. This document describes the exception: when it applies, what must be shown, who decides, what must still pass, and how we tell people. ## The 14-day rule, and how it is enforced today The rule is rule 3 in [`DEPENDENCIES.md`](../DEPENDENCIES.md): "No release under 14 days old." It says to use `npm install --before=` for npm packages, and to hold Python packages back with `pip-compile -P name==previous`. Comments in `scripts/requirements.txt` and `scripts/sbom/requirements.txt` repeat it. **It is only a policy.** Nothing enforces it: - There is no `.npmrc` setting, no `min-release-age` option and no `--before` in any script. - The local gate (`scripts/ci/gate.sh` and `scripts/ci/gate.d/sbom.sh`) has no step that checks a dependency's release date. The SBOM check confirms that the SBOMs are current and that `DEPENDENCIES.md` lists every direct dependency. It doesn't look at ages. - What does protect against a bad new release is exact pinning with integrity hashes (npm lockfiles, `pip install --require-hashes`, `go.sum`), and the Containerfile pinning the Node image by digest. Those stop a *silent* change. They don't stop us from choosing a new, bad version. So the exception below is a rule people follow, not a switch in the gate. The [release checklist](release-checklist.md) has a row for making the gate check the rule, with the exception recorded in `DEPENDENCIES.md`. ## What the rule covers, and what it doesn't The 14-day rule applies to what Taper chooses and pins: npm packages, Python packages, Go modules and the Node base image. It doesn't apply to software the user or operator installs from their distribution (the desktop app has no Python packages of its own; see `DEPENDENCIES.md`). For those, the distribution's security channel decides the version. What Taper can do for them is tell people to update. ## Which dependencies qualify The fast path is for software that ships to users, runs on a server, or reads data from outside. Build and test tools don't qualify. They go through the normal rule. | Dependency | How we get it | What a fix means | |---|---|---| | **WebKitGTK** (`gir1.2-webkit-6.0`) | The user's distribution | We can't ship it. Update the tested version in `DEPENDENCIES.md` and `desktop/README.md`, and tell users to update their system | | **Tor** (`tor`) | The user's or operator's distribution | Same. Also tell operators who run onion services | | **lyrebird** and **snowflake-client** | The distribution | Same | | **Node.js, including its bundled OpenSSL** | The operator: system Node, or the pinned image in `deploy/Containerfile` | Bump the image digest in the Containerfile and the SBOM. Tell systemd operators to update Node | | **Crypto WebAssembly libraries**: `@matrix-org/matrix-sdk-crypto-wasm` (vodozemac and the Rust SDK's crypto) | npm, exactly pinned in `client/package-lock.json` | A new pinned version, shipped in the web client and the desktop bundle | | **OPAQUE library**: `@serenity-kit/opaque` (opaque-ke) | npm, used by the client and the server | A new pinned version in both | | **`ws`**, the server's WebSocket library | npm | A new pinned version | Not covered here: ESLint, Playwright, Hugo, `@redocly/cli`, PostCSS and the Python tooling. They never reach users. Their fixes follow the normal rule. ## What evidence is required An exception needs all of these, written down in the change (the commit message and the new row in `DEPENDENCIES.md`): 1. **An identifier from someone else.** A CVE, a GHSA, a RUSTSEC entry, a distribution advisory (DSA, USN), a Tor Project or Node.js security announcement. Our own suspicion isn't enough, unless it is a flaw in Taper's code (see the end of this document). 2. **That we are affected.** The version we run is in the advisory's range, and the vulnerable code is reachable in how we use it. Say how, in a few lines. If it is not reachable, use the normal rule. 3. **The fix is the one that was advertised.** Because fast updates are what an attacker would impersonate, check the release before adopting it: - read the difference between our current version and the new one, and confirm it contains the fix and nothing unexplained; - for npm packages, confirm that the tarball comes from the expected publisher and matches the upstream source tag; - for the crypto and OPAQUE libraries, which contain compiled WebAssembly, rebuild from source if the project can, or at least compare the published build with the source release, and say which one was done; - note who published the release and when. 4. **A second look.** See below. ## Who may approve **Two maintainers**, neither of whom is the only author of the change: [MAINTAINERS: names and how each is reached]. The approvals are recorded in the commit trailers or the pull request [MAINTAINERS: fill in how, since Taper doesn't use GitHub]. Until Taper has two maintainers with signing keys (a row in the release checklist), this process can't be followed as written. [MAINTAINERS: decide and write down the interim rule. For example, one maintainer ships it and a named outside person reviews within 24 hours.] ## What must still pass The exception skips only the waiting. Every other check still runs, with nothing skipped: 1. **The full local gate**, `scripts/ci/gate.sh`. Not `--staged`, and not with `--no-verify`. The gate needs Chromium (the browser test), Xvfb and the GTK libraries (the desktop test); a skipped step is not a pass. If the update touches Tor, lyrebird or Snowflake, also run it with `TAPER_LIVE_TOR=1`. 2. **SBOM regeneration**: `env/sbom/bin/python scripts/sbom/generate.py`, and the committed SBOMs in `sbom/` updated. The gate fails if they are stale. 3. **The `grype` scan.** The gate runs `grype` on each SBOM and fails on High or Critical findings. A fix for a High or Critical flaw in an npm package should make this step pass. Two limits: - `grype` can't see the Rust crates inside the WebAssembly libraries (a known gap in `DEPENDENCIES.md`), so for the crypto and OPAQUE libraries a clean scan proves nothing. The advisory itself is the evidence. - Distribution packages (WebKitGTK, Tor) are matched by CPE, and may miss distribution-specific advisories. 4. **Update `DEPENDENCIES.md`**: the new version, and a dated row in an "Exceptions" table recording the advisory, the approvers and the reason. 5. **The normal rule returns.** The next update to that dependency goes back to the 14-day rule. ## How fast Targets, from the moment the evidence in step 1 exists [MAINTAINERS: confirm]: | Severity | Target | |---|---| | Critical, or already being used against people | Release within 48 hours. If it can't be fixed that fast, say so and publish what to do in the meantime | | High | Release within 7 days | | Anything lower | The normal rule | These are aims. A release that's rushed and wrong is worse than one that's a day late. If a check fails, we say so and don't skip it. ## How the fix is announced The announcement goes out at the same time as the release. It says: - what is affected, and which versions; - what the flaw lets someone do, in plain words; - what to do, by role (below); - the identifier (CVE, GHSA or distribution advisory); - how to check you have the fix; - thanks to whoever reported it, if they agree. It doesn't give a recipe for an attack. **Operators.** Taper has no list of operators and no telemetry, so we can't tell them directly. They hear it through: - a signed notice at [MAINTAINERS: fill in a place, and a way to subscribe that doesn't need an account on a service the operators don't use] and the security section of the project's page; - the note in `deploy/README.md` pointing to it. For operators the action is usually: rebuild the container from the new image, or update Node and the `server/` and `client/` files, and restart. For a distribution package such as Tor, update it with the system. **Desktop users.** Through the update notice (`desktop/taper_desktop/updates.py`): the desktop app fetches `latest.json` and `latest.json.sig` over Tor, checks the Ed25519 signature, and shows a banner if the version is newer. It never updates itself. The release note for a security update says so (a `security` flag shows "(security update)" in the banner), and says whether the fix is in Taper or in a system package the user must update. The notice is **off until a packager provides `update-url` and `release-key` files beside the code (or `TAPER_UPDATE_URL` and `TAPER_UPDATE_KEY`)**, and no release address or signing key exists yet: that is a task for a person (see the release checklist). It needs `python3-cryptography`; without it no notice is shown. Users who turned the check off with `TAPER_NO_UPDATE_CHECK=1` (or `~/.config/taper/no-update-check`) won't see it, so the announcement above also goes to the places they read. Until the address and key exist, this path does not work and the announcement is the only channel. **Web users.** The server hosts the web client, so the operator's update is the users' update. Operators must update the client files too. Nothing tells a web user that their server is behind. [MAINTAINERS: decide whether the server should report its version in its release note.] **Not done:** the app doesn't check which version of WebKitGTK or Tor the system has, so it can't warn about an outdated system library. ## After the update - Add the entry to the exceptions table in `DEPENDENCIES.md`. - If the evidence or the diff review showed something odd, say what. - Check whether the same weakness exists elsewhere in Taper. - Record how long it took against the targets, and what slowed us. ## If the flaw is in Taper's own code This document is for dependencies. A flaw in Taper's code goes through the reporting process in [`SECURITY.md`](../SECURITY.md), which is drafted and has no contact or key yet [MAINTAINERS: fill in]. The fix and the announcement follow the rest of this page: two maintainers, the full gate, an announcement at the same time as the release. ## Open questions - Should the gate check dependency ages, so the 14-day rule stops being only a policy? If so, where does it get a release date offline? - Should the signed release note carry a "minimum safe version" that the desktop app can show as a stronger warning? - How does the project reach operators without keeping a list of them?