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

Harden wallet error handling and PSBT input (#7701)

Public commit record

What the developer wrote

Authored by Andrew Camilleri

58/100 · Thin
Harden wallet error handling and PSBT input (#7701)
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Links an issue, advisory, or supporting reference! No meaningful explanatory body
The short version

What changed, and why it matters

This commit tightens up how BTCPay Server handles user-supplied PSBT (Bitcoin transaction) data. It adds a size limit check for PSBTs pasted as text (previously only file uploads were checked) and stops including the raw error message from a failed payjoin receiver in the user-facing error. These changes reduce the risk of oversized input causing resource problems and prevent a malicious or misbehaving payjoin receiver from injecting text into the server's error pages.

Recommended action

Review whether 500 KB remains an appropriate PSBT size bound for your deployment and consider adding similar length guards to any other PSBT ingestion paths. If running an older release, patch to a version containing this commit to reduce exposure to oversized PSBT parsing and payjoin error-message injection.

Security signals we found

01

New input-size limit on pasted PSBT strings (500 KB) to match file-upload limit

02

Removal of attacker-controlled exception message from user-facing payjoin error output

03

Addition of unit test for oversized textual PSBT rejection

04

Commit title explicitly describes hardening of wallet error handling and PSBT input

Risk score

Why this scored 51/100

Our methodology →
Potential impact 12/30
Exploitability 10/25
Stealth signal 8/15
Affected reach 10/15
Confidence 7/10
Evidence quality 4/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.