Home › CVE › JavaScript
CVE-2026-123867 — nodejs node
One of 15 nodejs node vulnerabilities published together by NVD: our article covers all of them.
JavaScriptWebCrypto & walletsVulnerabilitiesResearch article
Node.js Per-Host mTLS Authorization Bypass Lets Default-CA Clients Reach Protected Hostnames (CVE-2026-123867)
| CVE | CVE-2026-123867 |
|---|---|
| Vendor and product | nodejs node |
| Published | November 12, 2026 07:10 UTC |
| Research cut-off | November 12, 2026 05:50 UTC |
| Sources reviewed | 2: NVD record (last modified 2026-11-11); CISA KEV catalog |
Executive summary
Node.js contains a mutual-TLS (mTLS) authorization flaw in its TLS server implementation where a per-hostname client-certificate Certificate Authority (CA) configured via server.addContext() is silently ignored if that Server Name Indication (SNI) context lacks its own server certificate [1]. As a result, a client whose certificate is only trusted by the server's default client CA can complete a handshake with a protected hostname and read its response, even though requestCert and rejectUnauthorized are enabled, while legitimately certified clients for that hostname may be rejected [1]. The CVE record rates this CVSS 3.0 4.2 (Medium), vector CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N [1], and maps it to CWE-295, Improper Certificate Validation [1]. Affected versions span Node.js lines prior to 22.23.5, 24.22.3 and 26.13.1, with those three releases containing the fix [1]. Exploitation requires an attacker-controlled client certificate that the default CA trusts, network reachability to the TLS server, and a server configuration using addContext() for per-host client CA separation without a matching per-host server certificate [1]. CVE-2026-123867 is not present in the CISA Known Exploited Vulnerabilities (KEV) catalog as of 2026-11-12, though absence from KEV does not confirm exploitation has not occurred [2]. Operators running multi-tenant or multi-hostname mTLS deployments on affected Node.js versions should upgrade to the fixed release matching their line as the primary action [1].
Key points
- A Node.js TLS logic error in CertCbDone (src/crypto/cryptotls.cc) causes a per-hostname client CA assigned via server.addContext() to be skipped when that SNI context lacks a server certificate, falling back to the default client CA [1].
- A client trusted by the server's default CA, but not the intended per-host CA, can complete mTLS and reach a protected hostname even with requestCert and rejectUnauthorized enabled [1].
- CVSS 3.0 score is 4.2 (Medium), vector CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N; CWE-295 Improper Certificate Validation [1].
- Fixed in Node.js 22.23.5, 24.22.3, and 26.13.1; versions before these within each respective line are affected [1].
- Not listed in the CISA KEV catalog as of 2026-11-12; no confirmed in-the-wild exploitation or public proof of concept is present in the reviewed evidence [2].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-123867 [1] |
| Vendor | OpenJS Foundation / Node.js project [1] |
| Product | Node.js (nodejs node) [1] |
| Component | TLS server implementation, src/crypto/cryptotls.cc, CertCbDone handler [1] |
| Affected platform | Any platform running the affected Node.js runtime with a TLS server using SNI-based client CA contexts [1] |
| Published | 2026-11-11T19:17:33 [1] |
| Last modified | 2026-11-11T19:17:33 [1] |
| Record status | Received [1] |
| CWE | CWE-295, Improper Certificate Validation — the software does not correctly validate a certificate, allowing an entity to be treated as trusted when it should not be [1] |
| CVSS | 3.0: 4.2 MEDIUM, CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N, scored by submitter ce714d77-add3-4f53-aff5-83d477b104bb (Secondary scorer) [1] |
| Related identifiers | OpenJS Foundation security advisories page; Node.js November 2026 security release blog post (referenced, no additional tags given) [1] |
Only one CVSS vector is present in the reviewed evidence; no alternate or vendor-published CVSS score is available for comparison [1].
Technical background
Node.js's TLS module supports serving multiple logical hostnames from a single listening socket using Server Name Indication (SNI), the TLS extension that lets a client state which hostname it is connecting to during the handshake. The server.addContext(hostname, context) API lets an application register a distinct SecureContext — containing its own server certificate, private key and, optionally, its own trusted client CA list — for a specific hostname [1]. This is commonly used in multi-tenant TLS servers where different hostnames must enforce different mutual-TLS trust boundaries, so that a client certificate valid for tenant A's CA cannot be used to authenticate against tenant B's protected hostname.
Mutual TLS (mTLS) extends standard TLS by having the server also demand and validate a client certificate, controlled in Node.js via the requestCert and rejectUnauthorized options. In a correctly functioning per-host configuration, each SNI context's own client CA list should be installed and enforced independently for the hostname it covers, forming the trust boundary that separates clients authorized for one hostname from clients authorized for another [1].
Vulnerability description
The flaw violates the authentication/authorization boundary that per-host client CA configuration is meant to enforce [1]. The defective component is the CertCbDone callback in src/crypto/cryptotls.cc, which is responsible for finalizing the certificate callback during a TLS handshake and applying the correct SNI-selected context, including its client CA list [1]. When operators assign a hostname a dedicated client-certificate CA (protectedCA) through server.addContext() but do not also provide that SNI context with its own server certificate, the per-host client CA fails to take effect, and the handshake continues using the default client CA instead [1].
Consequence: an attacker in possession of a certificate trusted by the server's default client CA — but not by the intended protected CA — can successfully complete an mTLS handshake against the protected hostname and obtain its response [1]. Paradoxically, a client holding a certificate correctly issued under the protected CA can be refused, since the protected CA is the one that was never actually loaded [1].
What the evidence does not establish: the record does not describe impact on hostnames where a dedicated server certificate is present alongside the per-host CA (the triggering condition is explicitly the absence of a server certificate in that SNI context) [1]. It also does not claim this permits certificate forgery, private key compromise, or bypass of TLS encryption itself — the breakdown is confined to which client-certificate CA is actually enforced for the targeted hostname [1].
Root cause analysis
Confirmed: the CVE record states that CertCbDone only installs an SNI context's client CA when an internal function, here referred to as the context-setup routine, reports success for that context, and that this routine reports failure for any SNI context that has no server certificate — causing the client CA update to be skipped and the default CA to remain active [1]. This is a logic error coupling two independent pieces of context configuration — server certificate presence and client CA installation — such that the latter's application is gated on an unrelated precondition (the former) [1].
Analyst assessment: this pattern is consistent with a code path originally written for the common case where addContext() calls supply both a server certificate and a CA, where the failure branch for missing certificates was presumably intended only to skip certificate-related setup but inadvertently also skips CA installation. The sources do not confirm this design history; it is offered only as plausible context for why the defect could persist through testing, since CA-only addContext() calls without a server certificate may be a less common configuration pattern and would not be exercised by tests focused on normal server-certificate-bearing hostnames.
Technical mechanics
- A TLS client initiates a handshake and specifies a target hostname using the SNI extension [1].
- The server's SNI-selection logic matches the hostname to a SecureContext previously registered through server.addContext(host, { ca: protectedCA }), which carries a client CA but no server certificate for that host [1].
- During certificate-callback completion, CertCbDone attempts to apply the matched SNI context, including installing its client CA list for the handshake [1].
- The context-setup routine is invoked to finalize the context; because no server certificate exists in that context, the routine returns failure [1].
- CertCbDone's logic treats that failure as a signal to skip CA installation entirely, rather than only skipping server-certificate-dependent steps, so the previously active default client CA list remains in force for this handshake [1].
- The server proceeds to request and validate the client certificate (if requestCert/rejectUnauthorized are set) against the default CA rather than the intended protectedCA [1].
- A client certificate trusted by the default CA passes validation and the handshake completes, granting access to the protected hostname's TLS endpoint [1].
Client Hello (SNI=protected.example)
-> Server selects SNI context (ca=protectedCA, no server cert)
-> CertCbDone calls context-setup routine
-> context-setup routine returns false (no server cert present)
-> CA installation step skipped
-> Default client CA remains active for this handshake
-> Client cert trusted by default CA is accepted
-> Handshake completes; protected hostname reached without protectedCA authorization
This diagram reflects the mechanism as described in the CVE record [1]; it is not a reproduction of exploit code.
Attack surface and exploitation prerequisites
| Dimension | Detail |
|---|---|
| Access vector | Network (AV:N per CVSS vector) [1] |
| Attack complexity | High (AC:H) — the CVSS vector indicates conditions beyond attacker control must align, consistent with the requirement that the target server use the specific vulnerable addContext()/missing-certificate configuration [1] |
| Privileges required | Low (PR:L) — the attacker must hold a client certificate accepted by the server's default client CA [1] |
| User interaction | None (UI:N) [1] |
| Scope | Unchanged (S:U) [1] |
| Required configuration | Server must use server.addContext() to assign a per-hostname client CA to a hostname that lacks its own server certificate in that SNI context [1] |
| Attacker position | Any network client able to reach the TLS listener and present SNI for the protected hostname; no indication of local-only or adjacent-network restriction [1] |
| Dependencies | requestCert and rejectUnauthorized may be enabled on the server, since the bypass occurs despite them; the attack also depends on possession of a certificate trusted by the default CA [1] |
The prerequisite access level and complexity above are read from the CVSS vector rather than independently confirmed by a separate exploitation narrative; the vector values should not be treated as a substitute for an exploitability demonstration [1].
Exploitation scenarios and attack lifecycle
Illustrative scenario (not confirmed as executed in the wild): An organization operates a single Node.js TLS listener serving several hostnames for different tenants, where Tenant B's hostname is meant to accept only client certificates issued under Tenant B's own CA, configured via server.addContext() without an accompanying per-host server certificate [1]. An actor who already holds a valid client certificate trusted under the server's default CA (for example, issued for a lower-trust or public-facing hostname) sends a TLS handshake with SNI set to Tenant B's hostname. Because the per-host client CA for that hostname is never installed, the server validates the attacker's certificate against the default CA instead and accepts it, granting the attacker access to Tenant B's protected endpoint and its response data [1]. Defensive opportunities include reviewing TLS server configuration for addContext() calls that omit server certificates, and monitoring for client connections to protected hostnames whose client certificate was not issued by the hostname's intended CA (detectable through application-level logging of the negotiated peer certificate issuer versus the expected issuer).
Impact analysis
| Dimension | Demonstrated / plausible impact |
|---|---|
| Confidentiality | Low impact per CVSS (C:L); an unauthorized client can read the protected hostname's response, representing limited confidentiality loss as reflected in the CVSS subscore [1] |
| Integrity | Low impact per CVSS (I:L); no detail in the record on data modification, but the vector reflects some integrity exposure [1] |
| Availability | None (A:N) — no availability impact is indicated [1] |
| Authentication/authorization | Direct bypass of the per-host client-certificate authorization boundary; a client not authorized for a specific hostname can still authenticate to it [1] |
| Privilege boundaries | Breaks the intended separation between hostnames relying on distinct client CAs, in effect granting cross-hostname access to credentials never meant to cross that boundary [1] |
| Data/privacy | Plausible exposure of data served only to clients authorized under the protected hostname's CA, to an extent dependent on what that hostname serves (not detailed in the record) |
| Business operations | Plausible risk for multi-tenant or segregated-trust deployments relying on Node.js addContext() for per-host client CA isolation; not quantified by the sources |
| Regulatory/contractual | Not established by the reviewed sources |
Affected products and versions
| Vendor | Product | Affected versions | Platform | Fixed version | Source / confidence |
|---|---|---|---|---|---|
| OpenJS Foundation | Node.js | ≥ 0.0.0, < 22.23.5 | All platforms running affected Node.js | 22.23.5 | NVD/CVE record [1], confirmed vendor-published range |
| OpenJS Foundation | Node.js | ≥ 23.0.0, < 24.22.3 | All platforms running affected Node.js | 24.22.3 | NVD/CVE record [1], confirmed vendor-published range |
| OpenJS Foundation | Node.js | ≥ 25.0.0, < 26.13.1 | All platforms running affected Node.js | 26.13.1 | NVD/CVE record [1], confirmed vendor-published range |
The description additionally states the issue affects the Node.js 22, 24 and 26 release lines collectively [1], which aligns with the three version ranges above. Exposure is conditional on the application code using server.addContext() to assign a per-hostname client CA without a matching per-host server certificate; deployments not using this pattern are not described as exposed, though the record does not provide a method to enumerate such configurations automatically [1]. No exclusions for specific operating systems or build configurations are stated.
Exploitation and threat intelligence status
Confirmed exploitation in the wild: not established by the reviewed sources. CVE-2026-123867 does not appear in the CISA Known Exploited Vulnerabilities (KEV) catalog as of the catalog check dated 2026-11-12 [2]. CISA's own catalog notes that non-listing is not evidence that exploitation has not occurred [2]. No public proof-of-concept code, exploit tooling, threat actor attribution, campaign, or targeted-sector information is present in the reviewed sources. The only exploitation-relevant status available is the absence from KEV; this should be read as the absence of confirmed, catalogued government-tracked exploitation, not as an assurance of safety [2].
Indicators of compromise
No file hashes, filenames, domains, IP addresses, URLs, process names, command lines, log event identifiers, or network signatures are provided by the reviewed sources [1, 2]. Organizations cannot rely on a published indicator set for this issue; any detection must instead rely on configuration review and application-level logging, as described in the next section. Any IOC matching this CVE from external sources not in this evidence pack should be independently validated before use, since indicators generally go stale and require corroboration.
Detection and exposure assessment
- Inventory Node.js runtime versions across TLS-serving hosts using the runtime's own version command (node -v or node --version), and compare the reported version against the fixed releases 22.23.5, 24.22.3, and 26.13.1 [1]. A version below the applicable fixed release indicates the runtime contains the defect; a version at or above it indicates the fix is present, assuming no custom build modifications.
- Review server-side TLS setup code for calls to server.addContext(hostname, context) and identify any context object that supplies a ca property (client CA) without also supplying cert and key for that same hostname [1]. This configuration pattern is the specific condition under which the defect is triggered.
- For servers using requestCert and rejectUnauthorized, audit application logs (where peer certificate issuer is logged) to confirm that connections accepted for protected hostnames present client certificates issued under the expected per-host CA rather than the server's default CA [1]. Absence of such logging is itself an exposure gap to remediate, independent of this CVE.
- A version check alone (step 1) confirms whether the vulnerable code is present, not whether the vulnerable configuration pattern (step 2) is actually in use or has been exploited; both checks are needed to assess real exposure.
- No vendor-supplied scanner, specific log signature, or dedicated detection script is given in the reviewed sources beyond the version and configuration review described above [1].
Immediate mitigation
- For every TLS server configuration identified in detection step 2 that assigns a per-host client CA via server.addContext() without a server certificate for that same SNI context, add the appropriate server certificate and private key to that context as an interim measure, since the defect is specifically triggered by the missing server certificate [1]. This follows directly from the documented trigger condition rather than from an explicit vendor-issued workaround statement, and it should be verified in a non-production environment before change to confirm it does not break hostname routing expected by clients.
- Where adding a server certificate to the affected SNI context is not immediately feasible, restrict network reachability to the protected hostname (for example through firewall rules or a reverse proxy enforcing hostname-based access control in front of the Node.js listener) to reduce the population of clients that can attempt SNI-based access to it. This reduces exposure but does not close the underlying authorization gap and should be treated as temporary.
- Increase monitoring of connections to protected hostnames by comparing the client certificate issuer in application logs against the hostname's intended CA, to detect default-CA clients reaching a protected hostname, as described in detection step 3 [1].
- None of these three measures replace upgrading the Node.js runtime; they are intended only to reduce exposure until the update described in Permanent remediation is applied.
Permanent remediation
The OpenJS Foundation/Node.js project published fixed releases 22.23.5, 24.22.3, and 26.13.1 for the Node.js 22.x, 24.x and 26.x lines respectively, as stated in the CVE record and referenced in the Node.js November 2026 security release announcement [1]. Administrators should upgrade affected hosts to the fixed release matching their current major line:
- Node.js 22.x deployments below 22.23.5 should be upgraded to 22.23.5 or later [1].
- Node.js 24.x deployments below 24.22.3 should be upgraded to 24.22.3 or later [1].
- Node.js 26.x deployments below 26.13.1 should be upgraded to 26.13.1 or later [1].
The reviewed sources do not provide a separate configuration change required after upgrading beyond applying the runtime update itself; no additional post-upgrade setting is described in the record [1]. Standard Node.js upgrade practice requires restarting the Node.js process for the new runtime binary to take effect, since Node.js does not apply binary updates to a running process; this is standard behavior of the platform rather than a detail stated in the CVE record. Before upgrading, operators should take a configuration backup of TLS context definitions, schedule the change within a maintenance window given the restart requirement, and verify a rollback path to the previous binary/version in case of regression, consistent with standard operational change practice (not vendor-specific guidance in the sources).
Workarounds and compensating controls
No vendor-documented workaround distinct from upgrading is present in the reviewed sources [1]. The configuration change described in Immediate mitigation step 1 (adding a server certificate to the affected SNI context) addresses the specific triggering condition described in the record and may prevent the bypass without an upgrade, but it is an analyst-derived compensating control inferred from the documented root cause, not a vendor-confirmed workaround, and it has not been independently validated in the sources reviewed. Network-level access restriction (Immediate mitigation step 2) is a generic compensating control with residual risk: any client that is permitted network access to the hostname and holds a default-CA-trusted certificate remains able to exploit the flaw. Neither measure is equivalent to the vendor fix because neither corrects the underlying code defect in CertCbDone.
Validation and verification
- Confirm the installed Node.js version using node -v on each updated host and verify it equals or exceeds 22.23.5, 24.22.3, or 26.13.1 as appropriate to the line [1].
- Re-review server.addContext() calls in the application's TLS setup to confirm every per-host client CA context also carries a server certificate, closing the specific condition described in the root cause [1].
- Re-test, in a controlled non-production environment, that a client certificate trusted only by the default CA is rejected when presented against the protected hostname post-upgrade, and that a certificate issued under the protected CA is accepted — this exercises the authorization boundary the fix restores.
- Review application logs for the period before and after remediation to confirm no unexpected client-certificate issuer mismatches occurred against protected hostnames, per the logging approach in Detection step 3.
- Confirm any temporary compensating controls (added server certificates, network restrictions) are either retained deliberately or removed in a documented, approved change after the version upgrade is verified, with the decision and date recorded for audit purposes.
- Record the owner, date, Node.js version before and after, and any exceptions (e.g., hosts not yet upgraded) in a remediation tracking record, since a single check does not establish that a system remains secure going forward.
Incident response
If unauthorized access to a protected hostname via a default-CA client certificate is suspected: first scope the affected hostnames and time window by correlating TLS access logs with the known client-certificate issuer for each hostname, to identify connections where the issuer did not match the hostname's intended protected CA [1]. Preserve relevant TLS/application logs and, where feasible, packet captures covering the suspected period before making configuration changes, to avoid destroying evidence. Contain by applying the Immediate mitigation measures (adding the missing server certificate to the SNI context, or restricting network reachability) to stop further unauthorized handshakes while investigation continues. Where the protected hostname served sensitive data, treat any data retrievable by the misauthenticated session as potentially disclosed and evaluate notification obligations against the sensitivity of that data (not specified by the sources, as the record does not characterize what any given protected hostname serves). Rotate any credentials or secrets that may have been reachable through the protected hostname's response if such material could have been exposed. After containment, apply the permanent remediation (runtime upgrade) and validate per the checklist above before returning the hostname to full production exposure. Document findings, including whether the vulnerable addContext() pattern existed elsewhere in the estate, as a lessons-learned input to the hardening measures below.```none of this implies that exploitation occurred in this case; it is written as a general procedure to follow if suspected.
Security hardening and prevention
The following are defence-in-depth measures broader than this specific CVE:
- Require that every server.addContext() call supplying a client CA also supplies a matching server certificate for that SNI context, and add this as a code-review checklist item for TLS configuration changes, to prevent recurrence of this exact configuration pattern [1].
- Add automated integration tests that specifically exercise per-hostname mTLS behavior — verifying that a client certificate valid under one hostname's CA is rejected when presented to a different protected hostname — as regression coverage for authorization boundaries in multi-tenant TLS configurations.
- Maintain a current inventory of Node.js runtime versions across all TLS-serving services and track upstream security releases (such as the Node.js security release blog referenced in this record) as part of routine patch management [1].
- Log, at the application layer, the negotiated SNI hostname and the validated client certificate issuer for every mTLS connection, enabling the detection approach described earlier to be run continuously rather than only during incident response.
- Apply least-privilege network segmentation so that protected hostnames are reachable only from the client populations that legitimately need them, reducing the pool of potential default-CA-certified clients that could reach a misconfigured context.
Risk assessment
Technical severity is Medium per the available CVSS 3.0 score of 4.2 [1], reflecting limited confidentiality and integrity impact with no availability impact and a high attack-complexity rating. Actual organizational risk depends on factors not captured by the base score: whether an organization uses the specific server.addContext() pattern that triggers the flaw, how sensitive the data served by any affected protected hostname is, and how broad the population of default-CA-trusted clients is. No confirmed in-the-wild exploitation or public proof of concept is recorded in the reviewed sources, and the CVE is not in the CISA KEV catalog as of 2026-11-12 [2], which lowers near-term urgency relative to actively exploited flaws but does not eliminate risk given KEV's documented limitation as a non-exhaustive signal [2]. Analyst assessment, not a replacement for the CVSS score: for organizations running multi-tenant Node.js TLS servers with per-host client CA separation, remediation should be prioritized as high within normal patch cycles because the flaw directly undermines an authorization boundary that such deployments depend on; for organizations not using server.addContext() with per-host client CAs, priority can follow standard Node.js patch cadence since the triggering configuration is not present. This assessment assumes the version-and-configuration review described in Detection has been performed to establish which category applies.
Conclusion
The core flaw is a logic error in Node.js's TLS certificate-callback handling that causes a per-hostname client CA to be silently dropped in favor of the server's default client CA whenever that hostname's SNI context lacks its own server certificate, undermining mutual-TLS authorization isolation between hostnames [1]. Operators of Node.js TLS servers using server.addContext() for per-host client CA separation, particularly in multi-tenant or segregated-trust deployments, should act. The most urgent step is to either add the missing server certificate to any affected SNI context or restrict network exposure to the protected hostname while planning an upgrade. The permanent fix is upgrading to Node.js 22.23.5, 24.22.3, or 26.13.1 depending on the deployed line [1]. Closing this issue with confidence requires confirming, post-upgrade, that default-CA-trusted clients are rejected by protected hostnames and that no exploitation indicators are found in logs covering the exposure window; the reviewed sources provide no exploitation evidence, IOCs, or KEV listing to date [1, 2].
Remediation checklist
- Inventory Node.js runtime versions on all TLS-serving hosts using node -v and identify any below 22.23.5 (22.x line), 24.22.3 (24.x line), or 26.13.1 (26.x line) [1].
- Upgrade affected Node.js installations to 22.23.5, 24.22.3, or 26.13.1 as applicable, restart the Node.js process, and verify the new version with node -v [1].
- Before upgrading, review TLS server code for server.addContext() calls that supply a client ca without a matching server certificate for the same hostname, and add the missing server certificate as an interim mitigation [1].
- Where immediate certificate addition is not feasible, restrict network reachability to the affected protected hostname via firewall or reverse-proxy controls until the upgrade is applied.
- After upgrade, test in a non-production environment that a default-CA-only client certificate is rejected against the protected hostname and that the correct per-host CA certificate is accepted.
- Enable or review application-level logging of negotiated client certificate issuer per hostname to detect CA mismatches against protected hostnames going forward [1].
- Record remediation evidence (version before/after, date, owner, any exceptions) for each host in a tracking record, and remove temporary compensating controls only after upgrade verification is complete.
Evidence gaps
- Root cause beyond the documented code logic (why the context-setup routine's failure path was coupled to CA installation) is not confirmed by the sources; settling this would require the Node.js project's internal design history or commit discussion.
- No public proof-of-concept or exploitation evidence is available; confirming real-world exploitation status would require threat intelligence reporting or incident data not present in this evidence pack.
- No indicators of compromise (hashes, IPs, log signatures) are provided; detection relies solely on configuration and version review, with no indicator set to validate against.
- The reviewed sources do not state whether a restart/reload is explicitly documented as required by the vendor advisory beyond standard Node.js upgrade behavior; this is inferred from general platform behavior, not vendor text.
- Scope and prevalence of the vulnerable server.addContext() configuration pattern across real-world deployments is not established; determining this would require a survey of production TLS configurations.
References
- CVE-2026-123867 record. NIST National Vulnerability Database (NVD), 2026-11-11. https://nvd.nist.gov/vuln/detail/CVE-2026-123867. Accessed 2026-11-12.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-12. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-12.
Summary
A per-host mutual-TLS authorization bypass in Node.js lets a client authorized for the default hostname reach a protected hostname it is not authorized for. When a TLS server assigns a hostname a different client-certificate CA with server.addContext(host, { ca: protectedCA }) but no server certificate in that SNI context, the per-host client CA is never installed and the handshake falls back to the default client CA. In src/crypto/crypto_tls.cc, CertCbDone installs the SNI context's CA only when setSniContext succeeds, but setSniContext returns false for a context with no server certificate, so a CA-only SNI context silently keeps the default CA. A client holding a certificate trusted by the default CA, but not the protected CA, can therefore complete mTLS to the protected hostname and read its response even with requestCert and rejectUnauthorized enabled, while a client certified by the protected CA is rejected. This vulnerability affects Node.js 26.x, 24.x, and 22.x.
Severity breakdown
Medium · 4.2
An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- yes, a normal user account
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- low on confidentiality and integrity, none on availability
Weakness
- CWE-295: Improper Certificate Validation
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| nodejs node | ≥ 0.0.0, < 22.23.5 | 22.23.5 |
| ≥ 23.0.0, < 24.22.3 | 24.22.3 | |
| ≥ 25.0.0, < 26.13.1 | 26.13.1 |
References by type
Other references
Affected
- nodejs node
Frequently asked questions
What is CVE-2026-123867?
Node.js contains a mutual-TLS (mTLS) authorization flaw in its TLS server implementation where a per-hostname client-certificate Certificate Authority (CA) configured via server.addContext() is silently ignored if that Server Name Indication (SNI) context lacks its own server certificate. Weakness type: Improper Certificate Validation (CWE-295).
How severe is CVE-2026-123867?
CVE-2026-123867 has a CVSS 3.1 base score of 4.2 (medium), from the CNA. An attacker with a normal user account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-123867 being exploited?
Not as far as is known: CVE-2026-123867 is not in CISA's Known Exploited Vulnerabilities catalog as of November 28, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-123867?
nodejs node ≥ 0.0.0, < 22.23.5 (fixed in 22.23.5); nodejs node ≥ 23.0.0, < 24.22.3 (fixed in 24.22.3); nodejs node ≥ 25.0.0, < 26.13.1 (fixed in 26.13.1).
How do I fix CVE-2026-123867?
Inventory Node.js runtime versions on all TLS-serving hosts using node -v and identify any below 22.23.5 (22.x line), 24.22.3 (24.x line), or 26.13.1 (26.x line). Upgrade affected Node.js installations to 22.23.5, 24.22.3, or 26.13.1 as applicable, restart the Node.js process, and verify the new version with node -v. Before upgrading, review TLS server code for server.addContext() calls that supply a client ca without a matching server certificate for the same hostname, and add the missing server certificate as an interim mitigation.