Skip to content
XSS Advisory Advanced CVE-2026-5899

Incorrect security UI in History Navigation (CVE-2026-5899)

Data URIs reopened from Chrome's history sidebar lose their Content Security Policy association, so scripts inside them run even though the policy blocked them when the page was first opened. The reporter claims this gives XSS on the original origin and can be escalated to script execution in the privileged chrome://history/ context.

Islam Rzayev Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

Steps to reproduce the problem

Data URIs containing JavaScript payloads bypass Content Security Policy when reopened from Chrome's history sidebar, leading to XSS on the original origin. Additionally, this can be escalated to execute JavaScript in the privileged chrome://history/ context.

Problem Description

Affected

Chrome/Chromium, Edge, and Chromium-based browsers.

Vulnerability Details

Bug #1: CSP Bypass leading to XSS

Any page with a strict CSP that allows data: in href or img-src is vulnerable to XSS:

  1. User right-clicks data URI link/image → Open in new tab
  2. CSP blocks script execution (expected)
  3. User closes the data URI tab
  4. User opens history sidebar (three dots → History)
  5. User clicks data URI entry from sidebar
  6. Script executes in original origin context, CSP bypassed, XSS achieved

Bug #2: Privileged Context XSS

  1. Open chrome://history/ (Ctrl+H)
  2. Right-click data URI entry → Open in new tab
  3. CSP blocks (expected), close tab
  4. Open history sidebar, click same data URI
  5. Script executes under chrome://history/ context

Payloads

<a href="data:text/html,<script>alert('XSS')</script>" target="_blank">Click</a>

Root Cause

Data URIs reopened from history sidebar lose their CSP association, allowing script execution without policy enforcement while retaining the original origin context.

Impact

  • XSS on any origin allowing data URIs in href/src
  • Complete CSP bypass regardless of policy strictness
  • Privileged code execution in chrome:// context
  • Potential access to sensitive browser APIs

Note

Even though data URIs are somewhat more restricted from accessing origin context, this bypass demonstrates a serious gap in CSP enforcement through the history sidebar. The ability to execute arbitrary JavaScript in both the original origin and privileged chrome:// contexts undermines the security guarantees that CSP is designed to provide.

Severity

High/Critical

Summary

Unviersal CSP Bypass/XSS & Privileged chrome:// page XSS via Browser History Sidebar navigation

Custom Questions

Reporter credit:

Islam Rzayev

Additional Data

Category: Security
Chrome Channel: Stable
Regression: N/A \

The original report as published on the Chromium issue tracker, by Islam Rzayev. 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 history sidebar restores a data URI navigation without carrying over the CSP that applied to the original page, so the policy is no longer enforced.

Impact

The reporter claims a complete CSP bypass leading to XSS on any origin that allows data URIs, and potentially privileged code execution in the chrome:// context with access to sensitive browser APIs, though the note concedes data URIs are somewhat restricted from accessing origin context.

What the attacker needed

Chrome, Edge or another Chromium browser; Page CSP allows data: in href or img-src; Victim opens and then reopens the data URI

How it was found

  1. Open a data URI link or image in a new tab from a page whose CSP allows data: in href or img-src.
  2. Observe that the CSP blocks script execution, then close the data URI tab.
  3. Open the history sidebar and click the data URI entry.
  4. Observe that the script now executes in the original origin with the CSP bypassed.
  5. For the second bug, open the chrome://history/ page, open a data URI entry in a new tab, close it, then reopen it from the history sidebar.
  6. Observe that the script executes in the chrome://history/ context.

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 Content Security Policy is a rule a website sends to the browser saying which scripts may run, and it is meant to stop injected code. Here the browser forgot those rules when the same data URI page was reopened from the history list, so the blocked script ran. The reporter also says the script could run inside a built-in browser page, which normally has extra privileges.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.