Title: Should we officially "deprecate" Invoke-Expression? · Issue #11662 · PowerShell/PowerShell · GitHub
Open Graph Title: Should we officially "deprecate" Invoke-Expression? · Issue #11662 · PowerShell/PowerShell
X Title: Should we officially "deprecate" Invoke-Expression? · Issue #11662 · PowerShell/PowerShell
Description: Summary of the new feature/enhancement Opening issue to get feedback per our shiproom conversation. We have publicly stated that Invoke-Expression should be avoided. There are too many inherent security risks built into it. We continue t...
Open Graph Description: Summary of the new feature/enhancement Opening issue to get feedback per our shiproom conversation. We have publicly stated that Invoke-Expression should be avoided. There are too many inherent sec...
X Description: Summary of the new feature/enhancement Opening issue to get feedback per our shiproom conversation. We have publicly stated that Invoke-Expression should be avoided. There are too many inherent sec...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11662
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should we officially \"deprecate\" Invoke-Expression?","articleBody":"# Summary of the new feature/enhancement\r\n\r\n\u003c!-- \r\nA clear and concise description of what the problem is that the new feature would solve.\r\nTry formulating it in user story style (if applicable):\r\n'As a user I want X so that Y.' with X being the being the action and Y being the value of the action.\r\n--\u003e\r\nOpening issue to get feedback per our shiproom conversation.\r\n\r\nWe have publicly stated that `Invoke-Expression` should be avoided. There are too many inherent security risks built into it. We continue to get questions in the Docs repo about how and why it should be used, and asks for useful examples.\r\n\r\nWe have the ability, in code, to set an attribute on the cmdlet that marks it as deprecated. Should this change be made? Are there compelling cases for the use of this cmdlet?","author":{"url":"https://github.com/sdwheeler","@type":"Person","name":"sdwheeler"},"datePublished":"2020-01-22T22:28:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":59},"url":"https://github.com/11662/PowerShell/issues/11662"}
| 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:97f414ef-2d0d-6570-7c1e-9ad656f4e58d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86F8:13DDC4:184A9DB:21A382D:6A4EB37F |
| html-safe-nonce | c2364aee97db49f8292026b2392eb7088408abed7284bff1084eccc1875f87a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkY4OjEzRERDNDoxODRBOURCOjIxQTM4MkQ6NkE0RUIzN0YiLCJ2aXNpdG9yX2lkIjoiMTk4MTQxMjI3NTM1NzkyMjE3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a01b6b6d33713beabd2f0e050d41b69ac6c070d013a5da141f4c4976a6d85412 |
| hovercard-subject-tag | issue:553832029 |
| 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/PowerShell/PowerShell/11662/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f240cd1efcd79928fdc0c3043ed96a0404f3cbadfffadb0d2133f5d9e2810cec/PowerShell/PowerShell/issues/11662 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f240cd1efcd79928fdc0c3043ed96a0404f3cbadfffadb0d2133f5d9e2810cec/PowerShell/PowerShell/issues/11662 |
| og:image:alt | Summary of the new feature/enhancement Opening issue to get feedback per our shiproom conversation. We have publicly stated that Invoke-Expression should be avoided. There are too many inherent sec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sdwheeler |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width