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

pi: don't match literal | char in regexes

Public commit record

What the developer wrote

Authored by f321x

60/100 · Adequate
pi: don't match literal | char in regexes

The RE_EMAIL and RE_DOMAIN regexes matched the '|' character
which is probably not what they should do.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit fixes two email/domain recognition patterns so they no longer treat the vertical bar character '|' as a valid letter. Before the fix, a string like 'example.c|m' could be accepted as a domain or email ending, which could let malformed payment identifiers slip through validation. The change is a small correctness fix in input parsing, not a dramatic security hole on its own.

Recommended action

Treat as a low-severity input-validation bug. Review whether the malformed identifiers could reach any security-sensitive path such as DNS resolution, BIP353 resolution, or Lightning Address lookup, and add regression tests for '|' rejection. No urgent response is warranted unless such a path is confirmed.

Security signals we found

01

regex character class included unintended literal '|' character

02

commit message states the previous behavior was 'probably not what they should do'

03

affected code parses payment identifiers (email-style and domain-style)

04

no explicit security claim or CVE from the vendor

Risk score

Why this scored 29/100

Our methodology →
Potential impact 5/30
Exploitability 5/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.