# Node.js http.Agent keep-alive connection reuse flaw (CVE-2026-105481) carried into Node.js 27.0.0-alpha.0.2.0; TLS 1.2 renegotiation deprecation (related CVE-2026-123872)

> CVE-2026-105481 is a medium-severity Node.js http.Agent flaw in which a response already buffered on an idle keep-alive socket can be accepted as the response to a new request. It was fixed in 22.23.4, 24.22.1 and 26.12.1 (2026-10-21) and the fix is carried into Node.js 27.0.0-alpha.0.2.0 (2026-11-26), which also docs-deprecates TLS 1.2 renegotiation and adds an allowRenegotiation opt-in. A separate high-severity TLS 1.2 renegotiation flaw, CVE-2026-123872, was fixed on 2026-11-11.

- **Published:** 2026-11-27T07:34:44Z
- **Last reviewed:** 2026-11-27T07:34:44Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6959
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6959.png
- **ID:** TL-2026-6959
- **Severity:** MEDIUM (CVSS 6.5)
- **Category:** VULNERABILITY
- **Status:** PATCHED
- **Detections:** 9 (1 shown free below) · **IOCs:** 10
- **CVEs:** CVE-2026-105481, CVE-2026-123872

## Description

CVE-2026-105481 (Node.js rating: medium; Red Hat: Moderate, CVSS 6.5, CWE-367) affects the HTTP client connection reuse logic of http.Agent. Per the Node.js October 2026 security release advisory, the guard that destroys idle keep-alive sockets when unexpected data arrives only runs when the event loop polls for I/O. If an unsolicited response is already buffered on the socket at the moment it is handed to a new request, the client parses it as the response to that request. The advisory describes this as an incomplete fix of the earlier CVE-2026-48931. Practical exploitation requires a client that uses an http.Agent with keep-alive (the default for the global agent) and a peer able to write to the connection, such as a malicious or compromised upstream server (per HeroDevs). The advisory credits Hasan Flayyih Abdullah as reporter. Affected lines per Node.js: 22.x, 24.x, 26.x; fixes shipped in v22.23.4, v24.22.1 and v26.12.1 on or shortly after 2026-10-21. The fix checks for pending data before handing a socket to another request and discards the connection if unread data is waiting (per GBHackers).

Node.js 27.0.0-alpha.0.2.0, released 2026-11-26, carries the correction forward; GBHackers states it introduces no new disclosure and that production deployments do not need to move to Node.js 27 to obtain the fix. The same alpha contains the notable change '(SEMVER-MINOR) tls: docs-deprecate TLS renegotiation, add allowRenegotiation opt-in' (commit 4f880d0604, PR #67532, by Tim Perry). Per GBHackers, renegotiation remains enabled by default; applications can set allowRenegotiation: false in tls.createServer() or tls.connect() to test behaviour, and --pending-deprecation can surface warnings in staging. TLS 1.3 does not support renegotiation.

The related CVE-2026-123872 (Node.js rating: high; Red Hat/third-party trackers list CVSS 8.1, CWE-287) was fixed in the 2026-11-11 security releases (v22.23.5, v24.22.3, v26.13.1). A client can change the servername during TLS 1.2 renegotiation and carry existing client-certificate authentication over to a host with a stricter per-hostname policy; the advisory's example is an admin-only client-cert host versus an ordinary client-cert host. Exposure per Red Hat requires Node.js terminating TLS directly across multi-tenant hostnames with heterogeneous mutual-TLS policies on TLS 1.2. Reporter: pimterry. No source reports in-the-wild exploitation, a public PoC, IOCs, or attribution for either CVE. NVD analysis was pending for CVE-2026-105481 at the time of the sources reviewed. Note: the hunt record's severity (MEDIUM) reflects CVE-2026-105481; CVE-2026-123872 is rated high by the Node.js project.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1212 Exploitation for Credential Access
- T1557 Adversary-in-the-Middle
- T1565.002 Transmitted Data Manipulation

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**TLS 1.2 Renegotiation SNI Change on mTLS Connection (CVE-2026-123872) - Auth Bypass** (`TL-2026-6959-SPL-002`)

Flags a single Node.js TLS connection that presented more than one servername across handshake and renegotiation while carrying a client certificate, the behaviour used by CVE-2026-123872 to carry mTLS authentication to a host with a stricter per-hostname policy (for example admin-only versus ordinary client-cert host). Maps to T1212 and T1211, and to T1078 because the attacker rides an already-authenticated client-certificate identity onto a stricter host. No exploitation is reported in the wild; this validates the abuse pattern. Requires an application-side TLS audit log (nodejs:tls_audit) emitting conn_id, servername, event and client_cert_fingerprint.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1212, T1211, T1078
- **Data sources:** nodejs_tls_audit, application_logs
- **Severity:** high
- **Confidence:** medium

### Splunk SPL

```spl
index=app_logs sourcetype="nodejs:tls_audit" tls_version="TLSv1.2" (event="tls_handshake" OR event="tls_renegotiation")
| eval servername=lower(servername)
| stats earliest(_time) AS first_seen latest(_time) AS last_seen values(event) AS events values(servername) AS servernames dc(servername) AS sni_count values(client_cert_fingerprint) AS cert_fingerprints values(client_cert_subject) AS cert_subjects values(src_ip) AS src_ip BY host, conn_id
| where sni_count>1 AND isnotnull(mvfind(events,"tls_renegotiation")) AND isnotnull(cert_fingerprints)
| convert ctime(first_seen) ctime(last_seen)
| table first_seen last_seen host conn_id src_ip servernames cert_subjects cert_fingerprints sni_count
```

### Microsoft KQL

```kql
NodeTlsAudit_CL
| where TimeGenerated > ago(24h)
| where TlsVersion_s == "TLSv1.2" and Event_s in ("tls_handshake", "tls_renegotiation")
| extend ServerName = tolower(ServerName_s)
| summarize Events = make_set(Event_s), ServerNames = make_set(ServerName), SniCount = dcount(ServerName), CertFingerprints = make_set(ClientCertFingerprint_s), CertSubjects = make_set(ClientCertSubject_s), SrcIps = make_set(SrcIp_s), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by Computer, ConnId_s
| where SniCount > 1 and array_index_of(Events, "tls_renegotiation") >= 0 and array_length(CertFingerprints) > 0
| project FirstSeen, LastSeen, Computer, ConnId_s, SrcIps, ServerNames, CertSubjects, CertFingerprints, SniCount
```

### Sigma

```yaml
title: Node.js TLS 1.2 Renegotiation With Changed SNI On mTLS Connection (CVE-2026-123872)
id: 8e4c2d17-5a93-4b6f-a1d0-2f7b9c35e648
status: experimental
description: Detects a TLS 1.2 renegotiation on a client-certificate-authenticated connection where the servername (SNI) differs from the original handshake, the behaviour abused to carry client-certificate authentication to a host with a stricter mTLS policy. Requires the application TLS audit log fields event, tls_version, servername_changed and client_cert_fingerprint.
references:
  - https://nodejs.org/en/blog/vulnerability/november-2026-security-releases
author: Threadlinqs Team
date: 2026-11-27
tags:
  - attack.credential-access
  - attack.t1212
  - attack.defense-evasion
  - attack.t1211
  - attack.privilege-escalation
  - attack.t1078
  - cve.2026.123872
logsource:
  category: application
  product: nodejs
  service: tls_audit
detection:
  selection:
    event: 'tls_renegotiation'
    tls_version: 'TLSv1.2'
    servername_changed: true
  filter_no_cert:
    client_cert_fingerprint: ''
  condition: selection and not filter_no_cert
falsepositives:
  - Clients that legitimately renegotiate with a different SNI between hostnames sharing identical mTLS policy
level: high
```

**Known false positives:**

- Clients legitimately renegotiating between hostnames with identical mTLS policy
- Load-balancer connection reuse across SNI names

**Tuning notes:** Depends on an application-side audit log contract (index app_logs, sourcetype nodejs:tls_audit; JSON fields conn_id, servername, event, tls_version, client_cert_fingerprint); rename to match your onboarding. TLS 1.2 renegotiation is encrypted so network sensors cannot see it. Exclude hostname pairs with identical client-cert policy and raise priority when the new SNI is an admin-only host. Test with allowRenegotiation: false or --pending-deprecation in staging.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Sentinel: Vulnerable [indicator].js Version Installed, Pinned or Pulled (CVE-2026-105481 / CVE-2026-123872) (locked: unlock with TL Creds)
- Sentinel: Admin-Only mTLS Host Accessed With Non-Allowlisted Client Certificate (CVE-2026-123872) (locked: unlock with TL Creds)
- Sentinel: [indicator].js Direct-To-IP Egress To Public Upstream (Rogue Upstream Hunt, CVE-2026-105481) (locked: unlock with TL Creds)
- Sigma: [indicator].js Cleartext HTTP Egress To Public Host (CVE-2026-105481 Exposure) (locked: unlock with TL Creds)
- Sigma: [indicator].js Launched With Renegotiation / Keep-Alive Agent Options (Hunt) (locked: unlock with TL Creds)
- Sigma: Repeated TLS 1.2 Renegotiation On One [indicator].js Connection (CVE-2026-123872 Probing) (locked: unlock with TL Creds)
- Vulnerable [indicator].js Runtime Executing (CVE-2026-105481 / CVE-2026-123872) - Exploitation Exposure (locked: unlock with TL Creds)
- [indicator].js Keep-Alive Response Mismatch / Idle Socket Data (CVE-2026-105481) - Response Spoofing (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [Node.js 27 Alpha Released With HTTP Vulnerability Fix and TLS Renegotiation Opt-In](https://gbhackers.com/node-js-27-alpha-released-with-http-vulnerability/)
- [Node.js October 2026 Security Releases](https://nodejs.org/en/blog/vulnerability/october-2026-security-releases)
- [Node.js November 2026 Security Releases](https://nodejs.org/en/blog/vulnerability/november-2026-security-releases)
- [Node.js v27.0.0-alpha.0.2.0 release notes](https://nodejs.org/en/blog/release/v27.0.0-alpha.0.2.0)
- [Red Hat CVE-2026-105481](https://access.redhat.com/security/cve/CVE-2026-105481)
- [Red Hat CVE-2026-123872](https://access.redhat.com/security/cve/CVE-2026-123872)
- [HeroDevs vulnerability directory: CVE-2026-105481](https://www.herodevs.com/vulnerability-directory/cve-2026-105481)
- [Node.js HTTP Agent Connection Reuse Spoofing (stack.watch)](https://stack.watch/vuln/CVE-2026-105481/)
- [GBHackers: Node.js patches 10 security vulnerabilities (October coverage)](https://gbhackers.com/node-js-patches-10-security-vulnerabilities/)
- [GBHackers: Node.js patches 16 security vulnerabilities (November coverage)](https://gbhackers.com/node-js-patches-16-security-vulnerabilities/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6959
