Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-58213: CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in nats-io nats-server

0
High
VulnerabilityCVE-2026-58213cvecve-2026-58213cwe-74
Published: 07/08/2026 (07/08/2026, 19:52:12 UTC)
Source: CVE Database V5
Vendor/Project: nats-io
Product: nats-server

Description

NATS Server versions prior to 2.14.1 and 2.12.9 contain a vulnerability where an MQTT client can inject protocol control characters into subscription filters. These characters are forwarded as NATS protocol data to route or leafnode connections, corrupting the protocol stream and enabling injection of unintended NATS protocol operations. This vulnerability is identified as CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component). The issue is fixed in versions 2.14.1 and 2.12.9.

CVSS v3.1

Score 7.1high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Affected software

GitHub Actionsmore threats →ai
nats-io/nats-server
pkg:github/nats-io/nats-server
Affected versions
<2.12.9>=2.12.0 <2.12.9<2.14.1>=2.12.9 <2.14.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/08/2026, 20:28:28 UTC

Technical Analysis

The vulnerability in nats-io nats-server allows an MQTT client to include special protocol control characters in subscription filters. These characters are forwarded downstream as NATS protocol data to route or leafnode connections, which corrupts the protocol stream and permits injection of unintended NATS protocol operations. This improper neutralization of special elements corresponds to CWE-74. The flaw affects versions prior to 2.14.1 and 2.12.9 and has a CVSS v3.1 score of 7.1, indicating high severity. The vulnerability is resolved in nats-server versions 2.14.1 and 2.12.9.

Potential Impact

Successful exploitation allows an attacker controlling an MQTT client to inject unintended NATS protocol operations by corrupting the forwarded protocol stream. This can lead to unauthorized protocol manipulation with high confidentiality impact and low integrity impact, but no availability impact as per the CVSS vector. The vulnerability could compromise the integrity of the messaging system's protocol communication.

Mitigation Recommendations

A fix is available in nats-server versions 2.14.1 and 2.12.9. Users should upgrade to at least one of these versions to remediate the vulnerability. No additional mitigation guidance is provided or required beyond applying the official fix.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-29T17:09:25.873Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a4eafe7c9d9e3dbe3adea24

Added to database: 07/08/2026, 20:15:35 UTC

Last enriched: 07/08/2026, 20:28:28 UTC

Last updated: 07/08/2026, 20:28:28 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses