Changelog

All versions and downloads Jump to Added | Changed | Fixed | Security

Unreleased [Not released yet]

Part 15 of 15. Previous part

Security (152)

  • A streamed page ({#await}) is gzip only when its page says const COMPRESS: bool = true;, by the rule of a whole COMPRESS answer. A cache-control with no-transform keeps it as it is. Before, Wisp gzipped each streamed page for a client that took gzip, with or without COMPRESS, and also with no-transform. A streamed page without COMPRESS now goes as it is, with no vary: accept-encoding. An app that used the gzip of such a page must set COMPRESS on it. A PPR page is never gzip now. A COMPRESS answer reads no-transform as a directive in a comma list, in any case. x-no-transform no longer counts. It also reads the headers that cx.set_header set: a no-transform or a content-encoding there keeps the answer as it is. Before, Wisp read only the headers of the Response. after in src/hooks.rs runs after this choice, so a no-transform that it sets does not change it.
  • svg: limits on links and filter numbers. The Svg sanitizer refuses (a 422) a document with more than 64 <use> elements, a chain of more than 8 links, or a link loop. It also refuses links that add more than 20,000 elements. A link is a <use>, a url(#id), or the href of a gradient, pattern, filter, text path or image. The count multiplies down a chain of links. A marker-mid counts once for each vertex of the shapes below it. It refuses a url( that it cannot read as a link to a fragment. It refuses a numOctaves, baseFrequency, order, stdDeviation or radius number above 10, 10, 8, 100 or 100. It also refuses a value of one of them that is not a list of numbers. The 422 names the limit and the number found (or says that it is too large to count). The 422 of a link loop or of a url( that Wisp cannot read says so. Before, a small document could grow to a large tree in the viewer, which may cost much CPU or memory. These limits are Wisp choices, not browser limits. Wisp also deletes a style declaration with an unclosed (.
  • A cookie whose name starts with __Host- (in any case) always gets Secure and Path=/, also under WISP_BASE. A __Secure- cookie always gets Secure. A __Host- cookie with a domain drops, with the log line wisp: dropped cookie "<name>": a __Host- cookie cannot have a Domain once for each name. Before, only a __Host- cookie under WISP_BASE got Path=/, so a browser could drop the others with no sign.
  • wisp deploy init writes a workflow that pins each action to a full commit SHA, with the tag in a comment. For dtolnay/rust-toolchain, the SHA is a commit of its stable branch. Before, uses: named a tag or a branch, and the owner of the action could move it.
  • wisp deploy init no longer runs wrangler, vercel and netlify-cli with npx --yes. The command writes deploy/package.json with the exact version (wrangler 4.156.0, vercel 65.8.0, netlify-cli 27.16.1). The workflow runs npm ci with your deploy/package-lock.json, so the packages under the tool are locked too. Before npm ci, it sets Node.js 22 with actions/setup-node, as wrangler 4.156.0 (node >=22.0.0) and netlify-cli 27.16.1 (node >=22.13.0) need Node.js 22. vercel 65.8.0 asks for node >= 20. The source is the engines field at https://registry.npmjs.org/<package>/<version> (npm view, 2026-11-25).
  • The workflow of wisp deploy init puts each secret and variable in env: or with:. No run: command holds a ${{ }} expression. Before, the Vercel token was also in the command line, and the Deno and Lambda steps put a variable in the command text.
  • The release workflow fails when the tagged commit is not on main. Before, a tag on any commit ran the full publish.
  • Each uses: line of the workflows names a full commit sha, with the tag as a comment. Before, a mutable tag (checkout@v4, upload-artifact@v3, download-artifact@v3) chose the code that ran on the runner. scripts/mirror-workflows.py fails on an action without a pin.
  • The VS Code publish tokens (VSCE_PAT, OVSX_PAT) are not in the environment of an npm install or of the repo tests. The same holds for the Cloudflare tokens of the docs deploy. scripts/npm-tools holds @vscode/vsce, ovsx and wrangler with a package-lock.json that has an integrity hash for each package, and npm ci --ignore-scripts installs it with no token. Before, npx --yes installed the tools and their unlocked dependencies with the tokens in the environment. In docs-deploy.yml, DOCS_TOKEN is only in the step that clones wisp-docs and in the step that runs git ls-remote. The Deploy step no longer has it.
  • The crates job builds the five crates with cargo package in a step that has no CARGO_REGISTRY_TOKEN. Only the next step has the token, and it runs only cargo info and cargo publish --no-verify. Before, the build scripts and proc macros of the publish build ran with the token in the environment.
  • A ?page=N far past the end of a large table (Table::page) or a REST list with a large offset skips rows by whole chunks. Before, each request walked every skipped row while it held the read lock of the table.
  • wisp::sign_out_everywhere fails with a 500 when the count of the visitor is at the top of u64 (a corrupt store), and keeps the row. Before, the count overflowed: a debug build panicked, and a release build wrapped to 0, which let a signed out session pass again.
  • The sessions docs say: check a password with Password::check, never ==. It compares in constant time (wisp::secure_eq).
  • On AWS Lambda behind an ALB, the client address is the last entry of the last x-forwarded-for line, the address that the ALB appends in its default append mode. An entry with a port also counts. Before, every ALB client had the address 127.0.0.1, so RATE_LIMIT and cx.limit counted all clients as one visitor. When that entry is not an address, the address stays 127.0.0.1, and Wisp logs one line once. A Function URL and API Gateway keep sourceIp, and Wisp does not read their x-forwarded-for. When you set WISP_CLIENT_IP_HEADER, it still wins.
  • On AWS Lambda, an .onion Host never makes a request a Tor request (WISP_ONION unset or auto). The peer comes from the event, and 127.0.0.1 is only its fallback. Before, an ALB client that sent an .onion Host got the Tor rules: a ticket in place of its address.
  • or_status on an Err with a 4xx status sets the message to the name of the status. Before, it set the text of the Err, and a visitor reads the message of a 4xx, so a database or file error text could leak. To show a text, write Error::new(status, text). With any other status, the message keeps the text, and only a dev build shows it.
  • On the edge build, a line of a WISP_STORE read that Wisp cannot read gives the error the store sent a row Wisp cannot read (line N), which goes to the log. Before, the error held the whole line, with the JSON of the row (app data).
  • The log line for a Secure cookie on a request with no sign of HTTPS stops for good only when the server has TLS, the proxy that WISP_CLIENT_IP_HEADER names says x-forwarded-proto, or ORIGIN is https://. Before, an x-forwarded-proto header from any client stopped the line for the process.

Source: CHANGELOG.md