Skip to content

chore(deps): updated nanoid - #226

Merged
SB-virendrasolanke merged 1 commit into
mainfrom
fix-vulnerability
Sep 2, 2026
Merged

chore(deps): updated nanoid#226
SB-virendrasolanke merged 1 commit into
mainfrom
fix-vulnerability

Conversation

@SB-virendrasolanke

Copy link
Copy Markdown
Contributor

Fix high-severity DoS vulnerability in nanoid (CVE-2026-67213)
Summary
Pins the transitive nanoid dependency to ^3.3.18 via a resolutions entry to remediate CVE-2026-67213 (GHSA-2v37-7h3g-55p8).

Vulnerability details
Package: nanoid
Affected version: 3.3.16 (transitive, via postcss)
Patched version: 3.3.18
CVE: CVE-2026-67213
Severity: High (CVSS 8.2)
CWE-835: Loop with Unreachable Exit Condition (Infinite Loop)
customAlphabet and customRandom in affected nanoid versions enter an infinite loop when called with size = 0. Any code path that passes an unvalidated, attacker-controlled size of 0 to these functions hangs the calling thread, resulting in a denial-of-service condition.

Changes
package.json: added "nanoid": "^3.3.18" under resolutions to force all transitive consumers (currently pulled in via postcss) onto the patched version.
yarn.lock: regenerated via yarn install so nanoid now resolves to 3.3.18 instead of 3.3.16.
Verification
Confirmed yarn.lock now contains a single merged entry:

Risk / impact
nanoid is not used directly by this library; it's only a transitive dependency of postcss. The version bump (3.3.16 → 3.3.18) is a patch-level change with no known breaking API changes.
No application code changes required.

@SB-ChetanKorde SB-ChetanKorde left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@SB-virendrasolanke
SB-virendrasolanke merged commit c186823 into main Sep 2, 2026
3 of 4 checks passed
@SB-virendrasolanke
SB-virendrasolanke deleted the fix-vulnerability branch September 2, 2026 09:13
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.

3 participants