CVE-2026-34209: Payment Channel Insecure Voucher Comparison

A payment channel voucher amount is checked using `<` against a maximum of spent and settled funds. This may allow an attacker to submit a voucher exactly equal to the settled amount, bypassing the requirement to commit new funds. Establish a dedicated check that ensures the voucher is strictly greater than the settled funds, rather than using a loose ternar

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-34209-payment-channel-insecure-voucher-comparison --engine opengrep

Description

A payment channel voucher amount is checked using `<` against a maximum of spent and settled funds. This may allow an attacker to submit a voucher exactly equal to the settled amount, bypassing the requirement to commit new funds. Establish a dedicated check that ensures the voucher is strictly greater than the settled funds, rather than using a loose ternar