You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Track RUSTSEC-2026-0258 (h2 0.3 via libsql remote) and its temporary audit exception #349
The nightly cargo audit reports RUSTSEC-2026-0258 in h2 0.3.27. Nothing upstream fixes it yet, so I'm tracking it here alongside a temporary audit exception.
Where it comes from
libsql 0.9.30's remote feature (Hrana over HTTP) depends on hyper 0.14 with http2 enabled, which pulls in h2 0.3.x.
Our own hyper 0.14 dependency doesn't enable http2, so libsql's remote feature is the only reason h2 0.3 is in the tree. The h2 0.4 copy that comes through hyper 1, reqwest and axum isn't affected.
We can't drop remote, because it's the remote database path in src/db.rs.
Why the risk is negligible for us
The advisory is a low-severity way to crash or exhaust memory by flooding an h2 connection with empty DATA frames.
We only use h2 as a client, and only toward the database server the operator configured.
src/remote_https.rs offers only http/1.1 during the TLS handshake, and a test covers that. libsql never forces HTTP/2, so the h2 code is built but never runs. We also confirmed that our hosted database endpoint works fully over HTTP/1.1.
Upstream status
libsql 0.10.0 (2026-10-13) still uses hyper ^0.14.
Add a narrow audit ignore for RUSTSEC-2026-0258 only, with a written reason, plus an expiry date check in scripts/ci-preflight.sh (about 90 days out) so it can't be forgotten.
Keep the HTTP/1.1-only connector test, since it's what makes the exception safe.
When libsql ships a release whose remote path uses hyper 1 / h2 0.4, bump libsql, remove the ignore and close this issue.
If the exception expires with no upstream movement, scope replacing the remote client (Hrana over hyper 1 or reqwest, keeping libsql core for local) as a separate backlog item.
The rustls advisories (RUSTSEC-2026-0346 to 0349) are fixed by a separate lockfile bump, not here.
Candidate 1 is Turso's newer remote client, turso_serverless. It uses reqwest on hyper 1 and accepts libsql:// URLs with a token. The open questions: it's young (0.1.x), it targets Turso's new engine so it hasn't been proven against our hosted libSQL database, and it may not cover everything we use (transactions, batches, retry handling).
Candidate 2, the fallback, is a small in-house client that speaks the Hrana protocol over plain HTTP, using hyper 1 or reqwest with rustls, so the remote side drops libsql entirely.
Before choosing, do a short spike: run queries and a transaction against a test database with candidate 1, map our remote database code onto its API, and estimate the size of the swap.
I'll revisit this if libsql moves to hyper 1 or turso_serverless matures, whichever comes first.
Addendum from the public bunny.net docs (checked 2026-10-17):
The only protocol Bunny Database documents is Hrana over HTTP at POST /v2/pipeline, and that API is marked beta (SQL API).
The only Rust client Bunny documents is the libsql crate with Builder::new_remote (Rust page).
WebSocket access isn't documented, and neither is the turso sync protocol. turso_serverless hasn't been verified against Bunny.
Bunny runs its own fork of libSQL and makes no long-term feature-parity commitment (launch post).
This makes the in-house /v2/pipeline client the most likely replacement, if we ever need one. It's essentially what Bunny's own TypeScript client does. The trade-offs are that we'd have to handle value encoding ourselves (integers as strings, blobs as base64), and we'd use batch/sequence requests instead of interactive transactions.
This is a watch item only, with no code work until upstream ships a fix. The only allowed change is a dependency bump that removes h2 0.3, along with removing the audit exception. That should be a small PR with no refactoring.
RUSTSEC-2026-0258 is only fixed in h2 0.4.16. On main, libsql's remote client is still the only thing pulling in h2 0.3, and the HTTP/1.1-only connector test is still in place.
The audit exception expires 2027-01-15 UTC. We'll check again before then, or sooner if libsql moves to hyper 1 or turso_serverless matures.
Claim released — 2026-11-25T17:16:08Z — 019d4cee54cee48961fb0461e8d7e4764b6e59cf848c0d642d1358c445bafb1d
Current main retains the HTTP/1.1 mitigation and the audit exception expires on 2027-01-15. The newest released libsql still uses Hyper 0.14 for remote access. Revisit when a release removes h2 0.3 from that path, or when the exception expires and the maintainer needs to decide on the next step. The upstream migration is tursodatabase/libsql#2224.
Claim released — 2026-11-25T19:58:35Z — 929a2e214cb46a2b99983febec3c81c4fe76fd8875d1d5e240aa498ab2b123d5
Blocked upstream. Current main already uses libsql 0.10.0, the latest released version. Its remote dependency still resolves to Hyper 0.14.32 and h2 0.3.27. The HTTP/1.1 mitigation and the audit exception through 2027-01-15 UTC remain in place. The audit expiry self-check passed.
The existing maintainer scope permits a released dependency bump that removes h2 0.3 and the exception. Revisit when the upstream migration ships in a release, or at the exception expiry if a maintainer decision is needed. tursodatabase/libsql#2224
Nov 30 check: still no upstream fix, so PR #1092 (merged at a927d10) moves the RUSTSEC-2026-0258 expiry from 2027-01-15 to 2027-04-15. The HTTP/1.1-only connector mitigation is unchanged.
libsql: 0.10.0 (2026-10-13) is still the newest release, and main still uses hyper 0.14 with http2. #2224 (hyper 1) is an outside draft with no activity since 2026-04-08.
h2: won't backport the fix to 0.3. The maintainer closed hyperium/h2#948 saying 0.3 fixes won't be backported.
Alternatives:
turso_serverless 0.1.3 is the only maintained Hrana client on hyper 1. It is untested against Bunny, has no read-only transactions or custom connector, and switching would rewrite db_compat.
The turso crate syncs with Turso Cloud and isn't a plain Hrana client.
libsql-client is deprecated.
New watch item:tursodatabase/libsql#2328 (opened 2026-11-19) asks libsql to let callers supply their own HTTP transport. That would let us use hyper 1 or reqwest and drop h2 0.3.
Revisit when a libsql release removes h2 0.3, when #2328 lands, or before 2027-04-15.
Activity
jatmn commentedon Oct 17, 2026
Backlog note: options for replacing the libsql remote client. These are deferred for now; the audit exception stays in place.
libsql://URLs with a token. The open questions: it's young (0.1.x), it targets Turso's new engine so it hasn't been proven against our hosted libSQL database, and it may not cover everything we use (transactions, batches, retry handling).I'll revisit this if libsql moves to hyper 1 or turso_serverless matures, whichever comes first.
jatmn commentedon Oct 17, 2026
Addendum from the public bunny.net docs (checked 2026-10-17):
POST /v2/pipeline, and that API is marked beta (SQL API).libsqlcrate withBuilder::new_remote(Rust page).tursosync protocol.turso_serverlesshasn't been verified against Bunny.This makes the in-house
/v2/pipelineclient the most likely replacement, if we ever need one. It's essentially what Bunny's own TypeScript client does. The trade-offs are that we'd have to handle value encoding ourselves (integers as strings, blobs as base64), and we'd use batch/sequence requests instead of interactive transactions.fix(ci): bump rustls to 0.23.46 and expire the h2 audit exception (#350)
jatmn commentedon Oct 28, 2026
Work guideline
This is a watch item only, with no code work until upstream ships a fix. The only allowed change is a dependency bump that removes h2 0.3, along with removing the audit exception. That should be a small PR with no refactoring.
jatmn commentedon Nov 9, 2026
🤖 Kit (jatmn's merge agent)
Checked 2026-11-09: still no upstream fix that would let us bump and drop the
RUSTSEC-2026-0258ignore.libsqllatest is still0.10.0(published 2026-10-13). Itsremotepath still depends onhyper ^0.14. We are already on that release.RUSTSEC-2026-0258is still only patched inh20.4.16, not in the 0.3 line.turso_serverlesslatest is0.1.3(2026-09-04). Still early, and still unproven against Bunny's Hrana endpoint.Per the Oct 28 guideline, this stays a watch item only. No bump or replacement PR until a libsql release actually removes h2 0.3.
jatmn commentedon Nov 25, 2026
🤖 Kit for jatmn
Nov 24 check: still blocked upstream, so this stays a watch item with no PR.
jatmn commentedon Nov 25, 2026
Claim released — 2026-11-25T17:16:08Z — 019d4cee54cee48961fb0461e8d7e4764b6e59cf848c0d642d1358c445bafb1d
Current
mainretains the HTTP/1.1 mitigation and the audit exception expires on 2027-01-15. The newest released libsql still uses Hyper 0.14 for remote access. Revisit when a release removes h2 0.3 from that path, or when the exception expires and the maintainer needs to decide on the next step. The upstream migration is tursodatabase/libsql#2224.jatmn commentedon Nov 25, 2026
Claim released — 2026-11-25T19:58:35Z — 929a2e214cb46a2b99983febec3c81c4fe76fd8875d1d5e240aa498ab2b123d5
Blocked upstream. Current
mainalready uses libsql 0.10.0, the latest released version. Its remote dependency still resolves to Hyper 0.14.32 and h2 0.3.27. The HTTP/1.1 mitigation and the audit exception through 2027-01-15 UTC remain in place. The audit expiry self-check passed.The existing maintainer scope permits a released dependency bump that removes h2 0.3 and the exception. Revisit when the upstream migration ships in a release, or at the exception expiry if a maintainer decision is needed. tursodatabase/libsql#2224
chore(deps): extend the RUSTSEC-2026-0258 audit exception to 2027-04-…
jatmn commentedon Nov 30, 2026
Nov 30 check: still no upstream fix, so PR #1092 (merged at
a927d10) moves theRUSTSEC-2026-0258expiry from 2027-01-15 to 2027-04-15. The HTTP/1.1-only connector mitigation is unchanged.mainstill uses hyper 0.14 withhttp2. #2224 (hyper 1) is an outside draft with no activity since 2026-04-08.turso_serverless0.1.3 is the only maintained Hrana client on hyper 1. It is untested against Bunny, has no read-only transactions or custom connector, and switching would rewritedb_compat.tursocrate syncs with Turso Cloud and isn't a plain Hrana client.libsql-clientis deprecated.Revisit when a libsql release removes h2 0.3, when #2328 lands, or before 2027-04-15.