AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 29 Bitcoin

plugin: nwc: handle 'null' params in request

Public commit record

What the developer wrote

Authored by f321x

60/100 · Adequate
plugin: nwc: handle 'null' params in request

Some clients send 'params: null' instead of 'params: {}' or no
params key at all.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit fixes a small bug in Electrum's NWC (Nostr Wallet Connect) plugin where a client sending 'params: null' in a request could cause the server to crash or behave unexpectedly. The fix treats null the same as missing or empty parameters, and improves the error message if something still goes wrong.

Recommended action

Apply the patch. Consider adding explicit JSON Schema validation for NWC request content to prevent similar edge cases.

Security signals we found

01

Input validation bypass due to null value

02

Potential denial-of-service via malformed JSON-RPC-style request

03

Crash or exception in request handling loop

Risk score

Why this scored 29/100

Our methodology →
Potential impact 6/30
Exploitability 4/25
Stealth signal 5/15
Affected reach 5/15
Confidence 6/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.