GHSA-84xq-3662-pvx5: Transaction::from_json holds an input txid that is not 64 hex digits and writes the input as spending the zero txid
Published 2026-11-11 · Updated 2026-11-12 · Also known as RUSTSEC-2026-0497
Summary
The Transaction::from_json function incorrectly handles malformed transaction IDs, leading to a mismatch between human-readable transaction representations and their binary serializations. Developers using bsv-rs to process untrusted transaction documents from peers must update their dependencies or implement input validation.
Who is affected
Affected applications rely on both the text representations and the binary/ID representations of transaction data. An attacker can craft a document where input IDs are not 64 hex digits, causing the application to treat the transaction as spending from a zeroed-out transaction ID. This creates a discrepancy between the reported input and the actual binary spending logic.
Exploitability
The vulnerability is rated as medium severity with a CVSS 3.1 base score of 5.3, indicating low complexity and no required authentication or user interaction. CISA KEV status is no and EPSS data is currently not documented.
Remediation
- Upgrade to bsv-rs version 0.8.6 or newer.
- Upgrade to bsv-rs version 0.9.0-beta.7.0 or newer.
- If an upgrade is not possible, implement validation to ensure each input's txid is exactly 64 ASCII hex digits before calling from_json.
How to check your project
- Check Cargo.toml for dependencies on bsv-rs versions earlier than 0.8.6 or 0.9.0-beta.7.0.
- Run 'cargo tree -p bsv-rs' to identify the specific version currently compiled into your binary.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | bsv-rs |
>= 0.0.0-0, < 0.8.6 | 0.8.6 | cargo update -p bsv-rs --precise 0.8.6 |
| crates.io | bsv-rs |
>= 0.9.0-beta.1, < 0.9.0-beta.7.0 | 0.9.0-beta.7.0 | cargo update -p bsv-rs --precise 0.9.0-beta.7.0 |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | None |
FAQ
What happens if a txid is not 64 hex digits?
The function improperly processes the input, resulting in the binary representation referencing a zeroed-out txid while the text representation retains the malformed input.
Does this impact internal systems?
No, applications that only read transaction documents they produced themselves are not affected.
Is there a CISA-known exploit available?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Original advisory description
References
- PACKAGE https://crates.io/crates/bsv-rs
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0497.html
- WEB https://github.com/Calhooon/bsv-rs/blob/v0.8.6/CHANGELOG.md
- REPORT https://github.com/Calhooon/bsv-rs/issues/845
- WEB https://github.com/Calhooon/bsv-rs/pull/856
Source records: RUSTSEC-2026-0497 (OSV.dev).