Title: Hard crash in generateKeyPair on bad `type` · Issue #62874 · nodejs/node · GitHub
Open Graph Title: Hard crash in generateKeyPair on bad `type` · Issue #62874 · nodejs/node
X Title: Hard crash in generateKeyPair on bad `type` · Issue #62874 · nodejs/node
Description: @deepview-autofix flag: To reproduce: require('crypto').generateKeyPair('toString', {}, console.log) require('crypto').generateKeyPairSync('toString') type is unlikely to be attacker-controlled without validation on the application side,...
Open Graph Description: @deepview-autofix flag: To reproduce: require('crypto').generateKeyPair('toString', {}, console.log) require('crypto').generateKeyPairSync('toString') type is unlikely to be attacker-controlled wit...
X Description: @deepview-autofix flag: To reproduce: require('crypto').generateKeyPair('toString', {}, console.log) require('crypto').generateKeyPairSync('toString') type is unlike...
Opengraph URL: https://github.com/nodejs/node/issues/62874
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Hard crash in generateKeyPair on bad `type`","articleBody":"@deepview-autofix flag:\n\n\u003cimg width=\"1170\" height=\"190\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/6c21f8f1-d4f0-4458-867d-3b574d7640e4\" /\u003e\n\nTo reproduce:\n```js\nrequire('crypto').generateKeyPair('toString', {}, console.log)\n```\n```js\nrequire('crypto').generateKeyPairSync('toString')\n```\n\n`type` is unlikely to be attacker-controlled without validation on the application side, so I don't think this is worth a private report and does not qualify as a vuln (also, DoS at most)\n\nBut should still be fixed","author":{"url":"https://github.com/ChALkeR","@type":"Person","name":"ChALkeR"},"datePublished":"2026-04-21T15:46:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/62874/node/issues/62874"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d7b69260-310c-141c-4cc6-75ad4a69b762 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1D0:1956FA:1FB5C0B:2DCB23D:6A4D0B2C |
| html-safe-nonce | 16803095f0462c321e5315dd6158418c5179e0b9ca659d930a352c343837a756 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUQwOjE5NTZGQToxRkI1QzBCOjJEQ0IyM0Q6NkE0RDBCMkMiLCJ2aXNpdG9yX2lkIjoiMTE1NjM3MDYzMTQxNjk0MTM1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6273c5e104a41947f747281b315e220665d982af7116ab84ff7e9b4baced7ffb |
| hovercard-subject-tag | issue:4303752036 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/62874/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a21cae8f1a5e44593544cdf90af65ae73573ca5c62e66f1a9fc1bcc4d1f001b/nodejs/node/issues/62874 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a21cae8f1a5e44593544cdf90af65ae73573ca5c62e66f1a9fc1bcc4d1f001b/nodejs/node/issues/62874 |
| og:image:alt | @deepview-autofix flag: To reproduce: require('crypto').generateKeyPair('toString', {}, console.log) require('crypto').generateKeyPairSync('toString') type is unlikely to be attacker-controlled wit... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ChALkeR |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width