Inappropriate implementation in ReportingAndNEL (CVE-2026-17817)
The Network Error Logging service serialised Signed Exchange report URLs without stripping fragments or credentials, so a URL fragment containing a secret could be sent to the distributor's NEL collector. An attacker who can get a victim to load an SXG URL with a sensitive fragment could cause that fragment to be disclosed to a third-party endpoint.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 months
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: The Network Error Logging (NEL) service does not sanitize URL fragments or credentials from Signed Exchange (SXG) URLs before generating reporting bodies. This can potentially allow sensitive client-side fragments (such as OAuth access tokens, Scroll-to-Text queries, or SPA router state) or credentials to be exfiltrated to the distributor's configured NEL endpoint. This behavior violates the Fetch and NEL specifications which require response URLs serialized for reporting to exclude fragments and credentials.
Affected files:
net/network_error_logging/network_error_logging_service.cccontent/browser/web_package/signed_exchange_reporter.cc
Estimated timestamp from git blame: 2019-02-21
Summary
The Network Error Logging (NEL) service fails to sanitize the URL fields written into the Signed Exchange (SXG) report body. Specifically, sxg_body.Set(kOuterUrlKey, details.outer_url.spec()) (and the corresponding inner_url/cert_url fields) are serialized using .spec() directly, preserving URL fragments and credentials. This potentially allows sensitive client-side fragments (such as OAuth access tokens, Scroll-to-Text-Fragments, or internal routing states) to be exfiltrated to the distributor's configured NEL collector.
Root Cause Analysis
In net/network_error_logging/network_error_logging_service.cc, CreateSignedExchangeReportBody() serializes URL details for SXG reports:
base::DictValue sxg_body;
sxg_body.Set(kOuterUrlKey, details.outer_url.spec());
if (details.inner_url.is_valid())
sxg_body.Set(kInnerUrlKey, details.inner_url.spec());
base::ListValue cert_url_list;
if (details.cert_url.is_valid())
cert_url_list.Append(details.cert_url.spec());
sxg_body.Set(kCertUrlKey, std::move(cert_url_list));
body.Set(kSignedExchangeBodyKey, std::move(sxg_body));
While ReportingServiceImpl::QueueReport() sanitizes the top-level URL via GetAsReferrer(), it treats the report body as opaque data and forwards it as-is. Thus, the top-level url field of the NEL report is correctly sanitized, but body.sxg.outer_url retains the original fragment and credentials.
Potential Trigger Path
- A page navigates or prefetches a Signed Exchange URL containing a fragment (e.g.,
https://distributor.example/article.sxg#access_token=SECRET). Alternatively, the fragment can be inherited cross-origin via a redirect (e.g.,https://victim.example/page#access_token=SECRET-> 302 ->https://distributor.example/article.sxg). CreateResourceRequestForNavigation()setsnew_request->urldirectly fromcommon_params->url, keeping the full fragment.SignedExchangeRequestHandler::MaybeCreateLoaderconstructs the reporter using the unsanitized URL.SignedExchangeReporterstoresouter_urlwithout sanitization.- On SXG load (success or failure),
ReportLoadResultAndFinishforwards the report to the network service, whereNetworkContext::QueueSignedExchangeReportcopies it straight through. CreateSignedExchangeReportBody()writes the unsanitizedouter_url.spec()into the report body.- The report is uploaded to the distributor's configured NEL endpoint containing the fragment.
Note: Since our testing environment does not support dynamic execution, these are potential steps and the vulnerability has been identified via static code analysis.
Impact
The distributor's NEL collector receives URL fragments and credentials, which violates the Fetch and NEL specifications (where response URLs serialized for reporting must have the exclude fragment flag set).
This can potentially lead to information disclosure including:
- Cross-origin redirect fragment inheritance: Extracting
#access_token=XYZfrom a cross-origin landing page. - Scroll-to-Text-Fragment: Revealing exact search queries or highlighted page sections to the collector.
- Single Page App (SPA) / Router State: Exfiltrating routing details or tokens stored in URL hash fragments to a third-party reporting service.
Suggested Fix
Use network::SerializeResponseUrlForReporting() on outer_url, inner_url, and cert_url in CreateSignedExchangeReportBody() prior to calling .spec(). This aligns behavior with how other report URLs are serialized in Chrome and ensures compliance with the Fetch and NEL specifications.
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
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 builder serialised URLs with a method that keeps fragments and credentials, while only the top-level report URL was sanitised.
Impact
The distributor's NEL collector could receive URL fragments and credentials, potentially disclosing OAuth tokens, search queries or router state; the report notes the issue was found by static analysis and not dynamically confirmed.
What the attacker needed
Victim loads an SXG URL with a sensitive fragment; distributor has a NEL endpoint configured; attacker can influence the URL fragment
The fix
The report suggests serialising the outer, inner and certificate URLs with the response-URL-for-reporting helper before calling the spec method.
How it was found
- A page navigates or prefetches a Signed Exchange URL that contains a fragment, or inherits a fragment through a cross-origin redirect.
- The navigation request keeps the full fragment in its URL.
- The Signed Exchange request handler creates a reporter using the unsanitised URL.
- The reporter stores the outer URL without sanitisation.
- On load success or failure, the report is forwarded to the network service and copied through.
- The report body is built with the unsanitised URL and uploaded to the distributor's NEL endpoint.
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 fails to load a web resource, it can send a small error report to a server chosen by the site owner. This report includes the address of the resource. The bug is that the browser included the part of the address after the # symbol, which can sometimes hold secret tokens, and also any username and password in the address. A malicious page could therefore cause a secret in the address to be sent to a third-party reporting server.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.