# RUSTSEC-2026-0232: Processing of unverified relay events

- 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:H/A:N`
- 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.537Z

## Description

The processed events received from a relay through admission-policy and database
paths before verifying that the serialized fields matched the claimed event ID and
signature. In particular, a database result for the claimed ID could cause
verification to be skipped. The verification cache also keyed successful checks by a
64-bit hash instead of the complete event ID.

A malicious relay could send an event whose claimed ID referred to a known database
entry while its content, tags, author, or signature differed from that ID. The forged
event could then reach policy callbacks or other SDK processing as if it were
authentic. A cache-key collision provided a second path for an unverified event to be
treated as previously verified. This undermines event integrity but does not reveal
private keys or enable the attacker to produce a valid signature for the altered
event.

The SDK now verifies each event before policy evaluation, database lookup, or
propagation decisions, and the verification cache stores the complete `EventId` so a
truncated hash collision cannot stand in for successful verification.

(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-0232.html> (advisory)
- <https://github.com/nostrdevkit/nostr/commit/4b67f9b45909d2e35f34c30c084c0ab66e599a9f> (web)

## Sources

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

---

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