# RUSTSEC-2026-0230: Empty NIP-50 search filters can panic

- 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.543Z

## Description

The NIP-50 event-matching path searched event content with
`slice::windows(search.len())`. An empty search string therefore called
`slice::windows(0)`, which always panics instead of returning a match result.

A remote client able to submit filters to an application using this matcher could
trigger the panic with an empty NIP-50 search value. This includes clients querying an
SDK local relay. Depending on the application's panic configuration and task
isolation, the crafted filter could terminate request processing, a runtime worker, or
the entire process, causing denial of service. No confidentiality or integrity impact
is known.

Empty searches are now handled before the substring search, so the matcher returns a
defined result without constructing a zero-sized window or panicking.

(As written by RustSec Advisory Database.)

## Affected

- nostr (crates.io): from 0.0.0-0 before 0.44.7

## References

- <https://crates.io/crates/nostr> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0230.html> (advisory)
- <https://github.com/nostrdevkit/nostr/commit/29182657bc54ac18564597e4414f08c3e4e9aa0a> (web)

## Sources

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

---

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