Skip to content
RCE Advisory Advanced CVE-2026-95341

Improper input validation in Desktop (CVE-2026-95341)

The New Tab Page handler did not validate the scheme of promo image URLs, and the frontend deliberately skipped the chrome://image wrapper for data: URIs. A compromised network process could therefore feed a data: URI to the privileged NTP renderer, which would decode attacker-controlled image data directly and could expose image parser vulnerabilities.

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. 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: A compromised network process can bypass the SanitizedImageSource security boundary by injecting data: URIs into the New Tab Page (NTP) promo JSON. The NTP handler fails to validate the image URL scheme, and the frontend explicitly bypasses the chrome://image wrapper for data: URIs. This forces the privileged NTP WebUI renderer to directly decode attacker-controlled image data, exposing it to potential image parser vulnerabilities.

Affected files:

  • chrome/browser/ui/webui/new_tab_page/new_tab_page_handler.cc
  • ui/webui/resources/cr_elements/cr_auto_img/cr_auto_img.ts
  • chrome/browser/resources/new_tab_page/middle_slot_promo.ts

Estimated timestamp from git blame: Unknown (Google3 checkout)

Background

To protect privileged WebUI renderers (like the New Tab Page at chrome://new-tab-page) from vulnerabilities in image decoding libraries (e.g., libpng, libjpeg-turbo), Chrome routes untrusted external images through SanitizedImageSource (chrome://image). This mechanism downloads the image and safely decodes it in an isolated data_decoder utility process before sending the safe, re-encoded bitmap back to the WebUI renderer.

Vulnerability Details

There is a potential architectural bypass of this security boundary when loading promo images on the New Tab Page.

  1. Unvalidated Mojo IPC: When the browser process fetches promo data (via PromoService), the parsed JSON is converted into a Mojo message in NewTabPageHandler::MakePromo (chrome/browser/ui/webui/new_tab_page/new_tab_page_handler.cc). The code extracts the image.image_url string and converts it directly to a GURL without validating the URL scheme:

    C++
    // new_tab_page_handler.cc:421
    mojom_image->image_url = GURL(*image_url); // No scheme validation
    
  2. Frontend Wrapper Bypass: In the NTP frontend, the imageUrl is assigned to the autoSrc property of a CrAutoImgElement (ui/webui/resources/cr_elements/cr_auto_img/cr_auto_img.ts). This custom element is designed to wrap external URLs in the chrome://image? prefix. However, it contains an explicit bypass for data: URIs:

    TypeScript
    // cr_auto_img.ts:93
    if (url.protocol === 'data:' || url.protocol === 'chrome:') {
      this.src = url.href;
      return; // Bypasses the chrome://image wrapper
    }
    

Because the WebUI Content Security Policy (CSP) explicitly allows data: URIs in the img-src directive by default, the browser does not block the inline load.

Suggested Attack Scenario

Note: These are suggested steps to trigger the vulnerability; our tooling has not run a working proof-of-concept.

  1. An attacker compromises the sandboxed network process.
  2. When the browser process fetches NTP promo data (e.g., from /async/newtab_promos), the compromised network process intercepts the request and provides a spoofed JSON response via the Mojo data pipe.
  3. The forged JSON contains a promo image part where the image_url is a malicious data: URI containing an exploit payload for an image parser (e.g., data:image/png;base64,...).
  4. The browser process parses the JSON and passes the unvalidated data: URI to the privileged NTP WebUI renderer via Mojo.
  5. The NTP renderer assigns the URL to a CrAutoImgElement. Due to the protocol check, the data: URI bypasses SanitizedImageSource and is assigned directly to the img element's src attribute.
  6. Blink's internal image decoders attempt to parse the malicious image data directly within the privileged WebUI renderer process.

Impact

If the attacker's data: URI payload successfully exploits a memory corruption vulnerability in an image decoder, they achieve Remote Code Execution (RCE) within the privileged NTP WebUI renderer. This renderer has access to sensitive Mojo interfaces that are not available to standard web content, which could facilitate further escalation or sandbox escapes.

Suggested Fix

Enforce strict scheme validation in NewTabPageHandler::MakePromo (and ideally in PromoService as well) to ensure that only https:// URLs are accepted for promo images. Any other scheme, especially data:, should be rejected and dropped before constructing the Mojo message.

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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 promo image URL was converted to a GURL without scheme validation, and the frontend's CrAutoImgElement explicitly bypassed the chrome://image wrapper for data: URIs.

Impact

If the data: URI payload successfully exploits a memory corruption vulnerability in an image decoder, the attacker could achieve RCE within the privileged NTP WebUI renderer, which has access to sensitive Mojo interfaces; the report notes no working proof-of-concept was run.

What the attacker needed

Compromised network process; ability to intercept promo data request

The fix

Strict scheme validation should be enforced in NewTabPageHandler::MakePromo (and ideally PromoService) so that only https:// URLs are accepted for promo images and other schemes, especially data:, are rejected.

How it was found

  1. Compromise the sandboxed network process.
  2. Intercept the NTP promo data request and return spoofed JSON containing a data: URI as the promo image URL.
  3. The browser process parses the JSON and passes the unvalidated data: URI to the NTP renderer via Mojo.
  4. The NTP renderer assigns the URL to a CrAutoImgElement, which bypasses the chrome://image wrapper for data: URIs.
  5. Blink's image decoders parse the malicious image data inside the privileged WebUI renderer process.

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.

Chrome normally sends untrusted images through a separate, safer process before showing them on privileged pages like the New Tab Page. This report says that for promo images, a data: URI (an image embedded directly in the URL) skips that safety step and is decoded inside the privileged page itself. If the image decoder has a bug, an attacker who already controls the network process could exploit it there.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.