Title: `dns.lookupService` triggers a SIGABRT when passed a Buffer · Issue #64877 · nodejs/node · GitHub
Open Graph Title: `dns.lookupService` triggers a SIGABRT when passed a Buffer · Issue #64877 · nodejs/node
X Title: `dns.lookupService` triggers a SIGABRT when passed a Buffer · Issue #64877 · nodejs/node
Description: Version v26.5.1 Platform Linux bombe-mint 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? Run the following code with n...
Open Graph Description: Version v26.5.1 Platform Linux bombe-mint 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduc...
X Description: Version v26.5.1 Platform Linux bombe-mint 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduc...
Opengraph URL: https://github.com/nodejs/node/issues/64877
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`dns.lookupService` triggers a SIGABRT when passed a Buffer","articleBody":"### Version\n\nv26.5.1\n\n### Platform\n\n```text\nLinux bombe-mint 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nRun the following code with `node test.js`:\n```js\nconst dns = require('dns');\n\nconst invalidAddress = Buffer.from('127.0.0.1');\ndns.lookupService(invalidAddress, 80, (err) => console.log(err))\n```\n\n### How often does it reproduce? Is there a required condition?\n\nIt reproduces reliably every time that the above code is run.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nWhen an invalid address is passed, a TypeError should be thrown like:\n```js\nTypeError [ERR_INVALID_ARG_VALUE]: The argument 'address' is invalid.\n```\n\n### What do you see instead?\n\n```js\n # /usr/local/n/versions/node/26.5.1/bin/node[144772]: void node::cares_wrap::(anonymous namespace)::GetNameInfo(const FunctionCallbackInfo\u003cValue> &) at ../src/cares_wrap.cc:2048\n # Assertion failed: args[1]->IsString()\n\n----- Native stack trace -----\n\n 1: 0x81d228 node::Assert(node::AssertionInfo const&) [/usr/local/n/versions/node/26.5.1/bin/node]\n 2: 0x8b268a [/usr/local/n/versions/node/26.5.1/bin/node]\n 3: 0x70aca7dcfae9 \n\n----- JavaScript stack trace -----\n\n1: lookupService (node:dns:288:21)\n2: /home/username/test.js:4:5\n3: node:internal/modules/cjs/loader:1934:14\n4: node:internal/modules/cjs/loader:2074:10\n5: node:internal/modules/cjs/loader:1656:32\n6: node:internal/modules/cjs/loader:1448:12\n7: wrapModuleLoad (node:internal/modules/cjs/loader:261:19)\n8: executeUserEntryPoint (node:internal/modules/run_main:154:5)\n9: node:internal/main/run_main_module:33:47\n\n\nAborted (core dumped)\n```\n\n### Additional information\n\nIt looks like there is some missing input validation on the JavaScript side. The issue is however caught by the underlying cpp code, preventing security issues.","author":{"url":"https://github.com/davidebombelli","@type":"Person","name":"davidebombelli"},"datePublished":"2026-07-31T17:30:16Z","url":"https://github.com/nodejs/node/issues/64877"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:0ad33392-fe3f-a88c-38ba-f6ff4bffa0b7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD18:3EED53:6C363B:905CA9:6AED21CB |
| html-safe-nonce | a81243cd75ea1bb4188a8957f891dae009d2ba94b00d62892b738eea3e2c65f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDE4OjNFRUQ1Mzo2QzM2M0I6OTA1Q0E5OjZBRUQyMUNCIiwidmlzaXRvcl9pZCI6IjM5MDg2NDYyNjM4MDc4Nzc1NzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 52dbdbda3a2e5d05247b9318154ac2e462fa87718f5146e6ab3d3c37313f3991 |
| hovercard-subject-tag | issue:5031937342 |
| 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/64877/issue_layout |
| twitter:image | https://opengraph.githubassets.com/afead8f5df951a6d344ab570267eabf230f1a2b5da5419f9b0aee40e0a818d6e/nodejs/node/issues/64877 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/afead8f5df951a6d344ab570267eabf230f1a2b5da5419f9b0aee40e0a818d6e/nodejs/node/issues/64877 |
| og:image:alt | Version v26.5.1 Platform Linux bombe-mint 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davidebombelli |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6 |
| 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 | 707a24b346ac8a82878b9c084efaa38a997660cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width