TL;DR
octez.js v25.0.2 and v25.1.0-rc.2 fix a privacy weakness in the Sapling transaction builder of @tezos-x/octez.js-sapling. octez.js inherited this code from Taquito, which published the same fix on 2026-11-20 (advisory GHSA-6r9w-cxjj-5776, severity low).
If your application builds Sapling transactions with @tezos-x/octez.js-sapling v25.0.1 or earlier, v25.1.0-rc.0 or v25.1.0-rc.1, we recommend upgrading now.
This issue does not put funds at risk. It does not expose spending keys or viewing keys. The weakness can only potentially compromise the privacy of the sender and that of the recipients of a Sapling transaction.
Who is affected
| Package | Affected | Fixed in |
|---|---|---|
@tezos-x/octez.js-sapling |
≤ 25.0.1, 25.1.0-rc.0, 25.1.0-rc.1 | 25.0.2, 25.1.0-rc.2 |
@taquito/sapling |
≤ 25.1.2 | 25.1.3 |
Only applications that build Sapling transactions are affected. Applications that only read Sapling balances or transaction history are not affected.
People who sent or received transactions on an affected version of Sapling per the following scenarios may be affected:
-
The sender of a Sapling transaction. The recipients were able to test guesses about the change output.
-
The recipients of a Sapling transaction to several recipients. Each recipient was able to test guesses about the address and the amount of the other outputs.
A Sapling transaction with a single output (one recipient and no change) affects nobody.
What you must do
Application developers need to:
-
Upgrade
@tezos-x/octez.js-saplingto v25.0.2. If you use the release candidate line, upgrade to v25.1.0-rc.2. -
Upgrade the other
@tezos-x/octez.js-*packages to the same version. The packages are released together.
End users can use an up-to-date application. No other action is necessary.
What was fixed
-
One commitment trapdoor for each output. A Sapling output has a commitment trapdoor (rcm): a random value that hides the address and the amount of the output. The builder drew one trapdoor for the whole Sapling transaction and used it for all the outputs, the change output included. Each recipient reads the trapdoor of their own output. With this shared trapdoor, a recipient was able to test guesses about the address and the amount of the other outputs of the same Sapling transaction. Each output now gets its own trapdoor.
-
One spend randomizer for each input. The builder drew one spend randomizer (ar) for the whole Sapling transaction and used it for all the spent notes. Each spent note now gets its own randomizer.
The Octez node’s own Sapling transaction builder already draws these values for each output and each input. octez.js now does the same.
Sapling transactions that are already on chain stay as they are. The release protects only the Sapling transactions that the new version builds.
Credits and acknowledgments
We would like to thank Rahul Saxena (@saxenism) of Bluethroat Labs for discovering and reporting this issue, and ECAD Labs for the fix and the coordinated disclosure in Taquito. octez.js v25.0.2 and v25.1.0-rc.2 adapted the Taquito fix (commits c57e660c0 and 80d22c4f1).
Resources