Intel

AIKIDO-2026-454229

nostr is vulnerable to Denial of Service (DoS)

CVE-2026-103981Published Jul 29, 2026
July 29, 2026

75

CVE Score

High

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

The legacy NIP-04 decryption routine in the nostr crate parses the initialization vector from the base64 ?iv= portion of untrusted message content. It converts the decoded bytes directly into a fixed 16-byte AES-CBC IV without checking the decoded length. When a Kind-4 encrypted message carries an IV whose decoded length is not 16 bytes, the conversion panics and crashes the decrypting task or process. The fix validates the decoded IV length (try_into to [u8; 16]) and returns an InvalidIVLen error instead of panicking.

How do I fix this?

Upgrade the nostr library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application decrypts NIP-04 (legacy Kind-4 encrypted direct message) content from untrusted senders.

Package

Versions

0.1.5 - 0.44.5

Fixed in 0.44.6

Background info

nostr is vulnerable to Denial of Service (DoS) in versions 0.1.5 - 0.44.5.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea