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

cli: remove \ in simple format.

Public commit record

What the developer wrote

Authored by Rusty Russell

68/100 · Adequate
cli: remove \ in simple format.

This does mostly the right thing, but this removes e.g. \" -> ", and \\ to \.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit changes how the command-line tool 'lightning-cli' prints JSON strings in its simple human-readable output mode. Previously, backslashes used for escaping (like \" to show a quote, or \\ to show a backslash) were left in place, so users saw extra backslashes on screen. The patch now strips the backslash for any escape it does not explicitly handle (only \n newline and \t tab are still converted). This is a display/output formatting fix, not a change to how data is parsed or stored.

Recommended action

Treat as a low-risk UI/output formatting fix. Reviewers may want to verify that dropping the backslash for all unhandled escapes is the intended behavior, and consider whether a proper JSON unescape table (including \b, \f, \uXXXX, etc.) would be more correct. No urgent security action is indicated by the diff alone.

Security signals we found

01

Output formatting change in CLI display path

02

Incomplete JSON string unescaping (only \n, \t handled; other escapes have backslash dropped)

03

No input parsing or network protocol change

04

No memory management, bounds, or authorization change

Risk score

Why this scored 26/100

Our methodology →
Potential impact 4/30
Exploitability 3/25
Stealth signal 6/15
Affected reach 5/15
Confidence 5/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.