A vulnerability was determined in bitcoinj up to 0.17, specifically in the Payment Request Handler component of the PaymentSession.java file. The issue arises from the manipulation of the argument pki_type in the url.openConnection function, leading to server-side request forgery. This vulnerability can be exploited remotely. The project was informed early but has not yet responded.
A signature verification bypass in bitcoinj versions prior to 0.17.1 allows attackers to satisfy local transaction validation for arbitrary P2PKH and P2WPKH outputs using any valid keypair, without proving ownership of the committed public key hash. The vulnerability exists in ScriptExecution.correctlySpends() where fast-path verification branches for standard P2PKH and native P2WPKH spends verify the attacker-controlled signature/public-key pair but fail to verify that the public key matches the hash committed in the output being spent. This represents a critical integrity failure in Bitcoin transaction validation logic. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N) indicates network-accessible, low-complexity attacks with no privileges required, resulting in high impact to integrity with no confidentiality or availability impact. The weakness is classified as CWE-347 (Improper Verification of Cryptographic Signature). The vulnerability was disclosed on 2026-05-15 and last modified on 2026-05-18. No known exploitation in ransomware campaigns has been documented, and the vulnerability is not listed in CISA KEV.