Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GHSA-mwcw-c2x4-8c55] Infinite loop in nanoid #5070

Merged

Conversation

katzj
Copy link

@katzj katzj commented Dec 10, 2024

Updates

  • Summary

Comments
Make more accurate

@github-actions github-actions bot changed the base branch from main to katzj/advisory-improvement-5070 December 10, 2024 14:21
@darakian
Copy link
Contributor

Is the current title not accurate? ai/nanoid#510 seems to indicate that the current title is workable. I can see a desire to expand on the issue, but perhaps that would be better in the description body itself?

@katzj
Copy link
Author

katzj commented Dec 11, 2024

It's not an infinite loop in the usual sense of "your program is stuck and runs forever" so this is making the title much more accurate about what the effect is

@darakian
Copy link
Contributor

Not sure I follow, can you help me understand the difference in detail? 👀

@github-actions github-actions bot closed this Dec 12, 2024
@github-actions github-actions bot deleted the katzj-GHSA-mwcw-c2x4-8c55 branch December 12, 2024 17:19
@darakian darakian restored the katzj-GHSA-mwcw-c2x4-8c55 branch December 12, 2024 17:46
@darakian darakian reopened this Dec 12, 2024
@darakian
Copy link
Contributor

Looks like the bot closed this PR out when I closed #5081
Sorry about that

@katzj
Copy link
Author

katzj commented Dec 13, 2024

The issue is that nanoid will generate a predictable id as opposed to the intended secure, unique ids when passed a non-integer size.

cc @ai to add any more color

@ai
Copy link

ai commented Dec 13, 2024

@katzj sounds good. Merge =^_^=

@advisory-database advisory-database bot merged commit 7c8aa24 into katzj/advisory-improvement-5070 Dec 13, 2024
4 checks passed
@advisory-database
Copy link
Contributor

Hi @katzj! Thank you so much for contributing to the GitHub Advisory Database. This database is free, open, and accessible to all, and it's people like you who make it great. Thanks for choosing to help others. We hope you send in more contributions in the future!

@advisory-database advisory-database bot deleted the katzj-GHSA-mwcw-c2x4-8c55 branch December 13, 2024 22:57
@darakian
Copy link
Contributor

Ok. Merged this in but pulled in a bit of issue 510 just for extra context. Let me know if there's anything else 👍

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