Skip to content

fix(deps): bump nanoid and brace-expansion past DoS advisories - #143

Open
shabaraba wants to merge 1 commit into
mainfrom
fix/fix-dep-dos-cves
Open

fix(deps): bump nanoid and brace-expansion past DoS advisories#143
shabaraba wants to merge 1 commit into
mainfrom
fix/fix-dep-dos-cves

Conversation

@shabaraba

Copy link
Copy Markdown
Member

Why

These transitive dependencies had known DoS advisories. Bumping them to patched
versions removes the vulnerable code paths and clears dependency scanner alerts.

  • CVE-2026-67214 — nanoid (nanoid/non-secure): infinite loop on a negative
    size argument.
  • CVE-2026-69152 — brace-expansion: resource exhaustion via unbounded
    intermediate arrays.

What

Add pnpm.overrides pinning patched floors and refresh the lockfile
(lockfile-only; no source changes). Both packages are transitive:

  • nanoid@^3: >=3.3.16 <4 (kept on the 3.x / CJS line) → 3.3.18
  • brace-expansion@^1: >=1.1.18 <2 → 1.1.18
  • brace-expansion@^2: >=2.1.4 <3 → 2.1.4

How to test

Lockfile-only change. Verified no vulnerable nanoid / brace-expansion version
remains in pnpm-lock.yaml. Relying on CI to confirm the graph still resolves
and builds (not run locally).

Checklist

  • Updated documentation if it is required.
  • Added/updated tests if it is required. (or tested manually)
  • Passed lint and test on the root directory.

Pin patched floors via pnpm.overrides and refresh the lockfile
(transitive dependencies):
- CVE-2026-67214: nanoid >= 3.3.16
- CVE-2026-69152: brace-expansion >= 1.1.18 / 2.1.4

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@shabaraba
shabaraba marked this pull request as ready for review August 12, 2026 05:58
Copilot AI lite review requested due to automatic review settings August 12, 2026 05:58

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 dependency-scanner DoS advisories by adding pnpm.overrides to enforce patched minimum versions for transitive dependencies (nanoid and brace-expansion) and updating the lockfile so the resolved graph no longer includes vulnerable versions.

Changes:

  • Add pnpm.overrides in package.json to enforce patched version floors for nanoid@^3 and brace-expansion@^1/^2.
  • Refresh pnpm-lock.yaml to reflect the overrides and updated resolved versions (nanoid → 3.3.18, brace-expansion → 1.1.18 / 2.1.4).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Adds pnpm.overrides to enforce patched transitive dependency floors.
pnpm-lock.yaml Updates the resolved dependency graph to remove vulnerable nanoid / brace-expansion versions and records overrides in the lockfile.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json
Comment on lines +34 to +40
"packageManager": "pnpm@10.28.2",
"pnpm": {
"overrides": {
"nanoid@^3": ">=3.3.16 <4",
"brace-expansion@^1": ">=1.1.18 <2",
"brace-expansion@^2": ">=2.1.4 <3"
}
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