Skip to content

fix(deps): patch the undici advisories, in the place pnpm 11 actually reads - #70

Merged
msalvatti merged 2 commits into
mainfrom
fix/undici-advisories
Aug 3, 2026
Merged

fix(deps): patch the undici advisories, in the place pnpm 11 actually reads#70
msalvatti merged 2 commits into
mainfrom
fix/undici-advisories

Conversation

@msalvatti

Copy link
Copy Markdown
Member

The OSV scan reports five advisories against undici@8.5.0 — one high — all fixed in 8.9.0.

The part worth reading

I first put the override in package.json under pnpm.overrides. It did nothing: this repository runs pnpm 11, where that field is ignored outright and without warning. pnpm install reported "Already up to date" and the lockfile went on resolving 8.5.0.

The comment at the top of this repo's pnpm-workspace.yaml overrides block states precisely that. I wrote the override before reading it.

Moved to pnpm-workspace.yaml, where it takes effect — the lockfile now resolves 8.9.0 — and the dead pnpm block is removed from package.json so nothing looks like an override that is not one.

Scope across the family

Seven of the nine libraries pin packageManager: pnpm@10.8.1, where the package.json field is honoured; only nest-queue and nest-realtime are on pnpm 11. I verified the distinction rather than assuming it: the seven repositories' lockfiles do resolve their overridden versions.

nest-realtime has no undici in its lockfile, so it needs nothing. nest-cache sits on 7.29.0, which is the 7.x line's fix — the advisories cover >=7.0.0 <7.29.0 and >=8.0.0 <8.9.0.

Verification

276 tests at 100%, typecheck · lint · build · size · attw · published surface green. Nothing ships: the package declares no runtime dependencies, and the lockfile is what the scanners read.

… reads

The OSV scan reports five advisories against `undici@8.5.0`, one high, all fixed
in 8.9.0.

The override went into `package.json` first, which did nothing at all — this
repository runs pnpm 11, where the `pnpm` field of package.json is ignored
outright and without warning. `pnpm install` reported "Already up to date" and the
lockfile kept resolving 8.5.0. The comment at the top of the workspace overrides
block says exactly this; I wrote the override before reading it.

Moved to `pnpm-workspace.yaml` alongside its siblings, where it takes effect —
the lockfile now resolves 8.9.0 — and the dead `pnpm` block is gone from
package.json so nothing looks like an override that is not one.
Copilot AI review requested due to automatic review settings August 3, 2026 20:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses OSV-reported vulnerabilities in the transitive undici dependency by applying a pnpm override in the location that pnpm 11 actually honors, ensuring the lockfile resolves a patched undici version.

Changes:

  • Add a workspace-level override to force undici to ^8.9.0.
  • Update pnpm-lock.yaml so the resolved undici version is 8.9.0 and the overrides block reflects it.
  • Minor metadata normalization in package.json (string encoding).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
pnpm-workspace.yaml Adds an override intended to force patched undici resolution under pnpm 11.
pnpm-lock.yaml Updates lockfile overrides and resolved package versions to undici@8.9.0.
package.json Contains a small description string encoding change (unrelated to dependency resolution).
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

Comment thread pnpm-lock.yaml Outdated
Comment thread pnpm-workspace.yaml Outdated
Unscoped, it would force a future transitive on undici 7.x onto the 8.x line. The
advisories cover both — `>=7.0.0 <7.29.0` and `>=8.0.0 <8.9.0` — so each line is
pinned to its own fix, matching how the js-yaml pair above is already handled. A
7.x arriving later lands above its floor rather than below it.
Copilot AI review requested due to automatic review settings August 3, 2026 20:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

@msalvatti
msalvatti merged commit 6d7822a into main Aug 3, 2026
18 checks passed
@msalvatti
msalvatti deleted the fix/undici-advisories branch August 3, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants