Skip to content

build: bump rollup-plugin-dts and patch the nanoid advisory - #20

Merged
irbisadm merged 2 commits into
mainfrom
develop
Aug 17, 2026
Merged

build: bump rollup-plugin-dts and patch the nanoid advisory#20
irbisadm merged 2 commits into
mainfrom
develop

Conversation

@irbisadm

Copy link
Copy Markdown
Owner

Two dev-dependency changes, applied on develop and now landing on main so
the Dependabot alert stops showing on the default branch.

Package Before After Required patch Severity Chain
rollup-plugin-dts 6.4.1 6.5.1 direct dev-dependency
nanoid 3.3.17 3.3.18 3.3.18 high vitest -> vite -> postcss

rollup-plugin-dts 6.5.1 is the dev-dependencies group update from #19, which
was closed in favour of applying it directly. 6.5.0 adds TypeScript 6/7
compatibility and fixes export type and declare module handling; 6.5.1
reverts a magic-string upgrade to restore cjs compatibility. The generated
types/index.d.ts is byte-identical after the rebuild, so the public API
surface is untouched.

nanoid closes GHSA-2v37-7h3g-55p8 / CVE-2026-67213 — before 3.3.18,
customAlphabet and customRandom spin forever when called with a size of 0.
It reaches us only as a development-scope transitive dependency, and nothing
in this repository calls those functions.

No resolution was added for it. postcss 8.5.26 is already the latest release
and still depends on nanoid ^3.3.17, a range that allows the patched version
— the lockfile was simply pinned to the old one, so re-resolving that single
entry was enough. Adding a resolution here would have been one of the
never-applied kind removed in f5035f6.

build: again rather than fix:, to keep semantic-release from publishing a
release for a dev-dependency-only change.

Verification

  • yarn build passes; types/index.d.ts unchanged.
  • yarn test — 55 tests across 12 files, all passing.

Applies the dev-dependencies group update from PR #19, which adds
TypeScript 6/7 compatibility and fixes export type and declare module
handling. The generated types/index.d.ts is unchanged.
Closes the GHSA-2v37-7h3g-55p8 alert: nanoid before 3.3.18 loops forever
in customAlphabet/customRandom when size is 0. It reaches us only as a
dev-only transitive dependency (vitest -> vite -> postcss), and postcss
8.5.26 still asks for ^3.3.17, so no resolution is needed -- the range
already allows the patched version, the lockfile was just pinned to the
old one.
@irbisadm
irbisadm merged commit 24a8e0f into main Aug 17, 2026
2 checks passed
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