Yopass
- site : https://yopass.se/
Yopass 16.3.0
Yopass now tells you when your secret has been picked up: email notifications arrive the moment a secret is opened or a secret request is answered. It also includes a round of security hardening and bug fixes from a review by Anthropic's OSS Scanner. Upgrade the server and CLI as usual. Nothing needs migrating, but some limits are stricter now: read Upgrade notes before you upgrade.
📬 Know when your secret was opened
Sharing a secret used to end with a question: did they get it? Now Yopass emails you the answer. (Email notifications docs, #4223)
- Tick "Email me when the secret is opened" when you share a text or file. You get one mail the first time it's opened, even for secrets that can be opened several times.
- Tick "Email me when the secret is provided" on a secret request, and you get a mail as soon as someone answers it. No more refreshing the Requests page.
- Give it a label, such as "Prod DB password", so you can tell your secrets apart in your inbox.
- Nothing sensitive leaves the server. The mail never contains the secret link, the decryption key or who opened it, only that it happened and when. Your address is stored encrypted next to the receipt or request and deleted as soon as the mail is due.
- Only verified addresses. Mail goes to the signed-in user's address as verified by your identity provider. Nobody can type in someone else's address, and API tokens can't opt in.
Setup takes one SMTP server: set --smtp-host and --smtp-from, plus --smtp-user/--smtp-password if your relay needs them. TLS is required by default. Email notifications are a licensed feature and need OIDC sign-in; they're available in the Rust server, which is the default image. See the docs for every option and what a mail looks like.
Security
This release addresses 40 findings from a review by Anthropic's OSS Scanner. None of them exposes a secret's contents or decryption key, and none rates higher than medium. Most are about resource limits: a deliberately crafted secret, request or connection could slow a browser tab or CLI, or use more server memory or connections than it should.
| Medium | Low | |
|---|---|---|
| Current stack: Rust server, web client, Rust CLI | 18 | 11 |
| Legacy Go server and Go CLI only | 7 | 4 |
If you run the default image (the Rust server) and the Rust CLI, the legacy-only findings don't apply to you. The advisories linked below are published together with this release.
Web client and CLIs
- Decryption runs off the page. The browser decrypts text secrets, request answers and files up to 64 MiB in a Web Worker and stops after 30 s with "took too long to decrypt", so a crafted message can no longer freeze the tab. If the worker can't start, decryption falls back to the page with the same limits. (GHSA-g526-vjfg-h6r7)
- Crafted secrets and secret requests are refused earlier in the browser. (GHSA-g526-vjfg-h6r7)
- The web client ignores signature packets embedded in a downloaded file, and reads files up to 64 MiB from bytes rather than as a stream.
- It caps the number of session key packets in a request answer at 8, and accepts only Curve25519 keys for secret requests.
- Key derivation cost is now capped over all key packets of a message: 16 Argon2 passes in total, a bounded iterated-S2K count, and iterated S2K only with SHA-1 or SHA-2.
- Decrypted text over 10,000 characters shows only its beginning plus a notice. Copy still copies everything.
- Rust CLI decryption is bounded. Each compressed layer may inflate to about 1 MiB. At most about 64 KiB of packets may come before the data, and a message may carry at most 8 signatures. (GHSA-r2m5-7j39-2j5p)
- Both CLIs only send the API token to the server it was configured for. The token is sent only when it comes from the same place as
api, or a more specific one (flag over env var over config file). Following the CLI's "set --api and --url" advice for a link from another instance no longer hands that instance your token. (GHSA-266j-fjgq-m659) - Both CLIs refuse a secret ID from the server that isn't letters, digits and
-, so a hostile server can no longer make the CLI print a spoofed link. (GHSA-27vx-f8qc-5vx7) - CLI errors no longer contain the request URL. The Rust CLI's error for an
--apiwithout a scheme, and the Go CLI's network errors, used to include the secret ID or--apicredentials. (GHSA-4h65-j69c-9vx9)
Rust server
- HTTP/2 resource limits. These apply when HTTP/2 reaches the server directly, through built-in TLS or h2c. (GHSA-cf69-33j6-56p6)
- Each stream's send buffer is capped at 16 KiB.
- A connection runs at most 16 concurrent streams, and the connection cap now budgets a file descriptor for each of them.
- A response that makes no write progress is cut after 30 s, or at
--request-timeout, which now covers response writes as documented. - A stalled stream is reset on its own; other streams on the same connection keep going.
- Detached handlers are bounded per connection and across the listener (at most 4096). When full, new requests wait for a slot.
/healthand/readyhave their own small pool so probes don't queue behind them.
- OIDC sign-in is bounded. At most 32 code exchanges run at once, with up to 1024 more waiting up to 10 s. Past that,
/auth/callbackanswers 503. The provider connection pool keeps at most 4 idle connections. (GHSA-cf69-33j6-56p6) - Redis Sentinel failover is followed. When Sentinel announces a new primary, the server stops using the old primary and connects to the new one, so a one-time secret can't be read twice through the old primary. (GHSA-22mh-86r3-96pc)
- Audit log client IP:
X-Forwarded-Forhops are read one at a time, so a non-ASCII hop no longer hides the client IP. The access log fingerprints the decoded secret ID. (GHSA-q65w-xqc6-8mqm) - No secrets in logs: S3 errors no longer include the raw response, which could contain file IDs, or the cleanup continuation token. A TLS key file without line breaks is no longer echoed in startup errors. (GHSA-4h65-j69c-9vx9)
- Disk uploads that are cancelled at any step clean up after themselves. (GHSA-33jc-h2vf-8xq9)
- At most 4 database-backed file loads run at once, so concurrent downloads of one file no longer multiply memory.
Both servers
- Signing in again revokes the previous session, so a copied old session cookie stops working. (GHSA-mrx2-25g9-w3m6)
- Session and login cookies use the
__Host-prefix over HTTPS, so a sibling subdomain can no longer plant cookies that make sign-out revoke the wrong session. Behind a TLS-terminating proxy this needsX-Forwarded-Proto: https. (GHSA-qr74-mc2p-5f84) - Receipt checks take the same time whether or not a receipt exists. The token is hashed in both cases. (GHSA-crj6-h8g9-qvxr)
- One-time claims recover on fresh connections after a connection failure, on Redis in both servers, and a Memcached claim that gives up is fenced so it can't apply later.
- Read receipts need a database that doesn't evict. Memcached, or Redis with an evicting
maxmemory-policy, can drop a receipt before its secret is opened, and the retrieval then goes unrecorded. Read receipts now says which backends are safe. Many managed Redis services default tovolatile-lru; setnoevictionif you rely on receipts.
Legacy Go server and Go CLI
These apply only if you still run the Go server (jhaals/yopass:go), the Go CLI, or use the pkg/yopass Go package.
- The Go CLI and
pkg/yopassparse only the packets a password-encrypted message needs. Key, user ID and nested encrypted packets are refused, so a crafted RSA key packet can no longer stall decryption. The Argon2 memory cap now also covers key packets hidden in partial-length Padding packets. (GHSA-74h3-7xpj-f4x8) - The Go client library refuses messages that were never encrypted, so whoever controls storage can no longer substitute a secret's content. (GHSA-2j49-3389-xggc)
- Request bodies nested deeper than 32 levels are refused with 400 before parsing. (GHSA-42cq-qpj9-36m5)
- Secret request answers are capped by their stored size, so HTML escaping can no longer inflate a stored record 7×. An oversized answer gets 413 for a file and 400 for text, and the request stays pending. (GHSA-42cq-qpj9-36m5)
- HTTP/2 frames are capped at 16 KiB on the application and metrics listeners. (GHSA-42cq-qpj9-36m5)
- Trusted proxies are compared as IP addresses, not text, so the audit log no longer records the proxy as the client. (GHSA-q65w-xqc6-8mqm)
- S3 cleanup errors no longer log the continuation token. (GHSA-4h65-j69c-9vx9)
- The disk sweeper stops 4 directory levels below the store root. (GHSA-33jc-h2vf-8xq9)
- The S3 file store no longer caps connections per host, so slow clients can't queue every other file transfer behind them. (GHSA-42cq-qpj9-36m5)
- The disk file store refuses blobs that are symlinks or not regular files, matching the Rust server.
- At most 4 database-backed file loads run at once.
- With
--request-timeout 0, HTTP/2 responses that make no write progress for 30 s are reset.
New
- Back to the original page after signing in. A recipient who has to sign in to open a secret now lands back on the secret link instead of the home page. The link's key stays in the tab's
sessionStorageduring the round trip and never reaches the server. (#4188)
Fixes
Servers
- One-time claims on cluster-mode Redis and Valkey, such as ElastiCache Serverless, no longer fail with
CROSSSLOT. (#4219) - Rust server OIDC:
- ID tokens with extra audiences are accepted, for example Zitadel's
[client_id, project_id]. Whenazpis present it must name the client. (#4222) - Auth0's RFC 3339
updated_attimestamps are accepted, and aniatmore than 5 minutes in the future is refused. (#4189)
- ID tokens with extra audiences are accepted, for example Zitadel's
- Rust server: an HTTP/2 connection that only sends PINGs is now closed by the idle timeout.
- Rust server:
LOG_LEVELaccepts the Go server's names (warning,dpanic,panic,fatal). An unknown level such asverbosenow stops startup instead of silently turning off all logging. An empty value meansinfo. - Rust server: the disk store deletes expired files on filesystems that don't record entry types, such as ext4 without
filetypeor XFS withftype=0. - Rust server: after a network interruption, a one-time secret whose claim reply was lost is delivered instead of lost, on Memcached and on a single Redis server. The run of 503s after such an interruption is gone.
- Go server:
DELETE /secret/{key}andDELETE /file/{key}answer 500 instead of 404 when the database fails, matching the Rust server. - Both servers: when
--frontend-urlis set, a cross-origin request refused with 403 now writes adeniedaudit line.
Web client
- Sign out works when
--frontend-urlis set. - The Requests page keeps showing statuses when
localStorageis full, and "View secret" no longer loses the answer. - Importing a secret request whose ID is already in the list with a different key or token is refused. Choose "Remove from list" first to replace it.
- An imported request with an oversized label or ID is refused instead of hanging the Requests page on every visit.
- Runs of wide blank characters in a received filename are saved as a single space, and long filenames wrap on the File Downloaded card.
CLIs
- Rust CLI: requests time out after 30 s of silence, or 10 minutes for file uploads and downloads, instead of hanging.
- Rust CLI: reads only the field it needs from server responses, so a large response no longer uses many times its size in memory.
- Both CLIs: gzip-compressed responses are no longer inflated.
- Go CLI:
- Redirects are no longer followed.
- A secret ID with URL syntax (
%2F,..,?,#) is refused. - A malformed link no longer puts the decryption key in the error.
Upgrade notes
-
Session cookies over HTTPS now carry the
__Host-prefix. A reverse proxy that rewrites cookie Path or Domain breaks sign-in. -
Browser decryption stops after 30 s with "took too long to decrypt". Yopass-created secrets decrypt in well under a second; only very costly messages from other tools on slow devices come close.
-
CLI token rule. If you keep only
api-tokenin the config file and giveapiwith--apiorYOPASS_API, the token is no longer sent and the CLI prints a warning. Moveapiinto the config file, or pass--api-token. The Go CLI's built-in defaultapicounts as the lowest-priority source. -
Secret request keys. The web UI answers only requests whose key is Curve25519, which is what it generates. A request created through the REST API with an RSA or other key can no longer be answered in the browser.
-
Stricter refusals of crafted or unusual messages:
- Rust CLI: more than 8 signatures, more than about 64 KiB of packets before the data, or oversized padding inside compression.
- Go CLI: key or user ID packets, unencrypted packets before the ciphertext, or a literal outside its compressed packet.
Messages created by Yopass are not affected.
-
Rust server HTTP/2:
- 16 concurrent streams per connection, down from 100. Browsers queue extra requests; HTTP/2 proxies open more connections.
- At a 4096 file-descriptor limit the connection cap is now 225, down from 1920 (45 at 1024). The server raises its soft limit to the hard limit at startup; raise the hard
RLIMIT_NOFILEon busy instances. - Responses that make no write progress for about 30 s are cut, including for static assets. This matches the Go server's
WriteTimeout.
-
Go server: request bodies nested more than 32 levels deep get 400. Oversized secret request answers get 413 for a file or 400 for text.
-
Rust server
LOG_LEVEL: a target with no level (yopass_server) is refused. Writeyopass_server=trace. -
Go CLI: an
--apithat redirects, for example http to https, is now an error. Use the final URL. -
Go library (
pkg/yopass):- Network errors no longer wrap
*url.Error; useerrors.Unwrapto reach the cause. yopass.HTTPClientis no longerhttp.DefaultClient. A replacement client must setCheckRedirectitself.Fetch*return the newErrInvalidIDfor invalid IDs.
- Network errors no longer wrap
-
Limits that remain:
- In the browser, files over 64 MiB still decrypt as a stream on the page, so a crafted large file on an instance with a raised
--max-file-sizecan still slow the tab. - The Go CLI has no request timeouts.
- Memcached claims in both servers now fence an abandoned claim; Redis and DynamoDB claims don't yet.
- With both Go timeout flags at 0, error replies Go's HTTP library sends before any handler runs still have no write deadline.
- In the browser, files over 64 MiB still decrypt as a stream on the page, so a crafted large file on an instance with a raised
-
Downloads: the web client now loads OpenPGP.js a second time, inside the decryption worker (about 375 kB).
Thanks to Anthropic's OSS Scanner for the reports.