CVE-2026-123871
Patch Available.
This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.
Overview
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. It uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, and it is widely used for web applications and server-side development.
An information exposure vulnerability (CVE-2026-123871) has been identified in Node.js proxy configuration handling, which writes the raw proxy URL, including any username and password, into ERR_PROXY_INVALID_CONFIG error messages. Credentials that Node.js redacts elsewhere can therefore end up in stderr, container logs, log aggregation and crash reporting services.
This issue affects multiple versions of Node.js. Within NES for Node.js, only the v22 line is affected.
Details
Module Info
- Product: Node.js
- Affected packages:
node - Affected versions: >=0.0.0 <22.23.5, >=23.0.0 <24.22.3, >=25.0.0 <26.13.1
- GitHub repository: https://github.com/nodejs/node
- Published packages: https://github.com/nodejs/node/releases/tag/v22.23.4
- Package manager: Not applicable. Node.js is distributed as runtime builds from nodejs.org rather than as a published npm package.
- Fixed in: OSS Node.js 22.23.5, 24.22.3, 26.13.1; NES for Node.js v22.23.6
Vulnerability Info
This Medium-severity vulnerability is found in the node package in multiple versions of Node.js. When the http_proxy or https_proxy environment variable contains a CR or LF character, parseProxyConfigFromEnv throws ERR_PROXY_INVALID_CONFIG with the proxy URL interpolated into the message. The same happens when new URL() fails in the ProxyConfig constructor. In both cases the message carries the raw URL, username and password included.
The proxy URL comes from the environment, but the defect is the sink: a secret that Node.js redacts everywhere else is emitted verbatim into a much wider audience than the process environment, such as stderr, container logs, log aggregation and crash reporting services. An earlier fix, CVE-2026-48615, redacted the username and password from ProxyConfig.href but missed these error paths. The fix adds a redactProxyUrl() helper that strips the userinfo before the URL goes into the error message.
Mitigation
The odd-numbered Node.js 23.x and 25.x lines covered by the affected ranges are End-of-Life and will not receive upstream updates to address this issue. For more information see here.
Users of the affected components should apply one of the following mitigations:
- Upgrade to a supported Node.js release that carries the fix (v22.23.5, v24.22.3 or v26.13.1 or later).
- Migrate affected applications away from the End-of-Life Node.js release lines.
- Leverage a commercial support partner like HeroDevs for post-EOL security support.
Credits
- p-v-p (finder)