Duplicate Advisory: Incorrect Access Control in github.com/nats-io/jwt and github.com/nats-io/nats-server/v2GHSA-9r5x-fjv3-q6h4
HIGHFix: nats-io/jwt#149GHSA-9r5x-fjv3-q6h4 is a high-severity (CVSS 7.5) CWE-755 vulnerability in github.com/nats-io/jwt/v2. 1 public exploit reference exists, so weaponization risk is real. A fix is available for github.com/nats-io/jwt/v2 — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
GHSA-9r5x-fjv3-q6h4 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,987 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
github.com/nats-io/jwt/v2🐹github.com/nats-io/nats-server/v2🐹github.com/nats-io/jwtReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-62mh-w5cv-p88c (for github.com/nats-io/jwt) and GHSA-j756-f273-xhp4 (for github.com/nats-io/nats-server). This link is maintained to preserve external references.
Original Description
NATS Server (github.com/nats-io/nats-server/v2/server) 2.x before 2.2.0 and JWT library (github.com/nats-io/jwt/v2) before 2.0.1 have Incorrect Access Control because Import Token bindings are mishandled.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/nats-io/jwt/v2 | all versions | 2.0.1go get github.com/nats-io/jwt/v2@v2.0.1 |
| 🐹Go | github.com/nats-io/nats-server/v2 | all versions | 2.2.0go get github.com/nats-io/nats-server/v2@v2.2.0 |
| 🐹Go | github.com/nats-io/jwt | all versions | 1.2.3-0.20210314221642-a826c77dc9d2go get github.com/nats-io/jwt@v1.2.3-0.20210314221642-a826c77dc9d2 |
Affected Products
nats-serverlinuxfoundationjwt librarynatsResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/nats-io/jwt/v2, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/nats-io/jwt/v2 to 2.0.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-9r5x-fjv3-q6h4 is resolved across your whole dependency graph.
Workarounds
Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.
Frequently Asked Questions
Is GHSA-9r5x-fjv3-q6h4 in your dependencies?
Find it across Go, including transitive dependencies.