NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection
NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.1 and 2.12.9, an MQTT client could include protocol control characters in subscription filters that were later forwarded as NATS protocol data to route or leafnode connections, corrupting the forwarded protocol stream and allowing injection of unintended NATS protocol operations. This issue is fixed in versions 2.14.1 and 2.12.9.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-58213
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 02:24 UTC · Revision 1
Source evidence
NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection
core-osv · Original sourcePublished 8 Jul 2026, 19:52 UTC
NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.1 and 2.12.9, an MQTT client could include protocol control characters in subscription filters that were later forwarded as NATS protocol data to route or leafnode connections, corrupting the forwarded protocol stream and allowing injection of unintended NATS protocol operations. This issue is fixed in versions 2.14.1 and 2.12.9.
osv:CVE-2026-58213
Complete source record
{
"id": "6793aba8d8b9122977f0e5692a2b6df86a909726b6330ad10b54ca87a32624e9",
"url": "https://osv.dev/vulnerability/CVE-2026-58213",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection",
"summary": "NATS Server is a high-performance server for NATS.io, the cloud and edge native messaging system. Prior to 2.14.1 and 2.12.9, an MQTT client could include protocol control characters in subscription filters that were later forwarded as NATS protocol data to route or leafnode connections, corrupting the forwarded protocol stream and allowing injection of unintended NATS protocol operations. This issue is fixed in versions 2.14.1 and 2.12.9.",
"evidence": "osv:CVE-2026-58213",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-58213",
"aliases": [
"BIT-nats-2026-58213",
"CVE-2026-58213",
"GHSA-qrcv-3558-gj4f"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nats-io/nats-server",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "5919e2bb31ba21cd3f3da4f148f5f5cd44e1faf7"
},
{
"introduced": "0cbd01caf8f29011c26273ff7662addd3830396a"
},
{
"fixed": "cb557cd5d3ee8b4a253071d9923730d7d5588f99"
},
{
"fixed": "366837cfc65ab9ccb4f98193c65e8daf238582d8"
},
{
"fixed": "64ebae40051ee497c481e10f316238faf0de1736"
},
{
"fixed": "f14856b9e57a36818f43851cb69b6e33670885c9"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.12.9"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.14.0"
},
{
"fixed": "2.14.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "366837cfc65ab9ccb4f98193c65e8daf238582d8"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "64ebae40051ee497c481e10f316238faf0de1736"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "f14856b9e57a36818f43851cb69b6e33670885c9"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "5919e2bb31ba21cd3f3da4f148f5f5cd44e1faf7"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.12.9"
},
{
"range": [
{
"fixed": "cb557cd5d3ee8b4a253071d9923730d7d5588f99"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.14.1"
}
]
}
}
],
"versions": [
"v2.14.1-RC.2",
"v2.12.9-RC.2",
"v2.14.1-RC.1",
"v2.12.9-RC.1",
"v2.12.8",
"v2.14.0",
"v2.12.7",
"v2.12.4",
"v2.12.6",
"v2.12.5",
"v2.12.5-RC.2",
"v2.12.5-RC.1",
"v2.12.4-RC.6",
"v2.12.4-RC.5",
"v2.12.4-RC.4",
"v2.12.2",
"v2.12.4-RC.3",
"v2.12.4-RC.2",
"v2.12.4-RC.1",
"v2.12.3",
"v2.12.3-RC.5",
"v2.12.3-RC.4",
"v2.12.3-RC.3",
"v2.12.3-RC.2",
"v2.12.3-RC.1",
"v2.12.2-RC.4",
"v2.12.2-RC.3",
"v2.12.1",
"v2.12.2-RC.2",
"v2.12.2-RC.1",
"v2.12.0",
"v2.12.1-RC.5",
"v2.12.1-RC.4",
"v2.12.1-RC.3",
"v2.12.1-RC.2",
"v2.12.1-RC.1",
"v2.12.0-RC.6",
"v2.12.0-RC.5",
"v2.12.0-RC.4",
"v2.12.0-RC.3",
"v2.12.0-RC.2",
"v2.12.0-RC.1",
"v2.12.0-preview.2",
"v2.12.0-preview.1",
"v2.11.3",
"v2.11.3-RC.2",
"v2.11.3-RC.1",
"v2.11.2",
"v2.11.2-RC.3",
"v2.11.2-RC.2",
"v2.11.2-RC.1",
"v2.11.0",
"v2.11.0-RC.5",
"v2.11.0-RC.4",
"v2.11.0-RC.3",
"v2.11.0-RC.2",
"v2.11.0-RC.1",
"v2.10.3",
"v2.10.2",
"v2.10.1",
"v2.10.0",
"v2.9.22",
"v2.9.21",
"v2.9.20",
"v2.9.19",
"v2.9.18",
"v2.9.17",
"v2.9.16",
"v2.9.15",
"v2.9.14",
"v2.9.12",
"v2.9.11",
"v2.9.10",
"v2.9.9",
"v2.9.8",
"v2.9.7",
"v2.9.6",
"v2.9.5",
"v2.9.4",
"v2.9.3",
"v2.9.2",
"v2.9.1",
"v2.9.0",
"v2.8.4",
"v2.8.3",
"v2.8.2",
"v2.8.1",
"v2.8.0",
"v2.7.4",
"v2.7.3",
"v2.7.2",
"v2.7.1",
"v2.7.0",
"v2.7.0-rc2",
"v2.7.0-rc1",
"v2.6.6",
"v2.6.5",
"v2.6.4",
"v2.6.3",
"v2.6.2",
"v2.6.1",
"v2.6.0",
"v2.5.0",
"v2.4.0",
"v2.3.4",
"v2.3.3",
"v2.3.2",
"v2.3.1",
"v2.3.0",
"v2.2.6",
"v2.2.5",
"v2.2.4",
"v2.2.3",
"v2.2.2",
"v2.2.1",
"v2.2.0",
"v2.1.7",
"v2.1.6",
"v2.1.4",
"v2.1.2",
"v2.1.0",
"v2.0.4",
"v2.0.2",
"v2.0.0",
"v2.0.0-RC19",
"v2.0.0-RC14",
"v1.3.0",
"v1.2.0",
"v1.1.0",
"v1.0.6",
"v1.0.4",
"v1.0.2",
"v1.0.0",
"v0.9.6",
"v0.9.4",
"v0.9.2",
"v0.8.1",
"v0.8.0",
"v0.7.2",
"v0.7.0",
"v0.6.8",
"v0.6.6",
"v0.6.4",
"v0.6.2",
"v0.6.0",
"v0.5.6",
"v0.5.4",
"v0.5.2",
"v0.5.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58213.json"
}
}
],
"modified": "2026-10-28T02:30:32.335392579Z",
"provider": "osv",
"references": [
"https://github.com/nats-io/nats-server/releases/tag/v2.12.9",
"https://github.com/nats-io/nats-server/releases/tag/v2.14.1",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58213.json",
"https://github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f",
"https://nvd.nist.gov/vuln/detail/CVE-2026-58213",
"https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8",
"https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736",
"https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9",
"https://github.com/nats-io/nats-server/pull/8163",
"https://github.com/nats-io/nats-server/pull/8164"
],
"provider_metadata": {
"cwe_ids": [
"CWE-74"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58213.json"
}
},
"related_cves": [
{
"value": "CVE-2026-58213",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 499616,
"published_at": "2026-07-08T19:52:12.148+00:00"
}