# RUSTSEC-2026-0231: Relay authentication challenges can exhaust memory

- Severity: High 7.5 (CVSS:3.1, scored by RustSec Advisory Database) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-08-01T12:00:00.000Z
- Modified: 2026-08-02T18:00:03.548Z

## Description

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.

(As written by RustSec Advisory Database.)

## Affected

- nostr-relay-pool (crates.io): from 0.0.0-0 before 0.44.3

## References

- <https://crates.io/crates/nostr-relay-pool> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0231.html> (advisory)
- <https://github.com/nostrdevkit/nostr/commit/6eb8766caa25f03803f178861be054f3bca718d7> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0231](https://rustsec.org/advisories/RUSTSEC-2026-0231.html), CC0-1.0, modified 2026-08-02

---

Page: https://cve.day/RUSTSEC-2026-0231 · Whole record: https://cve.day/RUSTSEC-2026-0231.json · Rebuilt by cve.day 2026-11-25T22:56:43.390Z
