Skip to content

chore(deps): update dependency nanoid to v3.3.18 [security] - #399

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-nanoid-vulnerability
Open

chore(deps): update dependency nanoid to v3.3.18 [security]#399
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/npm-nanoid-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Dec 11, 2024

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
nanoid 3.3.43.3.18 age confidence

Predictable results in nanoid generation when given non-integer values

CVE-2024-55565 / GHSA-mwcw-c2x4-8c55

More information

Details

When nanoid is called with a fractional value, there were a number of undesirable effects:

  1. in browser and non-secure, the code infinite loops on while (size--)
  2. in node, the value of poolOffset becomes fractional, causing calls to nanoid to return zeroes until the pool is next filled
  3. if the first call in node is a fractional argument, the initial buffer allocation fails with an error

Version 3.3.8 and 5.0.9 are fixed.

Severity

  • CVSS Score: 4.3 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


nanoid: non-secure generators can loop indefinitely with negative size

CVE-2026-67214 / GHSA-28wg-ghj8-5hjv

More information

Details

nanoid (Nano ID) before 5.1.16 contains an infinite loop in the customAlphabet and nanoid functions of its non-secure module (nanoid/non-secure). When these functions are given a negative size, the loop counter is decremented from a negative value and never reaches its termination condition, spinning indefinitely and hanging the calling thread. An application that passes an unvalidated, attacker-controlled negative size to these functions is exposed to a denial-of-service condition.

Severity

  • CVSS Score: 8.2 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


nanoid: custom generators can loop indefinitely when size is zero

CVE-2026-67213 / GHSA-2v37-7h3g-55p8

More information

Details

nanoid (Nano ID) before 5.1.6 contains an infinite loop in the customAlphabet and customRandom functions. When these functions are configured with a size of 0, the internal generation loop never satisfies its exit condition and spins indefinitely, hanging the calling thread. An application that passes an unvalidated, attacker-controlled size of 0 to these functions is exposed to a denial-of-service condition.

Severity

  • CVSS Score: 8.2 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

ai/nanoid (nanoid)

v3.3.18

Compare Source

v3.3.17

Compare Source

  • Fixed infinite loop on zero size.

v3.3.16

Compare Source

v3.3.15

Compare Source

  • Fixed npm provenance error.

v3.3.14

Compare Source

  • Fixed random pool corruption on big ID sizes.

v3.3.13

Compare Source

  • Reduced npm package size.

v3.3.12

Compare Source

  • Fixed breaking Nano ID by requesting big ID.

v3.3.11

Compare Source

  • Fixed React Native support.

v3.3.10

Compare Source

v3.3.9

Compare Source

  • Reduced npm package size.

v3.3.8

Compare Source

  • Fixed a way to break Nano ID by passing non-integer size (by @​myndzi).

v3.3.7

Compare Source

  • Fixed node16 TypeScript support (by Saadi Myftija).

v3.3.6

Compare Source

  • Fixed package.

v3.3.5

Compare Source

  • Backport funding information.

Configuration

📅 Schedule: (in timezone Europe/Prague)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Dec 11, 2024
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch 2 times, most recently from d1c511d to 682910b Compare December 12, 2024 11:08
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch 2 times, most recently from 996c62e to a686e11 Compare January 30, 2025 17:38
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from a686e11 to 3174f8c Compare February 9, 2025 13:37
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch 3 times, most recently from 0464aa5 to e75e781 Compare March 3, 2025 12:54
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch 2 times, most recently from 84368cb to 58091a5 Compare March 13, 2025 18:42
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch 2 times, most recently from 65cc2f6 to 6e0da73 Compare April 1, 2025 10:50
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 6e0da73 to 11fa3ca Compare April 8, 2025 11:28
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 11fa3ca to d6b8d4a Compare April 24, 2025 10:28
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch 2 times, most recently from ac966d9 to 0d46bc8 Compare May 23, 2025 15:40
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch 2 times, most recently from f66bb96 to 664dfca Compare May 28, 2025 07:40
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch 2 times, most recently from 044e504 to 60f2df6 Compare June 9, 2025 11:00
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch 2 times, most recently from ec9bc62 to ff9c6c5 Compare June 23, 2025 09:18
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch 4 times, most recently from bb3da13 to c2aef1b Compare July 7, 2025 12:59
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from c2aef1b to 6b8848a Compare July 9, 2025 13:07
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 6b8848a to b7dc050 Compare July 17, 2025 15:15
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from b7dc050 to 9de02f5 Compare July 31, 2025 09:00
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from b8f2517 to 348b43a Compare December 3, 2025 13:46
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 348b43a to 797859a Compare December 31, 2025 16:34
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 797859a to 697c8ae Compare January 19, 2026 16:28
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 697c8ae to 7b6903a Compare February 2, 2026 20:55
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 7b6903a to c0afef3 Compare February 12, 2026 14:00
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from c0afef3 to 5d79b20 Compare March 5, 2026 15:33
@renovate renovate Bot changed the title chore(deps): update dependency nanoid to v3.3.8 [security] chore(deps): update dependency nanoid to v3.3.8 [security] - autoclosed Mar 27, 2026
@renovate renovate Bot closed this Mar 27, 2026
@renovate
renovate Bot deleted the renovate/npm-nanoid-vulnerability branch March 27, 2026 01:39
@renovate renovate Bot changed the title chore(deps): update dependency nanoid to v3.3.8 [security] - autoclosed chore(deps): update dependency nanoid to v3.3.8 [security] Mar 30, 2026
@renovate renovate Bot reopened this Mar 30, 2026
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch 2 times, most recently from 5d79b20 to bd002f3 Compare March 30, 2026 17:58
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from bd002f3 to 3501fbd Compare April 8, 2026 19:43
@renovate renovate Bot changed the title chore(deps): update dependency nanoid to v3.3.8 [security] chore(deps): update dependency nanoid to v3.3.8 [security] - autoclosed Apr 27, 2026
@renovate renovate Bot closed this Apr 27, 2026
@renovate renovate Bot changed the title chore(deps): update dependency nanoid to v3.3.8 [security] - autoclosed chore(deps): update dependency nanoid to v3.3.8 [security] Apr 27, 2026
@renovate renovate Bot reopened this Apr 27, 2026
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch 2 times, most recently from 3501fbd to 1587611 Compare April 27, 2026 23:48
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 1587611 to 59eddd3 Compare May 12, 2026 11:27
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 59eddd3 to 0e48f4a Compare May 28, 2026 13:59
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 0e48f4a to e76f25d Compare June 13, 2026 15:45
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from e76f25d to 35da862 Compare July 12, 2026 11:47
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 35da862 to 93f8262 Compare July 20, 2026 20:04
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 93f8262 to 23c1738 Compare July 30, 2026 16:09
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 23c1738 to 510c6c4 Compare August 12, 2026 00:53
@renovate
renovate Bot force-pushed the renovate/npm-nanoid-vulnerability branch from 510c6c4 to 58ff069 Compare August 26, 2026 19:47
@renovate renovate Bot changed the title chore(deps): update dependency nanoid to v3.3.8 [security] chore(deps): update dependency nanoid to v3.3.18 [security] Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants