Repository navigation
Update dependency nanoid to v5.1.11 [SECURITY] - #641
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
September 4, 2026 15:25
6276a40 to
106ff88
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
September 12, 2026 02:00
106ff88 to
1e8fbfc
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
September 13, 2026 21:03
1e8fbfc to
8d5544b
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
September 17, 2026 16:37
8d5544b to
75dbd31
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
September 17, 2026 16:51
75dbd31 to
2237849
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
September 25, 2026 21:10
2237849 to
36c3483
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 14, 2026 00:45
36c3483 to
dbb51c8
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 14, 2026 00:50
dbb51c8 to
6af0a55
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 19, 2026 22:47
6af0a55 to
e01ce6e
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 20, 2026 00:47
e01ce6e to
33604d2
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 20, 2026 17:15
33604d2 to
ffd4d9b
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 20, 2026 17:31
ffd4d9b to
0380418
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 23, 2026 18:26
0380418 to
50497bb
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 23, 2026 18:31
50497bb to
c6efc9c
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 26, 2026 14:44
c6efc9c to
f3cbfcc
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 28, 2026 00:08
f3cbfcc to
9b2da27
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 29, 2026 05:43
9b2da27 to
5f29b33
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 30, 2026 05:20
5f29b33 to
ec6f280
Compare
8000
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
October 30, 2026 21:45
ec6f280 to
8d101f1
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
November 20, 2026 04:40
8d101f1 to
c5181b0
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
November 25, 2026 03:34
c5181b0 to
7bba897
Compare
renovate
Bot
force-pushed
the
renovate/npm-nanoid-vulnerability
branch
from
November 25, 2026 03:41
7bba897 to
e0957d2
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.1.6→5.1.11nanoid: Integer Overflow or Wraparound
CVE-2026-73086 / GHSA-xwg4-73v4-xw9w
More information
Details
Summary
An integer overflow in
nanoid(size)permanently corrupts the process-wide CSPRNG pool, causing all subsequent ID generation to return the deterministic string"uuuuuuuuuuuuuuuuuuuuu". Any application that passes user-influenced values to thesizeparameter loses all randomness guarantees for session tokens, CSRF tokens, and unique identifiers until process restart.Details
nanoid()atindex.js:101coerces thesizeparameter withsize |= 0, which converts it to a signed 32-bit integer. Whensize >= 2^31(e.g.,2147483648), this wraps to-2147483648.The negative value is passed to
fillPool()(index.js:15):Neither branch triggers, so the pool is never refreshed.
poolOffsetbecomes ~-2.1 billion.Subsequent
nanoid()calls execute:pool[negative_index]returnsundefined.undefined & 63evaluates to0.urlAlphabet[0]is'u'. Every ID becomes"uuuuuuuuuuuuuuuuuuuuu".The corruption is persistent — it affects all subsequent calls in the process until ~100 million calls eventually wrap
poolOffsetback to positive, or the process restarts.PoC
Run with:
node --experimental-vm-modules poc.mjsAttack scenario: Any API endpoint that accepts a user-controlled length/size parameter (URL shortener slug length, configurable token size, etc.) and passes it to
nanoid(userInput).Impact
Complete loss of ID unpredictability and uniqueness, process-wide, from a single request.
nanoidin the same processsizeparameter without validationSeverity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
ai/nanoid (nanoid)
v5.1.11Compare Source
v5.1.10Compare Source
v5.1.9Compare Source
v5.1.8Compare Source
cusatomAlphabet75% faster (by @saripovdenis).v5.1.7Compare Source
--versionto CLI (by @mahmoodhamdi).nanoid.jsfor CDN (by @mahmoodhamdi).customRandomtypes (by @oguimbal).Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.