{"id":"GHSA-84xq-3662-pvx5","aliases":["GHSA-84xq-3662-pvx5","RUSTSEC-2026-0497"],"related":[],"kind":"vulnerability","state":"published","title":"Transaction::from_json holds an input txid that is not 64 hex digits and writes the input as spending the zero txid","summary":"`Transaction::from_json`, for a document with no `hex` member, held each\ninput's `txid` member as given. An input `txid` that is not 64 hex digits\n(`\"zz\"`, `\"\"`, 63 or 65 digits, characters that are not hex digits) answered\n`Ok`: `source_txid` and `to_json` gave the text back, while `to_binary` wrote\nthe input as spending the txid of 32 zero bytes and `id()` hashed those bytes.\nDocuments naming different texts were one transaction, spending an outpoint\nnone of them named.\n\nAn application that reads a peer's transaction document with `from_json` and\nrelies both on the text of its inputs and on its bytes or `id()` is affected;\none that reads only documents it produced is not.\n\n0.8.6 refuses such a txid (`Invalid txid of input N: expected 64 hex digits`).\nWhere upgrading is not possible, require each input's `txid` to be 64 ASCII hex\ndigits before calling `from_json`.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"`Transaction::from_json`, for a document with no `hex` member, held each\ninput's `txid` member as given. An input `txid` that is not 64 hex digits\n(`\"zz\"`, `\"\"`, 63 or 65 digits, characters that are not hex digits) answered\n`Ok`: `source_txid` and `to_json` gave the text back, while `to_binary` wrote\nthe input as spending the txid of 32 zero bytes and `id()` hashed those bytes.\nDocuments naming different texts were one transaction, spending an outpoint\nnone of them named.\n\nAn application that reads a peer's transaction document with `from_json` and\nrelies both on the text of its inputs and on its bytes or `id()` is affected;\none that reads only documents it produced is not.\n\n0.8.6 refuses such a txid (`Invalid txid of input N: expected 64 hex digits`).\nWhere upgrading is not possible, require each input's `txid` to be 64 ASCII hex\ndigits before calling `from_json`.","format":"markdown","source":"rustsec"}],"published":"2026-11-11T12:00:00.000Z","modified":"2026-11-12T08:00:03.171Z","severity":{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.8.6"},{"type":"semver","introduced":"0.9.0-beta.1","status":"affected","fixed":"0.9.0-beta.7.0"}],"ecosystem":"crates.io","package":"bsv-rs","purl":"pkg:cargo/bsv-rs","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/bsv-rs","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0497.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/Calhooon/bsv-rs/blob/v0.8.6/CHANGELOG.md","tags":["web"],"sources":["rustsec"]},{"url":"https://github.com/Calhooon/bsv-rs/issues/845","tags":["report"],"sources":["rustsec"]},{"url":"https://github.com/Calhooon/bsv-rs/pull/856","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0497","url":"https://rustsec.org/advisories/RUSTSEC-2026-0497.html","licence":"CC0-1.0","modified":"2026-11-12T08:00:03.171Z"}],"updatedAt":"2026-11-25T22:56:43.487Z"}