High
Security advisory
NATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings are mishandled.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3127
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:52 UTC · Revision 1
Source evidence
NATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings are mishandled.
osv:CVE-2021-3127
Complete source record
{
"id": "dad1bacff8ada694ca66397b52a05388829ab602b7a0b41d4d886675688b5a67",
"url": "https://osv.dev/vulnerability/CVE-2021-3127",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3127",
"summary": "NATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings are mishandled.",
"evidence": "osv:CVE-2021-3127",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-3127",
"aliases": [
"BIT-nats-2021-3127",
"CVE-2021-3127",
"GHSA-62mh-w5cv-p88c",
"GHSA-9r5x-fjv3-q6h4",
"GHSA-j756-f273-xhp4",
"GO-2022-0386"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nats-io/jwt",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "22bf1cf3386b569ad632f92d4e944c27ddecd875"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:nats:jwt_library:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.0.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v1.2.2",
"v2.0.0",
"v1.2.1",
"v1.2.0",
"v1.1.1",
"v1.0.1",
"v1.0.0",
"v0.3.2",
"v0.3.0",
"v0.2.16",
"v0.2.14",
"v0.2.12",
"v0.2.10",
"v0.2.8",
"v0.2.6",
"v0.2.4",
"v0.2.2",
"v0.2.0",
"v0.0.8",
"v0.0.6",
"v0.0.5",
"v0.0.4",
"v0.0.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3127.json"
}
},
{
"ranges": [
{
"repo": "https://github.com/nats-io/nats-server",
"type": "GIT",
"events": [
{
"introduced": "e12e56aef4089d8376e22b03cbc2e5b97321f049"
},
{
"fixed": "0e3c7230e4b7c85795592f74a62351f6fe22fcbd"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:linuxfoundation:nats-server:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.2.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v2.1.7",
"v2.1.6",
"v2.1.4",
"v2.1.2",
"v2.1.0",
"v2.0.4",
"v2.0.2",
"v2.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3127.json"
}
}
],
"modified": "2026-10-24T10:30:59.559324890Z",
"provider": "osv",
"references": [
"https://advisories.nats.io/CVE/CVE-2021-3127.txt"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-3127",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 439347,
"published_at": "2021-03-16T20:15:13.3+00:00"
}