Is WireGuard quantum safe? Out of the box, no. The handshake runs on Curve25519, and if someone records your tunnel today and breaks that curve in a few years, they can read everything they recorded. That's the "harvest now, decrypt later" problem. WireGuard has shipped a fix for this since day one, though. It's one optional line in your config, and I'd guess most people reading this have never set it.
This week made it hard to keep ignoring. On December 2 Jason Donenfeld posted to the WireGuard list that he has "already begun investigating updating the protocol for a WireGuard v2." The same day, Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle put out a two-sentence joint statement backing the US government's push to move to NIST's PQC standards "as soon as possible." On December 3 Tailscale announced hybrid ML-KEM-768 handshakes in v1.106, and Cloudflare pulled its "fully post-quantum" deadline forward from 2029 to 2027.
If you run your own tunnel, you can do something about all of this in an afternoon.
The scare this week wasn't about quantum computers
Read the government text everyone is reacting to. The CISA/NSA/ONCD statement says American "SI" companies (SI being its word for "Super Intelligence" frontier models) "have disclosed discoveries that impact the security of some cryptography currently in use," and in the next breath says those advances "do not present an immediate and widespread threat to that cryptography." It doesn't name a single algorithm. Nobody has shown a quantum computer factoring anything that matters.
Donenfeld's post reads the same way. He notes that "PQ" has, he supposes, come to implicitly stand in for "primitives that are not yet broken by AI." The HN threads are full of people furious about the vagueposting, and I get it. "Release the factors of the RSA-2048 challenge number," as one commenter put it.
So I can't tell you Q-day is next year, and you don't need me to. The argument for acting now never depended on knowing that date.
Harvest now, decrypt later, in plain terms
Encrypted traffic is cheap to store. Anyone on your path (an ISP, a hosting provider, a state) can keep a copy of your WireGuard packets for as long as they like. Today those packets are useless to them. If the key exchange gets broken later, whether by a quantum computer, a classical math result or something an AI lab finds, they can go back and decrypt the old recordings.
Does anything going through your tunnel today still need to be secret in 2032? Think SSH sessions with secrets typed into them, database replication, backups, internal dashboards. If any of that applies, you're already exposed, and you won't find out until it's too late to fix.
Tailscale's post describes its change exactly this way: "The goal is to protect past traffic from future attacks against WireGuard's cryptography."
What stock WireGuard already gives you: the preshared key
WireGuard has a PresharedKey field. The wg(8) man page says it "adds an additional layer of symmetric-key cryptography to be mixed into the already existing public-key cryptography, for post-quantum resistance."
Donenfeld's post points straight at it: if you can use it and the recent news worries you, "you might consider using it." With a 256-bit PSK shared over a secure offline channel, the security "comes down to breaking that 256-bit ChaCha20 key, which isn't going to happen, rather than any asymmetric primitive."
You set it per peer pair, and both ends must have the same key:
# generate one PSK per peer pair
umask 077
wg genpsk > peer-laptop.psk
# apply it live on the server (repeat on the peer with the server's public key)
sudo wg set wg0 peer <LAPTOP_PUBLIC_KEY> preshared-key ./peer-laptop.psk
# check: peers with a PSK show "preshared key: (hidden)"
sudo wg show wg0To make it stick, add it to the [Peer] block in /etc/wireguard/wg0.conf on both sides:
[Peer]
PublicKey = <LAPTOP_PUBLIC_KEY>
PresharedKey = <contents of peer-laptop.psk>
AllowedIPs = 10.0.0.2/32The handshake fails until both ends match, so update both sides together or expect a few seconds where the tunnel is down.
Getting the PSK to the other box
If you paste that PSK into an SSH session protected only by classical key exchange, and someone is recording that session, you've moved the weak point without removing it. Recent OpenSSH negotiates hybrid post-quantum key exchange by default (release notes: sntrup761x25519-sha512@openssh.com since 9.0, mlkem768x25519-sha256 as the default since 10.0). Check what you actually got:
ssh -v yourserver 2>&1 | grep "kex: algorithm"On OpenSSH 10.0 that prints debug1: kex: algorithm: mlkem768x25519-sha256. If yours says curve25519-sha256, either upgrade first or copy the key some other way (a USB stick works, and so does reading it out loud).
Two more caveats. A static PSK sits on disk in both configs, so if a box gets compromised later, that key is gone with it. Rotate it like any other secret. And it's manual, so on a 40-node mesh you're managing 40+ pairwise secrets by hand. That's where the next options come in.
If you can't pre-share keys: Rosenpass
Donenfeld's second suggestion is to run a post-quantum key exchange inside an existing tunnel and "pop the result into the pre-shared key slot." That's what Rosenpass does. Karolin Varner replied on the list that it "follows the approach of using a PSK, as Jason suggested," and told people to use the stable release because the development branch "has had some issues lately." When someone on Lobsters asked why Rosenpass isn't mentioned more often, its lead answered that they "don't do a lot of marketing" and that the stable branch "has been standing strong for the last three years." My guess is that most people have simply never heard of it.
If you use Tailscale: check your version
Tailscale's change is a hybrid. The handshake keeps the normal WireGuard cryptography and adds an ephemeral ML-KEM-768 step, so keys stay safe "as long as either WireGuard or ML-KEM-768 is immune to cryptographic attack." It turns on automatically, but only when both devices run 1.106 or later. If one side is older, the connection quietly falls back to the standard WireGuard handshake.
Per the changelog, 1.106.0 through 1.106.2 were release candidates, 1.106.3 was the first real release, and 1.106.4 added a way to see it:
tailscale version
tailscale status --verbose # look for the hybrid-pq label
tailscale status --json | grep Protocol # "wg-v1-ts-pqh-v1" means hybridYour phone that hasn't auto-updated in a month is the device dragging the whole connection back to classic. Check that one first.
The scope is narrow. A Tailscale employee on HN said it "addresses strictly HNDL attacks" and put it roughly on par with TLS 1.3 using hybrid ML-KEM key exchange and classical certificates, so authentication is still classical. I couldn't find anything in the blog or the changelog about DERP-relayed connections. The same commenter said the new handshake "needs just shy of 1400b MTU," and that Tailscale's analysis suggested a few percent of users wouldn't be able to sustain a handshake that size over UDP without further engineering. They put the limit for a universal drop-in protocol at 1280 bytes, ideally less. That packet-size problem gives you an idea of why a post-quantum WireGuard v2 is hard.
What to wait for, and what not to
| Option | Protects recorded traffic? | Effort | Available |
|---|---|---|---|
| Stock WireGuard, no PSK | No | None | Now |
| Stock WireGuard + PresharedKey | Yes, if the PSK was delivered safely | Manual, per peer pair | Now |
| WireGuard + Rosenpass | Yes | Extra daemon | Now (stable branch) |
| Tailscale ≥ 1.106 on both ends | Yes (key exchange only) | Update clients | Now |
| WireGuard v2 | Presumably | Unknown | No date, no design |
WireGuard v2 has no spec, no algorithm choice and no timeline. Donenfeld says outright that the post is "not an invitation to 'let's all design it in a mailing list thread'" and that building something elegant with PQ primitives is "certainly challenging (though hopefully not impossible)." Since he built WireGuard around "versioned crypto," I'd bet the upgrade path will be clean. That still doesn't help with packets being recorded this month.
My take: if you run plain WireGuard between machines you control, add a PSK this week. It costs ten minutes per peer pair, the man page has described it as being "for post-quantum resistance" for years, and the protocol's author is now pointing people at it. Waiting for v2 means every packet sent between now and then stays protected only by Curve25519.
So: are you adding a WireGuard preshared key now, or waiting for v2? And if you've run Rosenpass in production, I'd like to hear why it didn't catch on more widely.
Sources
- Jason A. Donenfeld, Post Quantum WireGuard, WireGuard v2, ongoing AI discoveries, and so forth (HN, Lobsters)
- Karolin Varner, Rosenpass reply
- Tailscale, Post-quantum key exchange in Tailscale v1.106 and changelog (HN)
- Cloudflare, Cloudflare will be fully post-quantum in 2027
- Joint statement on transition to post-quantum cryptography
- CISA/NSA/ONCD, Joint Statement on Recent Advances in Cryptographic and Cybersecurity Capabilities
- wg(8) man page
- OpenSSH release notes
