Skip to content
Info disclosure Disclosed report Intermediate CVE-2026-12310

Firefox VPN leaks DNS HTTPS record queries outside the VPN tunnel for schemeless domains (URL without protocol) typed into the address bar

When a user types a domain without the https:// prefix into Firefox's address bar while the built-in VPN is on, Firefox sends an HTTPS DNS record query outside the VPN tunnel in cleartext. A hostile network can observe which sites the user is trying to visit, and can force this leak by tampering with the DoH canary domain or blocking DoH servers.

Carl Pearson Follow

Originally disclosed on Mozilla

  • Fixed in 19 days
  • Paid in 48 days
  • Disclosed after 19 days

Description

The Firefox browser comes with a built-in VPN as of Firefox 149. https://support.mozilla.org/en-US/kb/built-in-vpn. The built-in VPN tunnels user web and DNS traffic through Mozilla VPN infrastructure when enabled.

If a user types a domain or URL directly into the address bar without including the https:// protocol prefix, such as www.google.com/ or http://www.google.com/, Firefox appears to send an HTTPS DNS query for the typed address which travels outside of the VPN tunnel. The query for the HTTPS record is sent unencrypted and visible in cleartext, permitting a hostile network actor to observe what site the user is attempting to visit through the VPN.

Firefox does not appear to send an HTTPS DNS query if the user explicitly types the "https://" prefix before the address, such as entering https://www.google.com/. This makes sense, as the DNS query is looking for an HTTPS endpoint, but if the user enters an HTTPS URL then Firefox has no need to lookup if the destination has an HTTPS record.

DoH affects this vulnerability as HTTPS queries are sent over DoH by default. However, Firefox only enforces DoH if the user explicitly configures it. Firefox's default configuration falls back to normal unencrypted DNS traffic if connectivity to DoH severs is blocked or if Firefox receives an NXDOMAIN response for the canary domain use-application-dns.net. A hostile network can tamper with the DNS response for the canary domain or block connectivity to DoH servers. Doing either coerces Firefox into falling back to cleartext UDP DNS traffic which can then be seen by the hostile network.

The vulnerability impacts the confidentiality of the user's VPN session. The user's VPN browsing activity is no longer completely private and is disclosed to untrusted networks.

Reproduction

You will need

  • A Windows or Linux system with Firefox browser installed. The browser needs to have the VPN client enabled. If it is not enabled, you can enable it by going to about:config and toggling "browser.ipProtection.enabled" to "true".
  • A packet capture tool to watch traffic leaving the test system. I'm using Wireshark in this example.
  1. Turn off DNS over HTTPS (DoH) in Firefox by navigating to Settings -> Privacy and security -> DNS over HTTPS -> select the "Off" option. The vulnerability can still be exploited in 2 of 3 DoH configurations but for quick reproduction turning it off is easier.
  2. Sign into the Firefox VPN with a Mozilla account.
  3. Enable the Firefox VPN.
  4. Open up Wireshark or your packet capture tool and begin capture on the outbound network interface. Filter for outbound DNS (udp dest port 53)
  5. Browse to some test sites. You should not see any DNS queries from Firefox aside from some queries for Mozilla domains, which is expected. This confirms the VPN is working.
  6. Type a url in the Firefox address bar with an http:// prefix or no prefix, such as http://www.cnn.com/home or www.cnn.com, and press Enter.

The packet capture window should show a DNS query for HTTPS record for the URL entered in the address bar even though the Firefox VPN is on.

Etc

DNS over HTTPS

DNS over HTTPS is a security setting in Firefox that tunnels DNS queries over an encrypted connection to a DNS server. If DoH is enabled then DNS queries including HTTPS queries are routed to the DoH resolver and are not visible.

However, Firefox can be coerced by a hostile network into leaking address bar HTTPS queries in 2 out of 3 DoH settings.

Default Protection

Firefox enables DoH with the "Default Protection" level by default. However, upon startup Firefox makes a DNS request for a canary domain, use-application-dns.net. For this query, if Firefox receives a DNS response status of NXDOMAIN or SERVFAIL, or if the DNS answer does not contain an A or AAAA record, then Firefox will not use DoH and falls back to normal DNS settings. https://support.mozilla.org/en-US/kb/canary-domain-use-application-dnsnet

A hostile network in position to control DNS responses can send back an NXDOMAIN response to the query for use-application-dns.net and Firefox will fall back to using normal DNS settings. This allows the hostile network to see address bar DNS HTTPS queries outside the VPN tunnel.

I tested setting the canary domain response to return no A or AAAA records. Firefox then fell back to non-DoH DNS behavior and leaked DNS HTTPS queries from address bar when on VPN.

Increased Protection

If the user increases the DoH protection level to "Increased Protection", then Firefox ignores the canary domain result, but will still fall back to normal DNS settings if connectivity fails with the DoH servers. A hostile network in position to block access to DoH servers at the IP or TCP level can force Firefox to fall back to using normal DNS settings and leak address bar DNS HTTPS queries outside the VPN tunnel.

I tested setting Firefox to "Increased Protection" using Cloudflare DoH provider and blocked access to Cloudflare's IPs at my router. Firefox then fell back to non-DoH DNS usage and leaked DNS HTTPS queries from address bar when on VPN.

Max Protection

If the user increases the DoH protection level to "Max Protection" then Firefox will not fall back to normal DNS settings even if connectivity fails to the configured DoH servers. I tested blocking Firefox's access to DoH servers and enabling DoH with the "Max Protection" setting, but no DNS HTTPS queries from the address bar were leaked. This is not the default configuration and has to be specifically set by the Firefox user.

Caching

Firefox appears to cache HTTPS query results. If you re-enter the same URL again, or enter a URL Firefox has already visited, then it doesn't appear to send an HTTPS query, even if the entered URL has the http:// prefix or no protocol prefix.

Versions

Tested on:

  • Firefox beta 151.0b10 (64-bit) Windows OS
  • Firefox 150.0.3 Ubuntu

If I can provide further information please let me know. Thanks!

The original report as published on Mozilla's Bugzilla, by Carl Pearson. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the address-bar HTTPS record lookup is performed by a DNS path that is not routed through the VPN tunnel, and Firefox's DoH fallback behaviour lets a hostile network force that path into cleartext.

Impact

A hostile network could observe the sites a VPN user is trying to visit; the leak occurs in the default and increased DoH protection levels but not in Max Protection.

What the attacker needed

Firefox with built-in VPN enabled; victim types a URL without https://; hostile network on the path; DoH not set to Max Protection

How it was found

  1. Turn off DNS over HTTPS in Firefox settings.
  2. Sign into the Firefox VPN with a Mozilla account.
  3. Enable the Firefox VPN.
  4. Start a packet capture on the outbound interface filtered for outbound DNS.
  5. Confirm the VPN is working by browsing test sites and seeing no unexpected DNS queries.
  6. Type a URL with an http:// prefix or no prefix into the address bar and press Enter, then observe the HTTPS DNS query in the capture.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A VPN is meant to hide which websites you visit from the local network. Firefox also looks up extra DNS information about a site before connecting, and in this case that lookup went around the VPN in plain text. Someone on the same Wi-Fi could see the site name you typed.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Carl Pearson

View all

1 more disclosed report, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.