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

Replace Math.random() with crypto function #3807

Closed
swetha8612 opened this issue Dec 14, 2023 · 4 comments
Closed

Replace Math.random() with crypto function #3807

swetha8612 opened this issue Dec 14, 2023 · 4 comments

Comments

@swetha8612
Copy link

There is a Math.random() in dist/d3.js file.
Please update it with crypto function like window.crypto.getRandomValues(new Uint32Array(10))[0]
The fortify scan is raising it as a security vulnerability during the scan.

@swetha8612
Copy link
Author

is there a new version for this change?

@mbostock
Copy link
Member

No, I’m declining your request as it is nonsensical.

@swetha8612
Copy link
Author

We are using d3 package in some of our projects and when we ran fortify scans it has been flagged as high vulnerability. It is asking to replace Math.random() to crypto function. There are other packages which have this same issue. I am trying to contact them as well. Thank you.

@jayDayZee
Copy link

jayDayZee commented Dec 15, 2023 via email

@d3 d3 locked as resolved and limited conversation to collaborators Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants