Email me

Rust advisories / nostr

Vulnerability HighRUSTSEC-2026-0230 · nostr

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

Short answerA security vulnerability in the nostr crate: Empty NIP-50 search filters can panic. High severity (CVSS 7.5). Fixed in 0.44.7: update to a fixed version.

Cratenostr
TypeVulnerability (denial-of-service)
Affected versionsBefore 0.44.7.
Fixed in0.44.7
SeverityHigh, CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published2026-08-01
Last changed2026-08-02
Also known asnone

What to do

  1. See which version you have: cargo tree -i nostr (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p nostr. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example nostr = "0.44.7") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for nostr

Full security history of nostr

Up next

Same cratenostr: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ