Disable post-quantum key agreement in Firefox

Firefox offers hybrid post-quantum key agreement by default, and a firewall or proxy that mishandles it can slow or stall connections. This page explains how administrators and users turn it off as a temporary measure, and how to confirm the change.

On this page

Why Firefox stalls on some sites and how to disable post-quantum key agreement

If a Firefox user or administrator sees page loads that crawl or stall, especially on sites reached through a TLS-inspecting firewall or proxy, the cause may be the post-quantum key agreement that Firefox offers by default. Firefox offers hybrid X25519 and ML-KEM-768 key agreement by default, and the client, not the server, is the side that can be turned off. For a managed fleet, the administrator must act through policy; for a single browser, the user can make the change directly. Mozilla's documentation presents disabling it only as a temporary workaround for middleboxes, proxies or legacy servers that fail on the ClientHello, not as a permanent setting.

The documented route is the enterprise policy PostQuantumKeyAgreementEnabled, set to false. In policies.json, the entry is {"policies": {"PostQuantumKeyAgreementEnabled": false}}. Windows and macOS use a registry value and a configuration profile key of the same name, and Mozilla's policy guide describes where each file belongs and how to confirm the policy applied by opening about:policies after restart. Because a policy set to either value locks the related preferences, users cannot re-enable the setting in the browser, which is why administrators should record the change. A single user may instead set security.tls.enable_kyber to false in about:config, a community-reported step that Mozilla's policy reference does not list among the policy-controllable preferences.

Who has to act on a Firefox post-quantum handshake problem

A Firefox post-quantum handshake problem can be handled at four different levels, and each role controls different parts of it. The right person to act depends on whether the failure is on one personal machine, across a managed fleet, or inside a network device that inspects traffic. The cards below set out what each role can and cannot change.

Firefox user on a personal machine

A user on a personal or unmanaged computer can change the setting directly, but only for their own profile. Type about:config in the address bar, search for security.tls.enable_kyber, and set it to false to stop Firefox offering hybrid key agreement. Mozilla's enterprise guidance is written for administrators, so this manual step is community-reported rather than a documented route. Restart Firefox and retest the site that failed. Users cannot change anything on the server, the firewall or the policy settings of a managed machine.

Policy reference

Administrator who controls Firefox policies

An administrator who manages Firefox across a fleet controls the setting through the dedicated PostQuantumKeyAgreementEnabled policy, set to false in policies.json, the Windows registry, or a macOS configuration profile. The policy locks the related preferences so users cannot change them. Confirm the policy applied by opening about:policies after a restart. The Preferences policy does not cover these settings, so it cannot be used as a substitute. Administrators cannot change the traffic path or the devices that sit between clients and servers.

Policy configuration guide

Network team that owns the inspecting device

The network team that runs the TLS-inspecting firewall or proxy controls how that device handles the larger ClientHello that hybrid key agreement produces. Reports from Mozilla's enterprise list describe slow page loads behind this kind of device, with no error message shown. Network staff can check the device's logs and capture the handshake to find which hop fails. They can also review the device's own configuration, though the sources on this page do not say which settings those devices expose. They cannot change how Firefox builds its handshake.

Enterprise list thread

Vendor of the inspecting device

The vendor of the firewall or proxy is the party that can fix a device that mishandles hybrid key agreement. Ask the vendor whether its current firmware supports the hybrid group and whether a release addresses larger handshakes. The sources on this page do not name any vendor fix, so confirm the status with the vendor directly. Until a fix arrives, the workarounds are on the Firefox side, and the network team cannot rely on the vendor to resolve the problem on its own timeline.

How to check which key exchange Firefox negotiated

These steps confirm the Firefox version and the current state of the post-quantum key agreement setting before you change anything, so you have a baseline to compare against after the change. The Network Monitor check is useful, but it does not show the key exchange group directly, so you will need a second method to confirm which group was negotiated.

  1. Find the Firefox version

    Open the About Firefox dialog from the application menu, or open about:support in the address bar and read the Application Basics section. Record the version number, and note whether it is a standard release, an ESR build, or an Enterprise build, because the availability of the relevant policy and preferences differs by channel. Mozilla's support article on finding your Firefox version describes both routes. You are done when you have the exact version string written down.

  2. Confirm the current setting in about:config

    Open about:config and search for security.tls.enable_kyber. On current desktop builds this preference is true by default, which means Firefox offers hybrid key agreement. Record the value as it stands before you change anything. If you manage Firefox through policy, open about:policies instead and check whether PostQuantumKeyAgreementEnabled is already listed, since a policy lock will prevent you from editing the preference by hand. You are done when you know whether the preference is set by default, by you, or by a policy.

  3. Open Network Monitor and select a request

    Press F12 to open Developer Tools, switch to the Network tab, and reload a page on an HTTPS site you are testing. Select a request in the list to open its details panel, then select the Security tab. The Security tab shows the TLS protocol version, the cipher suite, and certificate details. It does not show a key exchange group field, so this tab alone cannot tell you whether mlkem768x25519 was negotiated. You are done when you have viewed the protocol and cipher suite for the request.

  4. Confirm the key exchange group another way

    Because the Security tab does not report the key exchange group, confirm it with a separate method. Options include capturing the handshake with a packet analyzer and reading the ClientHello and ServerHello key share entries, or using a server-side or proxy log that records the negotiated group. Check your own tooling's documentation for how it reports key share groups, since the sources for this page do not describe a Firefox-specific view. You are done when you have evidence of the negotiated group for a known test connection.

  5. Record a baseline before changing anything

    Write down the Firefox version, the value of security.tls.enable_kyber, the test URLs you used, the protocol and cipher suite shown in the Security tab, and the key exchange group from your second method. Also note how long a typical page takes to load on the test site. Keep this record so you can compare the same test after the change. You are done when the baseline is saved somewhere your team can retrieve it.

  6. Test the connection through the affected path

    If you are investigating slow loads or failures, repeat the same test on the network path where the problem appears, such as a site behind a TLS-inspecting firewall or proxy. Compare load times and connection results against your baseline. Reports on Mozilla's enterprise mailing list in September 2025 described slow page loads behind a TLS-inspecting firewall, but the sources do not establish the cause in your environment, so treat the test as evidence to compare, not a diagnosis. You are done when you have the same measurements from the affected path and from a clean path.

Causes of Firefox handshake stalls and the fix for each

This table lists three causes of stalled or slow Firefox connections once hybrid key exchange is offered, with the fix for each. Read each row to find the cause that matches your network, then apply the fix in the order given. Where a fix is a temporary workaround, it is labeled as one.

CauseWhat happensFix
TLS-inspecting firewall or proxyThe device mishandles the larger ClientHello that carries the hybrid key share, so pages load slowly or stall, as reported on Mozilla's enterprise list with Firefox 140 ESR and 143.Update or reconfigure the inspecting device to handle the larger ClientHello. As a temporary workaround, set the PostQuantumKeyAgreementEnabled policy to false.
DNS HTTPS record advertising h3 for a server without HTTP/3The record lists alpn h3 and h2 for a server that does not enable HTTP/3, so connections negotiate x25519 instead of mlkem768x25519.Correct the DNS record to alpn h2 for that server, as described in Bugzilla 2019506. Confirm the server does not serve HTTP/3 before changing the record.
Legacy server or middlebox that fails on hybrid key exchangeThe server or middlebox cannot complete a handshake that offers the hybrid group, so the connection fails or stalls.Update the server or middlebox if a supported version is available. As a temporary workaround, set the PostQuantumKeyAgreementEnabled policy to false, which removes protection against later decryption of recorded traffic.

How to disable post-quantum key agreement in Firefox by policy

This sequence writes a Firefox enterprise policy that turns off post-quantum key agreement for TLS, HTTP/3 and WebRTC on managed machines. Administrators apply it through policies.json, the Windows registry or a macOS configuration profile, then confirm it on each device. The policy locks the affected preferences, so it should be a deliberate, temporary step while you investigate a failing hop.

  1. Confirm the policy is the right route

    Before changing anything, confirm that a middlebox, proxy or legacy server is failing during the TLS handshake and that the cause is hybrid key agreement. Mozilla's policy page presents disabling it only as a temporary workaround, since Firefox offers hybrid X25519 and ML-KEM-768 key agreement by default and most deployments do not need to change it. Record the Firefox version and the affected sites so you can test the change against them. Disabling the policy removes protection against later decryption of recorded traffic, so note who approved that tradeoff.

  2. Write the policy JSON file

    Create a file named policies.json containing the object {"policies": {"PostQuantumKeyAgreementEnabled": false}}. Check that the JSON is valid before distribution, since a syntax error can stop the policy from applying. Keep the file in a version-controlled location so the change can be reviewed and reverted. Mozilla's policy reference describes the boolean as enabling or disabling post-quantum key agreement for TLS, HTTP/3 from Firefox 128, and WebRTC.

  3. Place the file in the distribution directory

    On Windows, put policies.json in a distribution directory next to the Firefox executable. On Linux, use firefox/distribution or /etc/firefox/policies, depending on how Firefox was installed. Confirm the exact directory for your package and install method in Mozilla's policy configuration guide, since the path differs between builds. Make sure the file is readable by the account that starts Firefox.

  4. Set the Windows registry value or macOS profile key

    For managed Windows devices that use group policy or registry settings instead of a file, set the value PostQuantumKeyAgreementEnabled under Software\Policies\Mozilla\Firefox to 0x0. On macOS, deliver a configuration profile for the org.mozilla.firefox domain that sets the key PostQuantumKeyAgreementEnabled to the boolean false. Test the profile on one device before pushing it to a fleet. Only one method is needed per machine, so avoid mixing them without reason.

  5. Restart Firefox on the target device

    Close every Firefox window and process, then start Firefox again so it reads the policy file, registry value or profile. A running instance will not pick up a change made while it was open. Restart on each device in your test group before extending the change to others.

  6. Verify the policy in about:policies

    Open about:policies in Firefox and check that PostQuantumKeyAgreementEnabled appears with the value false. If it is missing, recheck the file path, JSON syntax or registry location, then restart again. The page is the confirmation that the policy was applied, not just written to disk.

  7. Test the affected sites and record the result

    Load the sites that previously failed or stalled and compare load times and error messages with your baseline. Note that the policy locks the related preferences, including security.tls.enable_kyber, network.http.http3.enable_kyber and media.webrtc.enable_pq_hybrid_kex, so users cannot change them. Record the device, Firefox version, test results and the review date, and set a reminder to revisit the workaround once the upstream cause is fixed.

How the Firefox policy route differs by operating system and edition

On Windows, the policy can be delivered either as a policies.json file or as a registry value. Place policies.json in a distribution directory next to the Firefox executable, then restart Firefox and open about:policies to confirm the policy was applied. For registry-based deployment, set the value PostQuantumKeyAgreementEnabled to 0x0 under Software\Policies\Mozilla\Firefox, which disables post-quantum key agreement, and restart Firefox afterward.

  • File location: policies.json goes in a distribution folder beside firefox.exe, as described in Mozilla's policy configuration guide.
  • Registry path: Software\Policies\Mozilla\Firefox\PostQuantumKeyAgreementEnabled, set to 0x0 to disable.
  • Restart step: Fully close and reopen Firefox so the policy is read at startup.
  • Verification: Open about:policies and confirm PostQuantumKeyAgreementEnabled is listed as applied.
  • Availability: The policy page lists Firefox 127, Firefox ESR 128 and Firefox Enterprise 149.

After the restart, check that about:policies shows the policy and that the locked preferences cannot be changed by users. Confirm the exact registry handling against your own Firefox version's documentation before rolling it out widely.

How to confirm Firefox no longer offers hybrid key agreement

After you deploy the PostQuantumKeyAgreementEnabled policy set to false, confirm that Firefox actually applied it before you test the site again. Restart Firefox, then open about:policies in the address bar. The page should list PostQuantumKeyAgreementEnabled with the value false under the active policies. If the policy is missing, check the file location for your platform: policies.json in a distribution directory next to the Firefox executable on Windows, in firefox/distribution or /etc/firefox/policies on Linux, or the configuration profile for the org.mozilla.firefox domain on macOS. The Firefox policy configuration guide describes each location. A policy that does not appear in about:policies was not applied, and the rest of this check will not tell you anything useful.

Next, reload the affected site and time the page load. Earlier reports on Mozilla's enterprise list, from a September 2025 thread about Firefox 140 ESR and Firefox 143 behind a TLS-inspecting firewall, described loads of 15 to 50 seconds where 2 to 4 seconds was expected. Use a comparable baseline from your own environment, measured before and after the change, rather than treating those figures as a target. Success in plain terms means the page loads at its normal speed and the site works without errors. Open Network Monitor, select the request, and check the Security tab. That tab shows the protocol, cipher suite and certificate details, but it does not show a key exchange group field, so use it to confirm the connection completes cleanly rather than to verify that the key exchange is absent. Record the Firefox version from about:support under Application Basics or from the About Firefox dialog.

Afterwards, watch for two things. First, any return of the slow loads or handshake failures, which would suggest the middlebox problem is still present. Second, remember that disabling the policy removes protection against later decryption of recorded traffic, so keep it in place only as long as the cause is unresolved. When the firewall, proxy or server is fixed, remove the policy or set it to true, restart Firefox, and confirm the new value in about:policies. Then repeat the timed load test. Also note that a proxy advertising the wrong DNS HTTPS record can cause connections to fall back to x25519 instead of mlkem768x25519, so check that record if the problem returns, using the Bugzilla report for that behavior as a reference.

What can break when Firefox post-quantum key agreement is turned off

Turning off hybrid key agreement in Firefox is a temporary workaround, not a fix, and it carries several consequences that persist after the symptom goes away. The cards below cover what the setting protects, how policy and preferences interact, the separate ML-KEM-1024 control, a side effect from an alternate workaround, and the need to revert once the network path is repaired.

Loss of protection against recorded traffic

While PostQuantumKeyAgreementEnabled is set to false, Firefox stops offering the hybrid X25519 and ML-KEM-768 key agreement for TLS, HTTP/3 and WebRTC. Traffic captured during that period is protected only by the classical key exchange, so an adversary who records it today could decrypt it later with a sufficiently capable quantum computer. The policy documentation itself warns about this trade-off. Before you disable the setting, confirm with your security team that the affected sessions can accept this exposure, and record the date you turned it off so it can be reversed.

Policy reference

Policy locks preferences for users

Setting the policy to either true or false locks the related preferences, so users cannot change them in about:config or the settings interface. A user who tries to restore protection on a managed machine will find the option unavailable. Check about:policies after the change to confirm the policy was applied, and tell users that changes must go through the administrator who owns policies.json, the registry value or the configuration profile.

Policy configuration guide

ML-KEM-1024 is controlled separately

The CNSA2KeyAgreementEnabled policy controls security.tls.enable_mlkem1024, which governs ML-KEM-1024 key agreement. Firefox does not offer that group by default. Setting PostQuantumKeyAgreementEnabled to false does not stop ML-KEM-1024 from being offered when the CNSA2 policy is enabled. If your deployment uses CNSA2, check that policy separately and do not assume the false setting covers it. The policy is listed for Firefox 154 and Firefox Enterprise 154, and it is not supported on ESR.

CNSA2 policy reference

HTTP/3 side effect from a manual workaround

Some users in a September 2025 enterprise thread fixed slow page loads by setting network.http.http3.enable to false instead of disabling key agreement. That setting turns off HTTP/3 entirely, so connections fall back to HTTP/2 or HTTP/1.1 and lose any benefit HTTP/3 provided. This is a different and broader change than disabling post-quantum key agreement, and it is not a substitute for the policy. Record which workaround you applied, because the two produce different behavior.

Enterprise list thread

Revert after the network path is fixed

The false setting is intended for middleboxes, proxies or legacy servers that fail on the ClientHello. Once the firewall, proxy or server has been updated to handle the larger handshake, remove the policy or set it back to true, restart Firefox and confirm the change in about:policies. Leaving the workaround in place means the exposure described above continues indefinitely. Schedule the revert as part of the remediation ticket rather than treating it as optional cleanup.

Policy reference

When to get help with a Firefox post-quantum handshake problem

Escalate when the stall cannot be fixed at the client. If the inspecting firewall or web proxy that is mishandling the larger hybrid ClientHello cannot be updated or reconfigured, and the slow or failing connections affect many users, setting PostQuantumKeyAgreementEnabled to false is a workaround, not a fix. Mozilla's policy page describes false as a temporary workaround for middleboxes, proxies or legacy servers that fail on the ClientHello. Bring in the team that owns the middlebox and the network team together, because the decision to keep the workaround in place for a fleet has to be made by someone who can weigh the protection loss against the outage. Mozilla's enterprise list thread from September 2025 describes users on Firefox 140 ESR and 143 behind a TLS-inspecting firewall seeing page loads of 15 to 50 seconds, so a multi-user stall of that kind is the pattern to watch for.

Escalate as well when the environment is regulated and must keep documented evidence of the change and its reversal. Record the policy file or profile that was deployed, the restart, the about:policies output showing the policy applied, and the date and scope of the change, and record the same for the rollback. The policy page warns that disabling key agreement removes protection against later decryption of recorded traffic, so the risk acceptance belongs with the people who own that exposure, not only with the desktop team. Confirm with your compliance and security owners what they need to see, since this page does not set those requirements.

Escalate when the policy does not take effect as Mozilla's policy pages describe. If about:policies does not list PostQuantumKeyAgreementEnabled, or the preferences still show the hybrid group enabled after a restart, check the file location for your platform in Mozilla's policy configuration guide and the JSON or profile syntax, then raise it with the team that manages your Firefox deployment. Bring the Firefox version from the About Firefox dialog or about:support, the operating system, and a copy of the policy file, so the next reader can reproduce it. The sources listed on this page are the next read: the policy reference, the configuration guide, and Bugzilla 2008597 for the change that removed the fallback mechanism in Firefox 151.

Questions people ask about disabling Firefox post-quantum key agreement

Is the connection still encrypted when the post-quantum setting is turned off?

Yes. Turning off the setting only changes which key exchange Firefox offers. Firefox still negotiates TLS 1.3 with classical key agreement, so the session stays encrypted. What you give up is the hybrid protection: Firefox offers hybrid X25519 + ML-KEM-768 by default, and with the setting off, traffic is protected by classical key exchange alone. That protection matters for recorded traffic. Disabling the setting removes protection against later decryption of traffic an attacker records today, so treat it as a temporary workaround, not a permanent fix.

Is the warning urgent, and do I need to act right away?

The sources do not describe a warning message for this case. The reported symptom is slow page loads, not an error. Users on Firefox 140 ESR and Firefox 143 behind a TLS-inspecting firewall reported loads of 15 to 50 seconds, compared with 2 to 4 seconds before, in a September 2025 thread on Mozilla's enterprise list. Treat it as an operational problem to fix on a schedule that suits your team, and confirm the cause in your own environment before changing settings. Disabling the setting is a workaround; the longer-term fix is to check whether the firewall or proxy mishandles the larger handshake.

Is it safe to ignore the slow loading and leave the setting alone?

Ignoring it leaves users with slow sessions but keeps the hybrid protection in place. Whether that trade-off is acceptable depends on your environment. The reported stall appeared on Firefox 140 ESR and Firefox 143 behind a TLS-inspecting firewall, so the device in the path is the first thing to check. If the slowdown affects work, a targeted change is the usual approach, but use the policy with the narrowest scope and document the reason. Note that Mozilla's Bugzilla bug 2008597, resolved fixed for Firefox 151, removed a mechanism that had disabled ML-KEM after certain network errors, citing more confidence that ML-KEM does not cause widespread breakage. Confirm the version you run before deciding.

Why does this appear on Firefox 140 ESR or 143 behind a firewall?

The reports describe a TLS-inspecting firewall in the path. Hybrid key agreement makes the ClientHello larger, and a middlebox that does not handle the larger handshake can stall or slow the connection. The sources do not confirm the exact fault in any particular firewall. Mozilla's enterprise thread records that Benjamin Beurdouche suggested setting security.tls.enable_kyber to false, which two users reported fixed the problem, while another user set network.http.http3.enable to false instead. A related case is Bugzilla bug 2019506, where a DNS HTTPS record advertising alpn="h3,h2" for a server without HTTP/3 caused connections to negotiate x25519 instead of mlkem768x25519; correcting the record restored the hybrid group. Check your DNS records and the firewall's inspection rules as well as the Firefox setting.

What should I do if the firewall cannot be upgraded?

Use the Firefox policy, not a manual change, so the setting applies to every profile on the managed fleet. Mozilla's PostQuantumKeyAgreementEnabled policy takes a boolean; setting it to false disables post-quantum key agreement for TLS, HTTP/3 and WebRTC, and it locks the related preferences so users cannot change them. The policy page presents false only as a temporary workaround for middleboxes, proxies or legacy servers that fail on the ClientHello. Deploy it with a policies.json file (for example, {"policies": {"PostQuantumKeyAgreementEnabled": false}}), a registry value on Windows, or a configuration profile on macOS, then restart Firefox and open about:policies to confirm it applied. Record the change and plan to revert it once the device is fixed.

Is disabling the post-quantum setting permanent?

No, not by design. Mozilla's policy page describes false as a temporary workaround, and the setting can be reversed by removing the policy or setting it back to true. The change lasts only as long as the policy or preference remains in place, so the reversal depends on how you deployed it. For a single user, the community-reported manual step is to set security.tls.enable_kyber to false in about:config, but the sources do not list it as a supported preference for policy control. Plan the rollback before you start: remove the policy, restart Firefox, and confirm the setting in about:support or with the Network Monitor Security tab, which shows protocol and cipher suite but not the key exchange group.

Does disabling the setting remove protection against later decryption?

Yes. Mozilla's policy page states that disabling post-quantum key agreement removes protection against later decryption of recorded traffic. An attacker who records encrypted sessions today could decrypt them later, once quantum-capable attacks exist, if the sessions used only classical key agreement. This is the main cost of the workaround. Weigh it against the operational cost of the stall, limit the scope of the change, and revert it when the device is fixed. The sources do not say when quantum-capable attacks will exist, so do not treat the risk as immediate.

How DeployOpen works on this

DeployOpen starts by confirming whether Firefox hybrid key agreement is the cause of a failure, since Firefox offers X25519 with ML-KEM-768 by default. We then apply the narrowest change that fits your environment, whether a policy, a preference or a network fix, and test it against the affected sites and middleboxes. Each step is written down so your team can review it.

How we scope

  • We confirm the Firefox version, edition (release or ESR) and the platforms in use, since the policy and preference routes differ.
  • We identify whether a TLS-inspecting firewall, proxy or legacy server is involved before recommending any change to the setting.
  • The written scope names the sites, networks and user groups covered, and states whether the policy will be applied fleet-wide or per device.

How we build

  • We apply the PostQuantumKeyAgreementEnabled policy through policies.json, the Windows registry or a macOS configuration profile, as the environment requires.
  • We check the result in about:policies and test slow or failing sites before and after the change to measure the effect.
  • Where the failure comes from a DNS HTTPS record or a middlebox, we document that fix as an alternative to disabling key agreement.

How we hand over

  • Deliverables include the exact policy file or profile, the test results per site and a rollback procedure for each platform.
  • We record the trade-off in writing: disabling the setting removes protection against later decryption of recorded traffic, so it is documented as temporary.
  • Your team receives a retest checklist to run after Firefox updates, since the behavior has changed across recent releases.

How we support

  • Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts.
  • Ongoing support is available as a retainer for re-testing after Firefox ESR or release updates.
  • We can re-check the policy and the affected sites when your firewall or proxy vendor ships a fix, so the workaround can be removed on schedule.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.