Skip to content

chore(deps): bump nanoid to 3.3.18 in web/frontend and web/backend - #583

Merged
padak merged 1 commit into
mainfrom
chore/bump-nanoid-3.3.18
Aug 13, 2026
Merged

chore(deps): bump nanoid to 3.3.18 in web/frontend and web/backend#583
padak merged 1 commit into
mainfrom
chore/bump-nanoid-3.3.18

Conversation

@padak

@padak padak commented Aug 13, 2026

Copy link
Copy Markdown
Member

Closes the last outstanding npm audit finding in the two web trees, which Dependabot does not cover.

What

npm audit reports a high-severity advisory for nanoid@3.3.16GHSA-2v37-7h3g-55p8, "custom generators can loop indefinitely when size is zero" — in both trees. It arrives transitively through postcss:

  • web/frontend: postcss@8.5.24 -> nanoid@3.3.16
  • web/backend: vitest -> vite -> postcss@8.5.24 -> nanoid@3.3.16

Dependabot never raised an alert for it (confirmed via gh api repos/keboola/cli/dependabot/alerts), so it would not have been fixed on its own.

Why a plain npm update and not an overrides block

postcss@8.5.24 declares nanoid: ^3.3.16, and the fixed 3.3.18 already satisfies that range. The lockfiles were pinned to 3.3.16 only because that was the newest release when they were generated — npm ci then reproduces it faithfully.

An overrides entry (the mechanism already used for dompurify in web/frontend/package.json) is only warranted when the fixed version falls outside the declared range. Here it does not, so npm update nanoid is sufficient and leaves nothing extra to maintain. The diff is two lockfile entries; no package.json changes.

Impact

Low. postcss and nanoid run only at build time (vite build / vitest); nanoid never reaches the SPA bundle shipped in _ui_dist. This is hygiene rather than an incident — which is also why it is a standalone PR rather than something rushed into a release.

Verification

  • npm ci succeeds in both web/frontend and web/backend (lockfiles are internally consistent)
  • npm run build (tsc -b && vite build) passes in web/frontend — the SPA is compiled into the wheel by hatch_build.py, so a broken build would ship a UI-less wheel
  • npm audit reports 0 vulnerabilities in both trees
  • npm ls nanoid confirms 3.3.18 resolved in both

Context

Follow-up to the six Dependabot security PRs merged just before this one (#554, #555, #558, #559, #563, #564), which together closed 12 open Dependabot alerts. This covers the one finding npm audit sees but Dependabot does not.

Dependency-only change: no version bump and no changelog entry, matching how those six were handled.


Open in Devin Review

`npm audit` reported a high-severity advisory for nanoid 3.3.16
(GHSA-2v37-7h3g-55p8: custom generators can loop indefinitely when size
is zero) in both web trees. It comes in transitively via postcss:

  web/frontend: postcss@8.5.24 -> nanoid@3.3.16
  web/backend:  vitest -> vite -> postcss@8.5.24 -> nanoid@3.3.16

Dependabot never raised an alert for it, so it would not have been fixed
on its own.

postcss@8.5.24 declares `nanoid: ^3.3.16`, and the fixed 3.3.18 already
satisfies that range -- the lockfiles were simply pinned to 3.3.16
because that was the newest release when they were generated. So this is
a plain `npm update nanoid`: two lockfile entries move, no package.json
change and no `overrides` block needed.

Impact was low to begin with: postcss and nanoid run only at build time
(vite build / vitest) and nanoid never reaches the SPA bundle shipped in
_ui_dist. This is hygiene, not an incident.

Verified: `npm ci` succeeds in both trees, `npm run build`
(`tsc -b && vite build`) passes in web/frontend, and `npm audit` reports
0 vulnerabilities in both.

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@padak
padak merged commit 5f6d9a8 into main Aug 13, 2026
5 checks passed
@padak
padak deleted the chore/bump-nanoid-3.3.18 branch August 13, 2026 21:54
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.

1 participant