Title: The kDisableNodeOptionsEnv option can be work around by using NODE_REPL_EXTERNAL_MODULE env · Issue #51227 · nodejs/node · GitHub
Open Graph Title: The kDisableNodeOptionsEnv option can be work around by using NODE_REPL_EXTERNAL_MODULE env · Issue #51227 · nodejs/node
X Title: The kDisableNodeOptionsEnv option can be work around by using NODE_REPL_EXTERNAL_MODULE env · Issue #51227 · nodejs/node
Description: Node has an kDisableNodeOptionsEnv embedder flag that disables NODE_OPTIONS env to avoid injecting external code into apps, however it can be bypassed by using the NODE_REPL_EXTERNAL_MODULE env as reported by electron/electron#40770. I u...
Open Graph Description: Node has an kDisableNodeOptionsEnv embedder flag that disables NODE_OPTIONS env to avoid injecting external code into apps, however it can be bypassed by using the NODE_REPL_EXTERNAL_MODULE env as ...
X Description: Node has an kDisableNodeOptionsEnv embedder flag that disables NODE_OPTIONS env to avoid injecting external code into apps, however it can be bypassed by using the NODE_REPL_EXTERNAL_MODULE env as ...
Opengraph URL: https://github.com/nodejs/node/issues/51227
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The kDisableNodeOptionsEnv option can be work around by using NODE_REPL_EXTERNAL_MODULE env","articleBody":"Node has an `kDisableNodeOptionsEnv` embedder flag that disables `NODE_OPTIONS` env to avoid injecting external code into apps, however it can be bypassed by using the `NODE_REPL_EXTERNAL_MODULE` env as reported by https://github.com/electron/electron/pull/40770.\r\n\r\nI understand `kDisableNodeOptionsEnv` only means to disable `NODE_OPTIONS` env, but if we don't also disable `NODE_REPL_EXTERNAL_MODULE` the protection would become meaningless.\r\n\r\nI think we have 2 options to fix this:\r\n1. Disable `NODE_REPL_EXTERNAL_MODULE` env when `kDisableNodeOptionsEnv` is used.\r\n2. Deprecate `kDisableNodeOptionsEnv` and add a new flag that disables all possible ways to inject code.\r\n\r\nI wonder which one would be preferred by Node team. /cc @addaleax @joyeecheung @bnoordhuis ","author":{"url":"https://github.com/zcbenz","@type":"Person","name":"zcbenz"},"datePublished":"2023-12-20T00:59:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/51227/node/issues/51227"}
| 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:7609e320-46df-53e6-a515-70a07d4b7b19 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B860:1013D2:F586D0:152A118:6A4DD98E |
| html-safe-nonce | 559a884ce71dc0480629612b8d2c7208406f120a2df9d37b13c4b5489981798f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODYwOjEwMTNEMjpGNTg2RDA6MTUyQTExODo2QTRERDk4RSIsInZpc2l0b3JfaWQiOiI1MzMyMjY0NTI4OTgwNTk3MTM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 75f549ee65f791d84cdf185d8a0aa681df327a0eefeb7c3892ecee0084f297bf |
| hovercard-subject-tag | issue:2049646698 |
| 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/51227/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c640de27fb617c22070cc9150481093b8b8dc757783080653e17e6b5e93df522/nodejs/node/issues/51227 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c640de27fb617c22070cc9150481093b8b8dc757783080653e17e6b5e93df522/nodejs/node/issues/51227 |
| og:image:alt | Node has an kDisableNodeOptionsEnv embedder flag that disables NODE_OPTIONS env to avoid injecting external code into apps, however it can be bypassed by using the NODE_REPL_EXTERNAL_MODULE env as ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zcbenz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| 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 | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width