Green Tea
Green Tea 26.11.0-rc.2: nine security fixes, and the API is frozen
Green Tea 26.11.0-rc.2 went out to npm and JSR on 23 November 2026. It fixes nine security problems, one rated high, and every 26.x release before it has them.
The API froze at RC.1
26.11.0-rc.1 shipped on 17 November and froze Green Tea’s public API. From here to the first stable release, nothing public is added, removed or renamed. Releases are fixes only. RC.1 also made Node 22 the minimum. Node 18 and 20 are end-of-life.
After stable, breaking changes ship only in the first release of a year. The support policy says which releases get fixes, and for how long.
RC.2 is the audit
A freeze is the moment to try to break what was frozen, so we audited RC.1 before calling anything
stable. The audit found nine problems, and RC.2 fixes all of them. The most serious one: WebSocket
upgrades never checked Origin, so a page on another site could open a socket with a signed-in
user’s cookies and read what the handler sent.
Five of the fixes change behaviour you might notice:
- A WebSocket upgrade from another site gets
403. - With
trustProxy,ctx.ipis the right-mostX-Forwarded-Forentry, the one your proxy wrote. cors: { origins: '*', credentials: true }failscreateAppinstead of letting every site make credentialed reads.- A stream that fails ends with
Internal Server Errorunless the error is anHttpError. staticno longer serves dotfiles such as/.env.
The security advisories describe
each problem, and the what’s new page says
who each change affects and what to do about it. The official plugins moved with core:
@green-tea/jwt, metrics and rate-limit are 26.11.0-rc.2 on JSR.
Upgrading
npm i @green-tea/core@rc
On Deno, use jsr:@green-tea/core@26.11.0-rc.2. No patched beta exists, so a beta user also takes
on RC.1’s breaking changes, which the changelog
lists.