BasicSwap v0.19.5: A Fix for a Remote Crash in Monero Swaps
BasicSwap v0.19.5 fixes a bug that let another user shut down your BasicSwap node during a Monero or Wownero swap by sending it a malformed key proof. Please update if you swap XMR or WOW.

BasicSwap v0.19.5 is a small security release that comes four days after v0.19.4. It fixes a bug that let another user crash your BasicSwap node during a Monero or Wownero swap. If you swap XMR or WOW, including the ETH, USDT0 and USDC pairs added in v0.19.4, please update as soon as you can.
What was wrong
Before any coins move in a Monero or Wownero swap, the two nodes exchange a key proof, and each one checks the proof it receives. A proof crafted to push that check into a value the cryptography library couldn't handle made the library stop the whole BasicSwap process instead of rejecting the proof. Anyone could trigger it by bidding on your XMR or WOW offer, or by accepting your bid on theirs.
The crash also repeated itself. BasicSwap keeps the proof in its database and checks it again shortly after starting, so a single bad bid could bring the node down after every restart. The crash didn't expose keys or move coins, but a node stuck in that loop can't lock, claim or refund, and could miss a deadline on a swap already running.
What v0.19.5 changes
The library now rejects these proofs as invalid, and BasicSwap marks the bid as errored and keeps running. The fix is in basicswap_v0.5 of BasicSwap's secp256k1 fork (commit e3b4836), which BasicSwap gets through basicswap_v0.6 of its coincurve fork (commit 66c5e83). BasicSwap also now refuses Monero and Wownero keys from a peer that aren't exactly 32 bytes long (commit 8799ba8). The swap protocols and the database are unchanged, so swaps in progress carry on after the update, and updating protects your node whatever version the other side runs.
Install the latest BasicSwap update
To install, update BasicSwap through the usual process and relaunch. This release changes BasicSwap's Python dependencies but no coin cores, so Docker images need a rebuild with --no-cache, and source installs need their requirements installed again.
Docker
If you installed BasicSwap with Docker:
- From your BasicSwap repository's
dockerfolder, stop the running container withdocker-compose stop. - From that same folder, run
git fetch --tags origin, thengit checkout v0.19.5. - Run
docker-compose build --no-cache. - Launch BasicSwap again with
docker-compose up.
Depending on your Docker version, the command may be docker compose without the dash.
Non-Docker
If you installed BasicSwap without Docker, use the steps below and replace $HOME/coinswaps with your installation directory if it differs:
- Shut down BasicSwap properly.
- Run
export SWAP_DATADIR="$HOME/coinswaps". - Run
source "$SWAP_DATADIR/venv/bin/activate". - From
$SWAP_DATADIR/basicswap, rungit fetch --tags origin, thengit checkout v0.19.5. - Run
pip3 install --require-hashes -r requirements.txt. - Run
pip3 install .. - Launch BasicSwap as usual.
The fixed coincurve comes in with step 5, and skipping it leaves your node on the old library even after the checkout.
Production Docker setup
The production setup in docker/production now pins its swapclient to the commit that raised the version to 0.19.5.
Install script
If you installed BasicSwap with Nahuhh's GitHub installation script, run bsx-update.
Changelog
The v0.19.5 changelog, grouped by area.
Security
- Reject a key proof whose calculation lands on the point at infinity instead of crashing, in secp256k1
basicswap_v0.5[e3b4836] - Tidy up how the key proof's signature check loads a value [
6f3ff86] - Update coincurve to
basicswap_v0.6, which bundles the fixed secp256k1 [66c5e83] - Refuse ed25519 keys that aren't 32 bytes [
8799ba8]
Build and docs
- Raise the version to 0.19.5, pin the production swapclient to it, and update the Guix package [
96560bc] [0ad9dd9] [703e47b] - Fix lint in the release notes [
6db0405]
You can inspect every change on the v0.19.4 to v0.19.5 comparison page.
Stay connected
Keep up with BasicSwap on social media:
- X: @BasicSwapDEX
- Matrix: BasicSwap channel
- GitHub: BasicSwap repositories
- Support the project: Donation page


