Information leak in Frames (CVE-2026-87437)
The Connection-Allowlist violation reporting pipeline fails to strip URL fragments from the document and blocked resource URLs before including them in the report body. An attacker could potentially leak sensitive fragments such as OAuth tokens to a reporting collector.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 43 days
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: Blink's Connection-Allowlist violation reporting pipeline potentially leaks raw document and blocked resource URLs, including their sensitive URL fragments, to reporting collectors. Although the top-level reporting pipeline sanitizes top-level report URLs, the inner JSON report body preserves fragments such as OAuth tokens. This occurs because the report body creation fails to strip fragments before sending them over Mojo and the reporting API.
Affected files:
third_party/blink/renderer/core/frame/connection_allowlist_violation_report_body.ccthird_party/blink/renderer/core/frame/reporting_context.cccontent/browser/network/reporting_service_proxy.cc
Estimated timestamp from git blame: 2026-06-02
Root Cause
In third_party/blink/renderer/core/frame/connection_allowlist_violation_report_body.cc inside ConnectionAllowlistViolationReportBody::QueueReport, the report body is constructed using raw, unstripped URL strings:
// third_party/blink/renderer/core/frame/connection_allowlist_violation_report_body.cc:85-88
ConnectionAllowlistViolationReportBody* body =
MakeGarbageCollected<ConnectionAllowlistViolationReportBody>(
execution_context.Url().GetString(), connection, blink_allowlist,
disposition_obj);
ExecutionContext::Url().GetString() (referencing Document::url_ under the hood) returns the raw document URL, which includes any #fragment identifier (e.g., #access_token=SECRET_TOKEN). Similarly, the connection string argument represents the raw blocked-resource URL (e.g., https://disallowed.example/x#icon), which also retains its fragment identifier.
These unstripped strings are passed via Mojo to the browser process and handled in ReportingServiceProxyImpl::QueueConnectionAllowlistViolationReport (content/browser/network/reporting_service_proxy.cc:245-264). The browser proxy writes them verbatim into the base::DictValue body dictionary:
body.Set("url", url_string); // Document URL with fragment intact
body.Set("connection", connection); // Blocked resource URL with fragment intact
While the core network reporting service (net/reporting/reporting_service.cc:113) sanitizes the top-level report url using url.GetAsReferrer(), the inner JSON body is treated as opaque and cloned verbatim (net/reporting/reporting_delivery_agent.cc:83). Consequently, the configured reporting collector receives the full, unstripped URLs inside the body field of the JSON payload, potentially leaking sensitive information such as OAuth implicit-flow tokens, credentials, or session state.
Comparison with Siblings
Other similar reporting structures explicitly strip both the document and blocked URLs prior to report body construction. For instance, in IntegrityPolicy (third_party/blink/renderer/core/frame/integrity_policy.cc:41-48), both URLs are sanitized using ContentSecurityPolicy::StripURLForUseInReport before IntegrityViolationReportBody instantiation.
Potential Trigger Steps
Note: These are suggested/potential steps to demonstrate the leak, as our tooling agent does not currently have the capability to run code to confirm a working proof-of-concept.
- A victim navigates to a webpage hosted at
https://site.example/app#access_token=SECRET_TOKEN. - The server responds with headers enabling
Connection-Allowlistand configuring a reporting endpoint:Connection-Allowlist: ("https://api.site.example/*"); report-to=collector; webrtc=blockReporting-Endpoints: collector="https://third-party-collector.example/r"
- The page initiates a connection blocked by the allowlist (for example, constructing an
RTCPeerConnectionwhenwebrtc=blockis specified, or triggering a fetch through a Service Worker to a blocked domain). - A violation report is queued and sent as an HTTP POST request to
https://third-party-collector.example/r. - The JSON payload sent to the collector contains the raw URL containing the
#access_token=SECRET_TOKENfragment insidebody.url.
Suggested Fix
To resolve this issue, the URLs should be stripped of username, password, and fragment identifiers before ConnectionAllowlistViolationReportBody is constructed. This can be achieved by utilizing ContentSecurityPolicy::StripURLForUseInReport:
const SecurityOrigin* origin = execution_context.GetSecurityOrigin();
String safe_document_url = ContentSecurityPolicy::StripURLForUseInReport(
origin, execution_context.Url(), CSPDirectiveName::Unknown);
KURL connection_url(connection);
String safe_connection_url = ContentSecurityPolicy::StripURLForUseInReport(
origin, connection_url, CSPDirectiveName::Unknown);
And then passing safe_document_url and safe_connection_url when instantiating the report and its body.
Evaluated with Chrome root at commit: 94d9235ebe3b7276e5284f0dc5d55577ff949908
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
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 report body is built from raw URL strings without stripping fragments, unlike other similar reports that sanitise URLs first.
Impact
The reporting collector could receive sensitive URL fragments such as OAuth tokens, potentially leading to information disclosure.
What the attacker needed
Victim visits a page with a sensitive URL fragment; server sets Connection-Allowlist and reporting headers; a blocked connection is attempted
The fix
The URLs should be stripped of username, password, and fragment identifiers before the report body is constructed, using ContentSecurityPolicy::StripURLForUseInReport.
How it was found
- A victim navigates to a webpage whose URL contains a fragment with a secret token.
- The server responds with headers enabling Connection-Allowlist and configuring a reporting endpoint.
- The page initiates a connection that is blocked by the allowlist.
- A violation report is queued and sent to the reporting endpoint.
- The JSON payload sent to the collector contains the raw URL with the fragment inside body.url.
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.
When a browser blocks a connection, it can send a report to a server. This report includes the page's address and the blocked address. The bug is that the browser includes the part after the '#' symbol, which can contain secret tokens. So a third-party server could learn those secrets.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.