{"api_version":"1","generated_at":"2026-07-09T08:29:11+00:00","cve":"CVE-2026-58213","urls":{"html":"https://cve.report/CVE-2026-58213","api":"https://cve.report/api/cve/CVE-2026-58213.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-58213","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-58213"},"summary":{"title":"NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection","description":"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.","state":"PUBLISHED","assigner":"GitHub_M","published_at":"2026-07-08 20:16:54","updated_at":"2026-07-08 20:16:54"},"problem_types":["CWE-74","CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')"],"metrics":[{"version":"3.1","source":"security-advisories@github.com","type":"Secondary","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.1","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","version":"3.1"}}],"references":[{"url":"https://github.com/nats-io/nats-server/releases/tag/v2.12.9","name":"https://github.com/nats-io/nats-server/releases/tag/v2.12.9","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nats-io/nats-server/releases/tag/v2.14.1","name":"https://github.com/nats-io/nats-server/releases/tag/v2.14.1","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nats-io/nats-server/pull/8164","name":"https://github.com/nats-io/nats-server/pull/8164","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9","name":"https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nats-io/nats-server/pull/8163","name":"https://github.com/nats-io/nats-server/pull/8163","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736","name":"https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8","name":"https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f","name":"https://github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f","refsource":"security-advisories@github.com","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-58213","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58213","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"nats-io","product":"nats-server","version":"affected < 2.12.9","platforms":[]},{"source":"CNA","vendor":"nats-io","product":"nats-server","version":"affected >= 2.14.0-RC.1, < 2.14.1","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"product":"nats-server","vendor":"nats-io","versions":[{"status":"affected","version":"< 2.12.9"},{"status":"affected","version":">= 2.14.0-RC.1, < 2.14.1"}]}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-74","description":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-07-08T19:52:12.148Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M"},"references":[{"name":"https://github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f","tags":["x_refsource_CONFIRM"],"url":"https://github.com/nats-io/nats-server/security/advisories/GHSA-qrcv-3558-gj4f"},{"name":"https://github.com/nats-io/nats-server/pull/8163","tags":["x_refsource_MISC"],"url":"https://github.com/nats-io/nats-server/pull/8163"},{"name":"https://github.com/nats-io/nats-server/pull/8164","tags":["x_refsource_MISC"],"url":"https://github.com/nats-io/nats-server/pull/8164"},{"name":"https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8","tags":["x_refsource_MISC"],"url":"https://github.com/nats-io/nats-server/commit/366837cfc65ab9ccb4f98193c65e8daf238582d8"},{"name":"https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736","tags":["x_refsource_MISC"],"url":"https://github.com/nats-io/nats-server/commit/64ebae40051ee497c481e10f316238faf0de1736"},{"name":"https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9","tags":["x_refsource_MISC"],"url":"https://github.com/nats-io/nats-server/commit/f14856b9e57a36818f43851cb69b6e33670885c9"},{"name":"https://github.com/nats-io/nats-server/releases/tag/v2.12.9","tags":["x_refsource_MISC"],"url":"https://github.com/nats-io/nats-server/releases/tag/v2.12.9"},{"name":"https://github.com/nats-io/nats-server/releases/tag/v2.14.1","tags":["x_refsource_MISC"],"url":"https://github.com/nats-io/nats-server/releases/tag/v2.14.1"}],"source":{"advisory":"GHSA-qrcv-3558-gj4f","discovery":"UNKNOWN"},"title":"NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Route Forwarding allows arbitrary NATS command injection"}},"cveMetadata":{"assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","assignerShortName":"GitHub_M","cveId":"CVE-2026-58213","datePublished":"2026-07-08T19:52:12.148Z","dateReserved":"2026-06-29T17:09:25.873Z","dateUpdated":"2026-07-08T19:52:12.148Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-07-08 20:16:54","lastModifiedDate":"2026-07-08 20:16:54","problem_types":["CWE-74","CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')"],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","baseScore":7.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":2.8,"impactScore":4.2}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"58213","Ordinal":"1","Title":"NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Rou","CVE":"CVE-2026-58213","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"58213","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"NATS Server: MQTT SUBSCRIBE Protocol Injection via Leaf Node/Rou"}]}}}