Insufficient validation of untrusted input in New Tab Page (CVE-2026-14038)
A path validation flaw in the New Tab Page's untrusted source allows a compromised renderer to read any file ending in 'background.jpg' within the Chrome profile directory, including extension assets. This bypasses the random UUIDs used for Web Accessible Resources, enabling extension fingerprinting and content disclosure.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 months
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A compromised chrome-untrusted://new-tab-page renderer can potentially read any file within the Chrome profile directory that ends with background.jpg. This is due to a permissive path validation check in UntrustedSource that fails to prevent directory traversal into subdirectories.
Affected files:
chrome/browser/ui/webui/new_tab_page/untrusted_source.cc
Estimated timestamp from git blame: 2026-01-07
Summary
The UntrustedSource class, which serves data for the chrome-untrusted://new-tab-page origin, contains a logic flaw in its path validation. It allows a compromised renderer to read any file inside the user's profile directory whose name ends with background.jpg. By requesting paths containing subdirectories, an attacker can access extension assets (e.g., Extensions/<id>/<version>/background.jpg) to fingerprint installed extensions or read their contents, bypassing the random UUIDs (Web Accessible Resources) normally used to prevent fingerprinting.
Vulnerability Details
In chrome/browser/ui/webui/new_tab_page/untrusted_source.cc, the StartDataRequest method handles incoming requests for chrome-untrusted://new-tab-page. It extracts the path from the URL and validates it:
if (base::EndsWith(path, "background.jpg")) {
base::ThreadPool::PostTaskAndReplyWithResult(
FROM_HERE, {base::TaskPriority::USER_VISIBLE, base::MayBlock()},
base::BindOnce(&ReadBackgroundImageData,
profile_->GetPath().AppendASCII(path)),
base::BindOnce(&ServeBackgroundImageData, std::move(callback)));
return;
}
The ShouldServiceRequest gate in the same file uses an even weaker check:
return ... || path.contains("background.jpg");
The path variable is derived directly from the URL. While GURL canonicalization prevents parent-directory traversal (../) escaping the profile directory entirely, the EndsWith check does not restrict the use of forward slashes (/) to access subdirectories relative to the profile path.
When profile_->GetPath().AppendASCII(path) is called, it directly appends the attacker-controlled path (e.g., Extensions/<extension-id>/<version>/background.jpg) to the absolute profile directory path. The file is then read from disk and served to the renderer.
Potential Steps to Trigger
Note: These are suggested steps; our tooling has not executed a live proof-of-concept.
- An attacker compromises the
chrome-untrusted://new-tab-pagerenderer (e.g., via XSS or a sandbox escape from an iframe). Chrome's threat model assumes untrusted WebUIs can be compromised. - The compromised renderer executes a
fetchrequest:fetch('chrome-untrusted://new-tab-page/Extensions/<extension-id>/<version>/background.jpg'). - The request is routed to
UntrustedSourcein the browser process. ShouldServiceRequestallows the request because the path containsbackground.jpg.StartDataRequestprocesses the request because the path ends withbackground.jpg.- The browser reads the requested file from the extension's installation directory inside the profile and returns its contents in the HTTP response.
- The attacker reads the response. If data is returned, it confirms the extension is installed (fingerprinting) and leaks the file's contents.
Proposed Fix
The path validation should be tightened to ensure the requested path does not contain directory separators.
For example, explicitly reject paths containing / or \:
if (base::EndsWith(path, "background.jpg") && path.find('/') == std::string::npos && path.find('\\') == std::string::npos) {
...
}
Alternatively, validate the path against a strict regular expression that matches the expected format of background image filenames (e.g., a 32-character hex token followed by _background.jpg).
Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0
Results from so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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
The path validation only checks that the path ends with 'background.jpg' and does not reject directory separators, allowing traversal into subdirectories of the profile directory.
Impact
A compromised renderer could read any file ending with 'background.jpg' in the profile directory, including extension assets, enabling fingerprinting and content disclosure; however, the threat model assumes the renderer is already compromised.
What the attacker needed
Compromised chrome-untrusted://new-tab-page renderer
The fix
The path validation should be tightened to reject paths containing directory separators or to match a strict expected filename format.
How it was found
- Compromise the chrome-untrusted://new-tab-page renderer.
- Execute a fetch request to a path containing subdirectories and ending with background.jpg.
- The request reaches UntrustedSource in the browser process.
- ShouldServiceRequest allows the request because the path contains background.jpg.
- StartDataRequest processes the request because the path ends with background.jpg.
- The browser reads the file from the extension directory and returns its contents.
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.
The New Tab Page in Chrome loads some content from a special, less-trusted origin. A security check meant to ensure only background images are served was too loose: it only checked that the file name ended with 'background.jpg' but didn't stop someone from using slashes to reach other folders. So if an attacker can take over that page, they could read files like extension background images, which normally have secret random names to prevent tracking.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.