Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/undici
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.8.0
Choose a base ref
...
head repository: nodejs/undici
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.9.0
Choose a head ref
  • 13 commits
  • 31 files changed
  • 8 contributors

Commits on Jul 20, 2026

  1. fix(decompress): preserve response trailers (#5572)

    Signed-off-by: Ram-blip <[email protected]>
    Ram-blip authored Jul 20, 2026
    Configuration menu
    Copy the full SHA
    f36ea9c View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2026

  1. build(deps-dev): bump ws from 8.21.0 to 8.21.1 (#5576)

    Bumps [ws](https://github.com/websockets/ws) from 8.21.0 to 8.21.1.
    - [Release notes](https://github.com/websockets/ws/releases)
    - [Commits](websockets/ws@8.21.0...8.21.1)
    
    ---
    updated-dependencies:
    - dependency-name: ws
      dependency-version: 8.21.1
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 21, 2026
    Configuration menu
    Copy the full SHA
    d228fab View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2026

  1. fix: validate coerced header values for CRLF (#5579)

    Functions bypassed the object guard in processHeader() and were
    coerced via template literals without isValidHeaderValue(), allowing
    CRLF injection when toString/Symbol.toPrimitive returned embedded
    newlines. Validate after coercion on both scalar and array paths.
    
    Signed-off-by: Matteo Collina <[email protected]>
    mcollina authored Jul 22, 2026
    Configuration menu
    Copy the full SHA
    354a151 View commit details
    Browse the repository at this point in the history
  2. fix: handle frozen globalThis in setGlobalDispatcher (#5574)

    * fix: handle frozen globalThis in setGlobalDispatcher
    
    When Object.freeze(globalThis) is called before undici globals are accessed,
    setGlobalDispatcher would throw TypeError because it cannot extend globalThis.
    
    This fix wraps the Object.defineProperty calls in try/catch. When globalThis
    is not extensible (frozen), the dispatcher is stored in a module-level
    fallback variable instead. getGlobalDispatcher is updated to return the
    fallback dispatcher when the globalThis property is not available.
    
    This allows undici to work correctly even when globalThis has been frozen,
    which is recommended by Node.js security best practices (CWE-349).
    
    Fixes issue where Object.freeze(globalThis) breaks undici access.
    
    * test: add unit test for frozen globalThis in setGlobalDispatcher
    
    Add comprehensive test coverage for the frozen globalThis fix. Tests verify:
    1. setGlobalDispatcher does not throw when globalThis is frozen
    2. getGlobalDispatcher continues to return a valid dispatcher
    3. The fallback mechanism works correctly when globalThis is not extensible
    
    This addresses the review feedback from mcollina requesting tests.
    
    * test: improve frozen globalThis test coverage
    
    Add comprehensive test cases to ensure all code paths in the frozen globalThis
    fix are exercised. Tests verify:
    1. setGlobalDispatcher does not throw when globalThis is frozen
    2. getGlobalDispatcher returns a valid dispatcher
    3. Fallback dispatcher persists across multiple calls
    
    This addresses review feedback requesting tests.
    mhayk authored Jul 22, 2026
    Configuration menu
    Copy the full SHA
    a0922b0 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2026

  1. Configuration menu
    Copy the full SHA
    a17e301 View commit details
    Browse the repository at this point in the history
  2. fix: harden cookie domain, path, and unparsed attribute validation

    Signed-off-by: Matteo Collina <[email protected]>
    KhafraDev authored and mcollina committed Jul 23, 2026
    Configuration menu
    Copy the full SHA
    10d93fc View commit details
    Browse the repository at this point in the history
  3. fix: handle empty qualified private cache directive

    Signed-off-by: Matteo Collina <[email protected]>
    mcollina committed Jul 23, 2026
    Configuration menu
    Copy the full SHA
    4fe5bc5 View commit details
    Browse the repository at this point in the history
  4. test: cover crash on mixed unqualified and qualified private cache di…

    …rectives
    
    Ref: GHSA-4cwx-7wf7-3272
    Signed-off-by: Matteo Collina <[email protected]>
    UlisesGascon authored and mcollina committed Jul 23, 2026
    Configuration menu
    Copy the full SHA
    9f09b49 View commit details
    Browse the repository at this point in the history
  5. fix(retry): reject partial content length mismatch

    Signed-off-by: Matteo Collina <[email protected]>
    mcollina committed Jul 23, 2026
    Configuration menu
    Copy the full SHA
    e11a68e View commit details
    Browse the repository at this point in the history
  6. test(retry): correct broken content-range fixtures in retry-handler.js

    Signed-off-by: Ulises Gascon <[email protected]>
    UlisesGascon authored and mcollina committed Jul 23, 2026
    Configuration menu
    Copy the full SHA
    2b3f749 View commit details
    Browse the repository at this point in the history
  7. fix(cache): harden cache directive parsing

    Signed-off-by: Matteo Collina <[email protected]>
    mcollina committed Jul 23, 2026
    Configuration menu
    Copy the full SHA
    c601fff View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7d3cf92 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2026

  1. Bumped v8.9.0 (#5589)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored Jul 24, 2026
    Configuration menu
    Copy the full SHA
    21a8e1e View commit details
    Browse the repository at this point in the history
Loading