Title: util.parseEnv creates additional environment variables when equal sign is in value · Issue #57411 · nodejs/node · GitHub
Open Graph Title: util.parseEnv creates additional environment variables when equal sign is in value · Issue #57411 · nodejs/node
X Title: util.parseEnv creates additional environment variables when equal sign is in value · Issue #57411 · nodejs/node
Description: Version v23.9.0 Platform Darwin 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8122 arm64 Subsystem util.parseEnv What steps will reproduce the bug? Just run the following code: imp...
Open Graph Description: Version v23.9.0 Platform Darwin 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8122 arm64 Subsystem util.parseEnv What steps will reproduce t...
X Description: Version v23.9.0 Platform Darwin 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8122 arm64 Subsystem util.parseEnv What steps will reproduce t...
Opengraph URL: https://github.com/nodejs/node/issues/57411
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"util.parseEnv creates additional environment variables when equal sign is in value","articleBody":"### Version\n\nv23.9.0\n\n### Platform\n\n```text\nDarwin 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8122 arm64\n```\n\n### Subsystem\n\nutil.parseEnv\n\n### What steps will reproduce the bug?\n\nJust run the following code:\n\n```\nimport { parseEnv } from \"node:util\";\nconsole.log(parseEnv(\"A=B=C\"));\n```\n\n\n### How often does it reproduce? Is there a required condition?\n\nProblem occurs on every run. This behaviour doesn't exist when using dotenv library.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nOutput should be:\n\n`{ A: 'B=C' }`\n\n\n### What do you see instead?\n\nOutput is:\n\n`{ A: 'B=C', B: 'C' }`\n\n\n### Additional information\n\nThis behaviour might lead to undesirable side effects (even security might be affected).","author":{"url":"https://github.com/jablonski","@type":"Person","name":"jablonski"},"datePublished":"2025-03-11T11:03:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/57411/node/issues/57411"}
| 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:1427ee5f-7d3c-9f42-d206-730221f00a34 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A976:13B1D:314D58:440C64:6A4C6F1A |
| html-safe-nonce | 9bbbb05a76514013fb1a42ca162b650af78cd4de46885a1d99cea4a10cb29bca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTc2OjEzQjFEOjMxNEQ1ODo0NDBDNjQ6NkE0QzZGMUEiLCJ2aXNpdG9yX2lkIjoiNjYwMDkxOTQwNjYyNzAxODUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 796074cf3d076ce8d5f08f80aa1efb967e74307ed287e66e7db022c93d319e40 |
| hovercard-subject-tag | issue:2910100172 |
| 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/57411/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1140697cc82ed7b023f669d2c223620d199ed477cf0524b87ff2f03818be96a9/nodejs/node/issues/57411 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1140697cc82ed7b023f669d2c223620d199ed477cf0524b87ff2f03818be96a9/nodejs/node/issues/57411 |
| og:image:alt | Version v23.9.0 Platform Darwin 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8122 arm64 Subsystem util.parseEnv What steps will reproduce t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jablonski |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| 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 | 14099438da5379150f15a2892474c7c7e6c0e55e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width