Skip to main content
Back to Articles
Compliance6 min readBy Armin Zaribaf

Post-Quantum Cryptography at CookieBeam: Where We Are and What's Next

How CookieBeam uses post-quantum cryptography today: hybrid key agreement for visitor connections and nested ML-DSA signatures on consent receipts.

On 2 December 2026, Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle published a joint statement urging organisations to adopt NIST's post-quantum cryptography standards and to accelerate the migration. On 3 December, Cloudflare announced it will complete its own post-quantum migration by the end of 2027. This article explains what CookieBeam already has in place and what we're working on next.

Why post-quantum matters for a consent platform

Quantum computers large enough to break today's public-key cryptography don't exist yet, but two risks are already real. First, data recorded today could be decrypted later if an attacker stores the ciphertext now and waits for a capable machine ("harvest now, decrypt later"). Second, digital signatures that need to remain valid for years, such as those on consent receipts, need quantum-safe algorithms so they can still be verified in the future.

A consent management platform sits at the intersection of both risks. It handles encrypted connections carrying personal consent choices, and it produces signed records that regulators or auditors may need to check years from now.

What's shipped today

Visitor connections. Every connection from a visitor's browser to cookiebeam.com, our banner CDN and our server-side GTM hostnames terminates at Cloudflare's edge. Cloudflare uses hybrid post-quantum key agreement (X25519MLKEM768) for TLS 1.3 and QUIC with browsers that support it. Current versions of Chrome, Edge, Firefox and Safari all do. The certificates on that path are still classical, until Cloudflare's post-quantum certificates ship. Cloudflare expects to begin issuing post-quantum Merkle Tree Certificates from early 2027. You can read more about which Cloudflare products already use post-quantum cryptography on their documentation page.

Internal tunnels. Our servers accept no direct traffic from the internet. They're reachable only through Cloudflare Tunnel, and Cloudflare documents that all tunnel connections use TLS 1.3 and post-quantum encryption by default.

Symmetric cryptography. Dashboard sessions and our internal tokens use symmetric cryptography, which quantum computers don't meaningfully threaten at the key sizes we use.

Protecting the banner code your visitors run

The CookieBeam banner runs on your site, for all your visitors, so how it's delivered matters as much as the cryptography around it. A script loaded on many sites is a single point of trust. In November 2026, an attacker exploited a vulnerability in Optimizely's Experimentation product and injected malicious JavaScript into some customer projects; security researchers counted 178 affected organisations. That wasn't a failure of encryption. It came down to who could change the code those sites load. Those are the controls that matter, and here's what ours look like.

The install tag loads the banner over HTTPS from cdn.cookiebeam.com, which terminates at Cloudflare's edge with the same hybrid post-quantum key agreement described above. The code can't be altered in transit.

Every released version of the banner's core library is published at its own versioned address and is immutable: our upload won't overwrite a published version with different bytes. New core versions go out to a small set of banners first (canary) before every banner gets them. The core library is built in our CI pipeline, never on production servers.

On the supply-chain side, new versions of third-party packages are held for at least two days after release before we install them. GitHub Actions in our pipelines are pinned to exact commits. The banner core keeps its runtime dependencies to a minimum, each pinned to an exact version.

If your site uses a strict Content Security Policy, you can load the banner with a nonce and strict-dynamic. See our CSP documentation for details.

In progress: auditing every connection

We're building a read-only check that tests every connection behind or outside Cloudflare (our own outbound connections) for post-quantum key agreement. It's built and ships in an upcoming release. The results will feed the planned steps below.

Post-quantum consent-receipt signatures

This is the piece we think matters most for our customers. Every new consent receipt is now a nested JWS: an outer token signed with ML-DSA-65 (the post-quantum signature algorithm NIST standardised in 2024) whose payload is the existing Ed25519 JWS. A receipt is valid only when both signatures verify, so it stays trustworthy as long as either algorithm holds. Both keys are published at /.well-known/cookiebeam-jwks.json (see our consent records documentation for details, or our article on consent receipts and ISO 27560).

To verify a new receipt manually: check the outer ML-DSA-65 signature, base64url-decode its payload to get the inner JWS, and verify that with the Ed25519 key. The verification endpoint handles both steps for you. Older Ed25519-only receipts still verify but are reported as classical.

Why it matters: a consent receipt is evidence. If a regulator or auditor checks it five or ten years from now, the signature needs to hold up. A classical-only signature on a record from 2027 might not pass muster in 2037 if quantum computers can forge Ed25519 by then. The nested signature means verifiers can rely on whichever algorithm is still standing.

Other planned steps

  • Node.js 24 LTS. We plan to move our servers' runtime to Node.js 24 LTS, which adds native ML-DSA support to Node's crypto module.
  • Post-quantum administrative access. Post-quantum protection for administrative access to our servers.
  • Service-provider review. A quarterly review of our service providers' post-quantum support, turning it on as they ship it, and switching on Cloudflare's post-quantum certificates when they're offered.

Because our edge and tunnels run on Cloudflare, its 2027 post-quantum work (authentication and certificates) will reach cookiebeam.com as it ships. We'll switch on what needs switching on as each piece becomes available.

Frequently asked questions

Do my visitors' browsers need to support anything special?

No action is needed from you or your visitors. Current versions of Chrome, Edge, Firefox and Safari already support hybrid post-quantum key agreement for TLS 1.3. When a visitor's browser supports it, Cloudflare uses it automatically. If the browser doesn't support it, the connection falls back to classical key agreement.

Does the new receipt format affect my existing verification code?

Yes, the token format has changed. The outer token is now signed with ML-DSA-65, and the Ed25519 JWS is its payload. If your code verified the EdDSA signature on the outer token directly, it now needs one extra step: base64url-decode the outer token's payload to get the inner JWS, then verify that with the Ed25519 key as before. Alternatively, POST the token to the verification endpoint, which handles both signatures for you. Both keys are at /.well-known/cookiebeam-jwks.json under the same kid. Older Ed25519-only receipts still verify normally.

Are current RSA and elliptic-curve algorithms broken?

No public break has been demonstrated, and no quantum computer known to be capable of it has been built. The migration isn't about a present danger; it's about not waiting until the danger is confirmed. Data encrypted now could be stored and decrypted later, and signatures intended to last for years benefit from quantum-safe algorithms sooner rather than later.

Is there anything I need to do on my site?

Nothing. Post-quantum key agreement is handled at the infrastructure level. Visitors' connections to the banner and consent endpoints, and your connection to the dashboard, use it automatically when the browser supports it. No configuration changes are needed on your end.

5 min read

TCF and Google Additional Consent Explained

Google runs ad tech partners that aren't on the IAB Global Vendor List, so TCF alone can't signal consent for them. The Additional Consent (AC) string fills the gap. Here's the format and how a CMP produces it.

5 min read

Google's Certified CMP Requirement for AdSense, Ad Manager and AdMob

If you serve personalised ads on your site or app in the EEA, UK or Switzerland through Google AdSense, Ad Manager or AdMob, Google requires a certified CMP integrated with the IAB TCF. Here's what that means, the enforcement dates, and the revenue cost of ignoring it.

9 min read

TCF v2.4: What Changed for Publishers and CMPs

TCF v2.4 adds standard explanation texts and illustrations to the Global Vendor List, renames Special Feature 2, updates TCF Policies to v5.0.b, and introduces multi-device consent provisions. Required on web since 23 October 2026; apps and CTV by 23 February 2027.

6 min read

Is Your Analytics Vendor a Controller or Processor?

When you run Google Analytics, is Google acting on your instructions or its own? The answer decides who's liable, what contract you need, and whether the setup is even lawful. It varies by vendor, and sometimes by a single checkbox.