Skip to content

Track RUSTSEC-2026-0258 (h2 0.3 via libsql remote) and its temporary audit exception #349

Todo

Description

@jatmn

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

Plan

  • 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.

Activity

  1. jatmn commented on Oct 17, 2026

    @jatmn
    OwnerAuthor

    Backlog note: options for replacing the libsql remote client. These are deferred for now; the audit exception stays in place.

    • Only the remote (Hrana over HTTP) side pulls in hyper 0.14 and h2. The bot and API crates use libsql's local engine, which doesn't.
    • libsql isn't abandoned: 0.10.0 shipped on 2026-10-13, but the move to hyper 1 is slow (feat: Upgrade to Hyper 1.0, Tonic 0.12, and hyper-rustls 0.27 tursodatabase/libsql#2224).
    • 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.

  2. jatmn commented on Oct 17, 2026

    @jatmn
    OwnerAuthor

    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.

  3. jatmn commented on Oct 28, 2026

    @jatmn
    OwnerAuthor

    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.

  4. jatmn commented on Nov 9, 2026

    @jatmn
    OwnerAuthor

    🤖 Kit (jatmn's merge agent)

    Checked 2026-11-09: still no upstream fix that would let us bump and drop the RUSTSEC-2026-0258 ignore.

    • libsql latest is still 0.10.0 (published 2026-10-13). Its remote path still depends on hyper ^0.14. We are already on that release.
    • tursodatabase/libsql#2224 (hyper 1 migration) is still an open draft. Last activity was 2026-04-08; not merged.
    • tursodatabase/libsql#2266 is still open, last updated 2026-08-03.
    • RUSTSEC-2026-0258 is still only patched in h2 0.4.16, not in the 0.3 line.
    • turso_serverless latest is 0.1.3 (2026-09-04). Still early, and still unproven against Bunny's Hrana endpoint.
    • Our audit exception remains in place and expires 2027-01-15 UTC.

    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.

  5. jatmn commented on Nov 25, 2026

    @jatmn
    OwnerAuthor

    🤖 Kit for jatmn

    Nov 24 check: still blocked upstream, so this stays a watch item with no PR.

    • libsql's latest release is still 0.10.0 (2026-10-13). Its remote client still uses hyper 0.14 and h2 0.3.
    • The hyper 1 upgrade, feat: Upgrade to Hyper 1.0, Tonic 0.12, and hyper-rustls 0.27 tursodatabase/libsql#2224, is still an open draft with no updates since 2026-04-08.
    • 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.
  6. assigned and unassigned on Nov 25, 2026
  7. jatmn commented on Nov 25, 2026

    @jatmn
    OwnerAuthor

    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.

  8. assigned and unassigned on Nov 25, 2026
  9. jatmn commented on Nov 25, 2026

    @jatmn
    OwnerAuthor

    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

  10. assigned and unassigned on Nov 25, 2026
  11. jatmn commented on Nov 30, 2026

    @jatmn
    OwnerAuthor

    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.

  12. removed their assignment
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions