Skip to content

Possible fix(deps): undici 8.7.0 → 7.29.0, 8.9.0 (CVE-2026-13697) in bun.lock #18

Description

@begininvoke

Came across something in bun.lock around line 881 that looked worth flagging.

undici's cache interceptor mishandles malformed Cache‑Control private directives. An empty or degenerate private value can cause private response bodies, headers (including Set‑Cookie), and cached data to be stored in the shared cache and later served to other users, leading to unauthorized data disclosure. Additionally, combining an unqualified private directive with a qualified one triggers an uncaught TypeError that can crash the process (DoS). Both issues expose private information and can cause application downtime in shared cache mode. Upgrading to undici ≥8.9.0 (or ≥7.29.0) resolves the parsing bugs.

Something like this might fix it:

Upgrade undici to version 8.9.0 or later (e.g., run `npm install undici@8.9.0` or `bun add undici@8.9.0`).

For reference: rule CVE-2026-13697. Rated high.

The suggested change is untested against this project, so please read it before applying it.


Found with automated scanning (RedGem) and reviewed before opening. If it is not useful, closing it is completely fine.

Activity

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