Skip to content

chore(deps): bump nanoid to 3.3.19 (Dependabot #269, no runtime impact) - #780

Merged
zhouzhuojie merged 1 commit into
mainfrom
fix/dependabot-269-nanoid
Sep 15, 2026
Merged

zhouzhuojie merged 1 commit into
mainfrom
fix/dependabot-269-nanoid

Conversation

@zhouzhuojie

@zhouzhuojie zhouzhuojie commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Description

Lockfile-only bump of transitive nanoid from 3.3.16 (UI) / 3.3.17 (docs) to 3.3.19 so Dependabot alert #269 can close.

The advisory is CVE-2026-67213 / GHSA-2v37-7h3g-55p8: customAlphabet / customRandom can loop forever when size is 0. That is only a problem if an app forwards an untrusted size into those APIs.

Impact in Flagr is negligible. The Go server does not use nanoid. In the UI/docs it is a Vite → PostCSS build-time dependency. PostCSS calls nanoid/non-secure with a hardcoded length of 6 to label CSS inputs during build/dev — not customAlphabet/customRandom, and not on any request path. This does not ship as a user-facing ID API in the UI bundle.

This is hygiene so the high-severity scanner finding goes away; it is not a reachable DoS on the Flagr API or admin UI.

Fixes https://github.com/openflagr/flagr/security/dependabot/269

Motivation and Context

Open Dependabot alert #269 (high) on browser/flagr-ui/package-lock.json. The docs lockfile was still on 3.3.17 (< 3.3.18), so it is updated in the same PR.

How Has This Been Tested?

  • make flagr-ui-check (lint, typecheck, Vitest — 14 files / 91 tests passed)
  • make build-docs (VitePress production build succeeded)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Fixes Dependabot alert #269 (GHSA-2v37-7h3g-55p8). nanoid before 3.3.18
can loop indefinitely in customAlphabet/customRandom when size is 0.

Transitive via postcss (vite). Lockfile-only; no direct dependency change.
@mergify

mergify Bot commented Sep 15, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@zhouzhuojie zhouzhuojie changed the title fix(deps): bump nanoid to 3.3.19 (CVE-2026-67213) chore(deps): bump nanoid to 3.3.19 (Dependabot #269, no runtime impact) Sep 15, 2026
@zhouzhuojie
zhouzhuojie merged commit 9c684e7 into main Sep 15, 2026
12 checks passed
@zhouzhuojie
zhouzhuojie deleted the fix/dependabot-269-nanoid branch September 15, 2026 17:27
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