Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/nats-io/nats-server/v2
  4. ›
  5. CVE-2026-33248

CVE-2026-33248: NATS has mTLS verify_and_map authentication bypass via incorrect Subject DN matching

March 24, 2026 (updated March 27, 2026)

Background

NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT, and edge computing.

One authentication model supported is mTLS, deriving the NATS client identity from properties of the TLS Client Certificate.

Problem Description

When using mTLS for client identity, with verify_and_map to derive a NATS identity from the client certificate’s Subject DN, certain patterns of RDN would not be correctly enforced, allowing for authentication bypass.

This does require a valid certificate from a CA already trusted for client certificates, and DN naming patterns which the NATS maintainers consider highly unlikely.

So this is an unlikely attack. Nonetheless, administrators who have been very sophisticated in their DN construction patterns might conceivably be impacted.

Affected Versions

Fixed in nats-server 2.12.6 & 2.11.15

Workarounds

Developers should review their CA issuing practices.

References

  • advisories.nats.io/CVE/secnote-2026-13.txt
  • github.com/advisories/GHSA-3f24-pcvm-5jqc
  • github.com/nats-io/nats-server
  • github.com/nats-io/nats-server/security/advisories/GHSA-3f24-pcvm-5jqc
  • nvd.nist.gov/vuln/detail/CVE-2026-33248

Code Behaviors & Features

Detect and mitigate CVE-2026-33248 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.11.15, all versions starting from 2.12.0-RC.1 before 2.12.6

Fixed versions

  • 2.11.15
  • 2.12.6

Solution

Upgrade to versions 2.11.15, 2.12.6 or above.

Impact 4.2 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication
  • CWE-295: Improper Certificate Validation

Source file

go/github.com/nats-io/nats-server/v2/CVE-2026-33248.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:07 +0000.