Insufficient validation of untrusted input in WebUI (CVE-2026-17888)
The Skills service does not validate the URL scheme of images fetched from its remote endpoint, allowing a compromised network process to inject a data: URI that bypasses the out-of-process image decoder boundary in the chrome://skills WebUI. This forces the privileged WebUI renderer to decode the image inline, potentially exposing it to image decoder vulnerabilities.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 46 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: The Skills service does not validate the URL scheme of images fetched from its remote endpoint. A compromised network process can inject a malicious data: URI, which bypasses the out-of-process image decoder boundary (SanitizedImageSource) in the chrome://skills WebUI. This forces the privileged WebUI renderer to decode the image inline, exposing it to potential image decoder vulnerabilities.
Affected files:
components/skills/internal/skills_service_impl.ccchrome/browser/ui/webui/skills/skills_page_handler.ccui/webui/resources/cr_elements/cr_auto_img/cr_auto_img.ts
Estimated timestamp from git blame: Unknown (Google3 checkout)
Description
The Skills service fetches first-party skill data from a gstatic endpoint (https://www.gstatic.com/chrome/skills/first_party_skills_binary) using the network service. This data is parsed as a protobuf which includes an image_url field used to display illustrations in the chrome://skills WebUI.
A potential vulnerability exists because the browser process does not validate the URL scheme when parsing the protobuf response. In components/skills/internal/skills_service_impl.cc, the image_url string is converted directly into a GURL object. Because data: is a valid URI scheme, the URL parses successfully. This unvalidated URL is then passed over Mojo via Translate1PSkills (chrome/browser/ui/webui/skills/skills_page_handler.cc) to the privileged chrome://skills renderer.
Security Boundary Bypass
The chrome://skills WebUI uses the <img is="cr-auto-img"> custom element to display these images. Typically, for external images, this component prefixes the URL with chrome://image (SanitizedImageSource). This is a critical security measure: SanitizedImageSource uses the data_decoder service to decode complex images (like PNG or WebP) safely in a separate, heavily sandboxed utility process, protecting the renderer from image parsing exploits.
However, the implementation of cr-auto-img in ui/webui/resources/cr_elements/cr_auto_img/cr_auto_img.ts explicitly bypasses this wrapper for data: URIs:
if (url.protocol === 'data:' || url.protocol === 'chrome:') {
this.src = url.href;
return;
}
Because the unvalidated data: URI from the Skills service hits this branch, the src attribute is set directly. This causes Blink's internal ImageResource loader to decode the malicious payload inline, directly inside the privileged WebUI renderer process.
Potential Attack Scenario
(Note: These are suggested steps; our tooling has not executed a working proof of concept.)
- An attacker compromises the sandboxed Network Process, allowing them to intercept and forge HTTP responses.
- When the browser fetches discovery skills, the attacker returns a forged protobuf response where a skill's
image_urlis set to a malicious payload (e.g.,data:image/png;base64,...). - The browser parses the protobuf and sends the unvalidated
data:URI to thechrome://skillsWebUI via Mojo. - The WebUI binds the URL to an
<img is="cr-auto-img">element, which bypassesSanitizedImageSourcedue to thedata:protocol check. - Blink decodes the image inline within the WebUI renderer.
- If the payload is designed to exploit a 0-day or unpatched 1-day vulnerability in Blink's native image decoders (e.g., libwebp, libpng), the attacker achieves arbitrary code execution within the privileged WebUI renderer, effectively escaping the Network Process sandbox.
Suggested Fix
- Validation in C++: In
SkillsServiceImpl::Handle1pSkillsorTranslate1PSkills, explicitly validate that theimage_urluses a secure, expected protocol (e.g.,https:) and belongs to a trusted domain before converting it to aGURLor sending it over Mojo. If it fails validation, clear the URL. - Review
cr-auto-imgbypass: Consider whether thedata:URI bypass incr_auto_img.tsis strictly necessary. If untrusteddata:URIs can reach this component, they should ideally be routed through an out-of-process decoder as well, or rejected entirely.
Evaluated with Chrome root at commit: 65b3256311f3ab6fb9870eaa522de7e6dd2663bb
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.
Raised in root component due to access or custom field issues on 1970385
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 browser process does not validate the URL scheme of the image_url field from the protobuf response, and the cr-auto-img component explicitly bypasses the safe image decoder for data: URIs.
Impact
If the payload exploits a 0-day or unpatched 1-day vulnerability in Blink's native image decoders, the attacker could achieve arbitrary code execution within the privileged WebUI renderer, effectively escaping the Network Process sandbox.
What the attacker needed
Compromised network process; ability to forge HTTP responses
The fix
The image_url should be validated to use a secure, expected protocol (e.g., https:) and belong to a trusted domain before being converted to a GURL or sent over Mojo, and the data: URI bypass in cr-auto-img should be reviewed.
How it was found
- An attacker compromises the sandboxed Network Process, allowing them to intercept and forge HTTP responses.
- When the browser fetches discovery skills, the attacker returns a forged protobuf response where a skill's image_url is set to a malicious payload.
- The browser parses the protobuf and sends the unvalidated data: URI to the chrome://skills WebUI via Mojo.
- The WebUI binds the URL to an <img is="cr-auto-img"> element, which bypasses SanitizedImageSource due to the data: protocol check.
- Blink decodes the image inline within the WebUI renderer.
- If the payload exploits a vulnerability in Blink's native image decoders, the attacker achieves arbitrary code execution within the privileged WebUI renderer.
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 browser feature that shows skills images normally sends them to a separate, safe process for decoding. But if an attacker can tamper with the network, they can trick the browser into decoding a malicious image directly in a more privileged part of the browser, which could let them run harmful code.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.