Update module github.com/nats-io/nats-server/v2 to v2.9.23 [SECURITY] #36
+18
−6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.9.17
->v2.9.23
GitHub Vulnerability Alerts
CVE-2023-47090
Background
NATS.io is a high performance open source pub-sub distributed communication technology, built for the cloud, on-premise, IoT, and edge computing.
NATS users exist within accounts, and once using accounts, the old authorization block is not applicable.
Problem Description
Without any authorization rules in the nats-server, users can connect without authentication.
Before nats-server 2.2.0, all authentication and authorization rules for a nats-server lived in an "authorization" block, defining users. With nats-server 2.2.0 all users live inside accounts. When using the authorization block, whose syntax predates this, those users will be placed into the implicit global account, "$G". Users inside accounts go into the newer "accounts" block.
If an "accounts" block is defined, in simple deployment scenarios this is often used only to enable client access to the system account. When the only account added is the system account "$SYS", the nats-server would create an implicit user in "$G" and set it as the
no_auth_user
account, enabling the same "without authentication" logic as without any rules.This preserved the ability to connect simply, and then add one authenticated login for system access.
But with an "authorization" block, this is wrong. Users exist in the global account, with login rules. And in simple testing, they might still connect fine without administrators seeing that authentication has been disabled.
The blind-spot on our part came from encouraging and documenting a switch to using only "accounts", instead of "authorization".
In the fixed versions, using an "authorization" block will inhibit the implicit creation of a "$G" user and setting it as the
no_auth_user
target. In unfixed versions, just creating a second account, with no users, will also inhibit this behavior.Affected versions
NATS Server:
Workarounds
In the "accounts" block, define a second non-system account, leave it empty.
Solution
Any one of these:
Credits
Problem reported by Alex Herrington.
Addressed publicly in a GitHub Discussion prior to this advisory.
Release Notes
nats-io/nats-server (github.com/nats-io/nats-server/v2)
v2.9.23
Compare Source
Changelog
Go Version
Fixed
Accounts
Leafnodes
JetStream
Complete Changes
v2.9.22
Compare Source
Changelog
Go Version
Dependencies
Improved
Monitoring
JetStream
Fixed
Config
Monitoring
Leafnode
JetStream
Complete Changes
v2.9.21
Compare Source
Changelog
Go Version
Dependencies
Added
OCSP
See ADR-38 OCSP Peer Verification
General
Improved
JetStream
Fixed
General
getHash()
(#4329) Thanks to @VuongUranus for reporting the issue!OCSP
Embedded
JetStream
Complete Changes
v2.9.20
Compare Source
Changelog
Go Version
Added
Windows
Improved
Accounts
JetStream
Fixed
Gateways
Leafnodes
WebSocket
tls_required
whentls_available
is not set (#4264)JetStream
MQTT
Complete Changes
v2.9.19
Compare Source
Changelog
Go Version
Improved
JetStream
Fixed
WebSocket
Complete Changes
v2.9.18
Compare Source
Changelog
Go Version
Dependency Updates
Improved
Monitoring
JetStream
Fixed
General
Leadnode
JetStream
Complete Changes
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.