CVE-2025-8031 Incorrect URL stripping in CSP reports

Critical 9.8 Published Updated

Incorrect URL stripping in CSP reports may leak HTTP Basic Authentication credentials to remote servers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-8031?

CVE-2025-8031 is a critical vulnerability in Mozilla Firefox, published on 22 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The `username:password` part was not correctly stripped from URLs in CSP reports potentially leaking HTTP Basic Authentication credentials. This vulnerability was fixed in Firefox 141, Firefox ESR 128.13, Firefox ESR 140.1, Thunderbird 141, Thunderbird 128.13, and Thunderbird 140.1.

Weakness: CWE-276

Which versions are affected by CVE-2025-8031?

It affects 2 products.

Products include Mozilla Firefox, Mozilla Thunderbird.

How do I fix CVE-2025-8031?

Upgrade to a fixed version.

Is CVE-2025-8031 being exploited?

There is no known exploitation of CVE-2025-8031 in the wild and no public exploit code.

All Mozilla Firefox vulnerabilities

Sources

Also known as DEBIAN-CVE-2025-8031, GHSA-q32c-9wc5-gv77, UBUNTU-CVE-2025-8031.

Is CVE-2025-8031 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free