Title: OOB read in `Buffer.prototype.indexOf` · Issue #62873 · nodejs/node · GitHub
Open Graph Title: OOB read in `Buffer.prototype.indexOf` · Issue #62873 · nodejs/node
X Title: OOB read in `Buffer.prototype.indexOf` · Issue #62873 · nodejs/node
Description: From @deepview-autofix: Not a vuln because this is not in any release yet To reproduce (you need a pre-release or main): Welcome to Node.js v26.0.0-nightly20260421eb54e709c7. Type ".help" for more information. > Buffer.alloc(1).indexOf(1...
Open Graph Description: From @deepview-autofix: Not a vuln because this is not in any release yet To reproduce (you need a pre-release or main): Welcome to Node.js v26.0.0-nightly20260421eb54e709c7. Type ".help" for more ...
X Description: From @deepview-autofix: Not a vuln because this is not in any release yet To reproduce (you need a pre-release or main): Welcome to Node.js v26.0.0-nightly20260421eb54e709c7. Type ".help"...
Opengraph URL: https://github.com/nodejs/node/issues/62873
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OOB read in `Buffer.prototype.indexOf`","articleBody":"From @deepview-autofix:\n\u003cimg width=\"1170\" height=\"190\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/6af411cf-2a11-488c-9ec7-8f9b58a31a5b\" /\u003e\n\nNot a vuln because this is not in any release yet\n\nTo reproduce (you need a pre-release or main):\n```\nWelcome to Node.js v26.0.0-nightly20260421eb54e709c7.\nType \".help\" for more information.\n\u003e Buffer.alloc(1).indexOf(1,0,-10)\n4\n\u003e Buffer.alloc(1).indexOf(2,0,-10)\n65\n\u003e Buffer.alloc(1).indexOf(255,0,-10)\n292\n\u003e Buffer.alloc(65).indexOf(1,0,-1)\n104\n\u003e Buffer.alloc(65).indexOf(1,0,-1)\n664\n\u003e Buffer.alloc(65).indexOf(1,0,-1)\n14656\n\u003e Buffer.alloc(2048).indexOf(145,0,-1)\n189041\n```\n\nCode involved:\nhttps://github.com/nodejs/node/blob/b2248fd37020cbffc7415e01f89d44171e4963d9/src/node_buffer.cc#L1187-L1188\n\nNothing validates limits on that, either in native side or in JS.\n\nRegression since https://github.com/nodejs/node/pull/62390\n\n\n","author":{"url":"https://github.com/ChALkeR","@type":"Person","name":"ChALkeR"},"datePublished":"2026-04-21T15:15:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/62873/node/issues/62873"}
| 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:965f098f-b524-b521-ecde-39968c9a101d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D104:1E79:15A6C99:1F23A0C:6A4D1DB8 |
| html-safe-nonce | 00b50c78bf292cc64873b2f6fb4af8d4094d740cb0251d723846e96dfbe48995 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTA0OjFFNzk6MTVBNkM5OToxRjIzQTBDOjZBNEQxREI4IiwidmlzaXRvcl9pZCI6IjQ2ODI3Nzc5MTY2MjIwNTI3OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fcf259b5510f2aece2430505429ccba9890666f45eb4ccbd311b19e4e9d47aae |
| hovercard-subject-tag | issue:4303567344 |
| 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/62873/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d3804a51158de239e6d12c5200989f7f567b4236a5db52fee91a292ef3213055/nodejs/node/issues/62873 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d3804a51158de239e6d12c5200989f7f567b4236a5db52fee91a292ef3213055/nodejs/node/issues/62873 |
| og:image:alt | From @deepview-autofix: Not a vuln because this is not in any release yet To reproduce (you need a pre-release or main): Welcome to Node.js v26.0.0-nightly20260421eb54e709c7. Type ".help" for more ... |
| 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 | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| 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 | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width