Nats ServerApplication · Linuxfoundation

CVE-2026-33215

MEDIUM · 6.5 CVSS v3.1 Published 2026-03-24
Fix available
A fix is available. Upgrade to 2.11.15 / 2.12.5 or later.
See remediation →
74/100
Remediation priority · Elevated
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
NATS-Server is a High-Performance server for NATS.io, a cloud and edge native messaging system. The nats-server provides an MQTT client interface. Prior to versions 2.11.15 and 2.12.5, Sessions and Messages can by hijacked via MQTT Client ID malfeasance. Versions 2.11.15 and 2.12.5 patch the issue. No known workarounds are available.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The vulnerability allows session and message hijacking through manipulation of MQTT Client IDs in the NATS-Server's MQTT client interface. An attacker with the ability to connect to the MQTT broker could potentially impersonate existing clients or intercept messages by using a crafted Client ID, bypassing proper session isolation.

MitigationUpgrade NATS-Server to version 2.11.15 or 2.12.5 to apply the patch. No workarounds are available; immediate upgrade is recommended given the direct session hijacking risk.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Nats ServerApplication
Affected:>= 2.0.0, < 2.11.15>= 2.12.0, < 2.12.5

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Verify NATS-Server version
    Run `nats-server --version` or check the installed binary version
    Affected if version is >= 2.0.0 and < 2.11.15, or >= 2.12.0 and < 2.12.5
  2. Confirm MQTT gateway is enabled
    Review NATS-Server configuration file (typically nats.conf) for `mqtt` or `mqtt_port` directives, or check running config with `nats-server -c nats.conf --signal 2` to dump config
    Affected if MQTT gateway is configured and active (vulnerability only affects MQTT client interface)
  3. Check for exposed MQTT ports
    Run `netstat -tlnp | grep -E '1883|8883'` or `ss -tlnp | grep -E '1883|8883'` to see if MQTT ports are listening
    Affected if MQTT ports 1883 (plain) or 8883 (TLS) are open and accepting connections from untrusted networks

You are affected if NATS-Server version falls within the vulnerable ranges AND the MQTT gateway is enabled and accessible.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 2.11.15 / 2.12.5 or later
Fixed in 2.11.152.12.5
Interim mitigation

Upgrade NATS-Server to version 2.11.15 or 2.12.5 to apply the patch. No workarounds are available; immediate upgrade is recommended given the direct session hijacking risk.

Recommended fix High confidence

2.11.15 or 2.12.5 (depending on your current branch)

  1. 1. Identify the currently running NATS Server version using 'nats-server --version' or checking the process
  2. 2. Determine which release branch you're on (2.11.x or 2.12.x) based on your current version
  3. 3. For 2.11.x branch users: Upgrade to version 2.11.15
  4. 4. For 2.12.x branch users: Upgrade to version 2.12.5
  5. 5. Download the appropriate release from https://github.com/nats-io/nats-server/releases
  6. 6. Stop the running NATS Server instance
  7. 7. Replace the binary with the new version
  8. 8. Restart the NATS Server service
Caveat Review release notes for any breaking changes between your current version and the target fixed version

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Nats Server Scoped from the published advisory
  • Consultation2.0 h
  • Implementation4.0 h
  • Testing4.0 h
  • Review / QA2.0 h
12.0 hours of engineering $2,080
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,328.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-33215 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-33215 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data