Advisory

RUSTSEC-2026-0231

Also known as: None

Summary

Relay authentication challenges can exhaust memory

Details

The SDK forwarded every NIP-42 AUTH challenge received from a relay through an
unbounded command queue. Challenge handling can wait for an asynchronous signer or
user interaction, so receiving challenges was substantially faster than completing
the corresponding authentication work.

A malicious relay could continuously send new challenges without authenticating or
delivering valid events. Every value remained queued, causing memory use and pending
signer operations to grow without a fixed limit until the client became unavailable.
The issue does not allow the relay to forge a signature or learn the client's private
key.

The SDK now coalesces pending challenges through a latest-value channel. NIP-42 makes
an earlier challenge invalid when the relay sends a new one, so replacing pending
work preserves the only challenge that can still be answered while keeping memory
use bounded.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-08-01 12:00 UTC
Modified
2026-08-02 18:00 UTC

Affected packages and fixes

nostr-relay-pool

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.44.3 (semver)

Fixed versions

0.44.3

Fix

  • Fixed version 0.44.3
    cargo update -p nostr-relay-pool --precise 0.44.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences