Incorrect security UI in Downloads (CVE-2026-3937)
The download prompt in Chrome displays a spoofed origin when a file is downloaded from a crafted data URI, making the user believe the file comes from a trusted site. An attacker could trick a victim into opening a malicious file by showing a fake origin.
Originally disclosed on Chrome VRP
- Fix shipped in 2 months
Steps to reproduce the problem
- Host the code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Download & Fullscreen on Keypress</title>
</head>
<body>
<center><h2>POC by Chigorin!</h2></center>
<input type="text" id="triggerInput">
<script>
document.getElementById('triggerInput').addEventListener('click', function() {
// request fullscreen
setTimeout(function() {
openWin();
}, 500);
window.open('https://www.google.com', '_blank');
}, { once: false }); // Use { once: true } to ensure it only fires once
// Download helper
function Puf(uri, name) {
const link = document.createElement("a");
link.href = uri;
link.download = name;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
// Kick off your “APK” download
function openWin() {
Puf(
"data:https://google.com/ application/x-msdownload;base64,ZXN0dGVzdGVzdHRlc3Q=",
"google.mp4"
);
}
</script>
</body>
</html>
- Click on the input box and wait for the prompt.
- Notice the prompt origin contains data:https://google.com
==Note: you can change the file type to anything, even malicious like apk and the prompt will contain fake origin only thing matters is the payload you embed which is after a comma==
Problem Description
The download origin is a point of trust for opening any file and in this case that trust is broken by spoofed origin allowing the victim to click and open the malicious file giving access to the attacker.
Summary
Download origin spoofing using hostname in data uri.
Custom Questions
Reporter credit:
Abhishek Kumar
Additional Data
Category: Security
Chrome Channel: Stable
Regression: Yes \
Context
Chrome's download flow shows the user where a file came from before they open it. That origin label is a trust signal: if the browser says a download originated from a site the user recognises, the user is more willing to open the file. This report is about breaking that signal.
The issue was filed against Google Chrome (Chrome VRP) under the weakness "Incorrect security UI", in the Downloads area. It was rated low severity, a regression, and was disclosed on 10 March 2026 with a bounty of 3,000 USD. The reporter credit is Abhishek Kumar. The advisory is tracked as CVE-2026-3937.
The summary is short: download origin spoofing using a hostname inside a data URI.
Setup
The report lists no accounts, roles, tooling or version numbers. The only stated precondition is a Chrome channel: the additional data records Chrome Channel as Stable. The proof of concept is a single HTML page that the tester hosts and then opens in Chrome.
Finding it
The researcher's observation is that the download prompt displays an origin, and that this origin can be made to read data:https://google.com rather than the real source of the file. Because the download origin is treated as a point of trust for opening any file, a spoofed origin undermines that trust and makes it easier to convince a victim to open a malicious file.
The report frames the problem as: the download origin is a point of trust for opening any file, and in this case that trust is broken by a spoofed origin, allowing the victim to click and open the malicious file, giving access to the attacker.
Exploitation
Step 1: host the page
The researcher hosts the following HTML. It is reproduced exactly as given.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Download & Fullscreen on Keypress</title>
</head>
<body>
<center><h2>POC by Chigorin!</h2></center>
<input type="text" id="triggerInput">
<script>
document.getElementById('triggerInput').addEventListener('click', function() {
// request fullscreen
setTimeout(function() {
openWin();
}, 500);
window.open('https://www.google.com', '_blank');
}, { once: false }); // Use { once: true } to ensure it only fires once
// Download helper
function Puf(uri, name) {
const link = document.createElement("a");
link.href = uri;
link.download = name;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
// Kick off your “APK” download
function openWin() {
Puf(
"data:https://google.com/ application/x-msdownload;base64,ZXN0dGVzdGVzdHRlc3Q=",
"google.mp4"
);
}
</script>
</body>
</html>
The page has a text input with the id triggerInput. A click listener on that input opens a new window to https://www.google.com and, after a 500 ms timeout, calls openWin(). The helper Puf(uri, name) creates an anchor element, sets its href to the supplied URI and its download attribute to the supplied name, appends it to the document, clicks it and removes it. openWin() calls Puf with a data: URI and the filename google.mp4.
The important part of the URI is the structure. It begins with data:https://google.com/, followed by a long run of spaces, then application/x-msdownload;base64,ZXN0dGVzdGVzdHRlc3Q=. The media type declared after the padding is application/x-msdownload, and the payload after the comma is base64 data. The filename given to the download is google.mp4.
Step 2: click the input and wait
The tester clicks the input box and waits for the prompt. The click triggers the listener, which opens the new tab and schedules the download.
Step 3: read the prompt origin
The download prompt appears, and its origin contains data:https://google.com. That is the spoof: the prompt presents a Google-looking origin for a file that is not from Google.
The researcher adds a note that the file type can be changed to anything, even something malicious such as an APK, and the prompt will still contain the fake origin. The only thing that matters is the payload embedded after the comma.
Root cause
The report attributes the behaviour to download origin spoofing using a hostname in a data URI. The report attributes the behaviour to download origin spoofing using a hostname in a data URI, without describing the parsing code.
The report does not describe the parsing code or the UI component involved, so the precise mechanism inside Chrome is not stated. What it does say is that this is a regression, which implies the behaviour had been addressed before and returned.
Impact
A victim who is shown a download prompt with a trusted-looking origin is more likely to open the file. The researcher's stated consequence is that the spoofed origin allows the victim to click and open the malicious file, giving access to the attacker. The file type is not fixed: the note says it can be set to anything, including an APK.
The report does not describe any specific payload beyond the base64 test string, and it does not claim code execution on its own. The impact rests on the user trusting the origin label and choosing to open the file. The program rated the issue low severity.
Fix
Variants to test
- Different embedded hostnames. Replace
https://google.com/in the data URI with other well-known hosts and check whether the prompt shows the substituted host. A positive result is a prompt whose origin matches the embedded host rather than the real source. - Different declared media types. Change
application/x-msdownloadto other types, including types associated with installable packages, and check whether the prompt still shows the fake origin. A positive result is the same spoofed origin with a different file type. - Different download filenames. Change
google.mp4to names with other extensions and check the prompt. A positive result is a spoofed origin combined with an extension the user would not expect from that origin. - Other URI schemes that carry inline content. Try schemes other than
data:that can embed a hostname-like prefix, and check whether the prompt reflects it. A positive result is any scheme where the displayed origin is taken from content the page controls. - Padding variations. Vary the amount of whitespace between the fake hostname and the media type, and check whether the prompt still shows the fake origin. A positive result is the spoof surviving with different padding.
Hunting notes
This kind of bug hides in security UI that summarises a resource by parsing its URI: download prompts, permission prompts, address displays and file-open dialogs. The signal during recon is any place where the browser shows an origin or hostname next to a file or action, especially when the underlying URI can be a data: URI or another scheme whose content the page controls.
The researcher showed that the prompt origin contains data:https://google.com for a file the page itself generated, and by noting that the file type can be changed to anything, including an APK. That combination, a trusted-looking origin plus an arbitrary file type, is what makes the case for the user being misled. The report also records that the behaviour is a regression, which is useful context for a program assessing whether a past fix has been undone.
What happened, in plain words
When you download a file in Chrome, the browser shows you a small prompt before the file is opened. That prompt includes a label saying where the file came from, for example the name of the website. People use that label to decide whether the file is safe. If it says a site you know, you are more likely to click open.
This report is about making that label lie. The researcher found a way to build a web page that makes Chrome show a download prompt whose origin reads data:https://google.com, even though the file does not come from Google at all. The page itself creates the file, and the label still looks like Google.
The issue was filed against Google Chrome through the Chrome VRP (Vulnerability Reward Program, Google's scheme for paying people who report security bugs). It sits in the "Incorrect security UI" category, meaning the browser's security-related display is wrong or misleading. The affected area is Downloads. It was rated low severity, marked as a regression (a bug that had been fixed before and has come back), and disclosed on 10 March 2026 with a bounty of 3,000 USD. The reporter credit is Abhishek Kumar, and the advisory is tracked as CVE-2026-3937. CVE stands for Common Vulnerabilities and Exposures: a public catalogue number given to a known security flaw so people can refer to it unambiguously.
The researcher's own one-line summary is: download origin spoofing using a hostname inside a data URI. We will unpack every word of that below.
Setup
The report lists no accounts, no special tools and no version numbers. The only stated precondition is the Chrome channel: the additional data records Chrome Channel as Stable, meaning the ordinary release that most people run, not a beta or developer build. The proof of concept is a single HTML page. HTML is the language web pages are written in. The tester hosts that page somewhere (any web server will do) and opens it in Chrome.
Finding it
The researcher's observation is simple to state. The download prompt displays an origin, and that origin can be made to read data:https://google.com instead of the real source of the file.
Why does that matter? Because the download origin is treated as a point of trust for opening any file. In everyday terms: the label on the prompt is like the return address on an envelope. You do not check the envelope's contents before deciding it is probably fine; you glance at who it is from. If the return address can be forged, the whole point of showing it is lost.
The report frames the problem in its own words: the download origin is a point of trust for opening any file, and in this case that trust is broken by a spoofed origin, allowing the victim to click and open the malicious file, giving access to the attacker.
Exploitation
Step 1: host the page
The researcher hosts the following HTML. It is reproduced exactly as given.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Download & Fullscreen on Keypress</title>
</head>
<body>
<center><h2>POC by Chigorin!</h2></center>
<input type="text" id="triggerInput">
<script>
document.getElementById('triggerInput').addEventListener('click', function() {
// request fullscreen
setTimeout(function() {
openWin();
}, 500);
window.open('https://www.google.com', '_blank');
}, { once: false }); // Use { once: true } to ensure it only fires once
// Download helper
function Puf(uri, name) {
const link = document.createElement("a");
link.href = uri;
link.download = name;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
// Kick off your “APK” download
function openWin() {
Puf(
"data:https://google.com/ application/x-msdownload;base64,ZXN0dGVzdGVzdHRlc3Q=",
"google.mp4"
);
}
</script>
</body>
</html>
Line by line, in plain words:
<!DOCTYPE html>tells the browser this is an HTML page.<html lang="en">opens the page and says the language is English.<head>starts the section that holds information about the page rather than visible content.<meta charset="UTF-8">says which character encoding the page uses, so text displays correctly.<title>Download & Fullscreen on Keypress</title>sets the text shown in the browser tab.<body>starts the visible part of the page.<center><h2>POC by Chigorin!</h2></center>shows a heading. POC means proof of concept: a small demonstration that a bug is real.<input type="text" id="triggerInput">creates a text box. Theidis a name the page's script can use to find this box later.<script>starts a block of JavaScript, the programming language browsers run to make pages interactive.document.getElementById('triggerInput').addEventListener('click', function() {finds the text box and says: when someone clicks it, run the function that follows. A function is a named block of instructions.// request fullscreenis a comment. Comments are notes for humans; the browser ignores them. Note that the code below does not actually request fullscreen, despite the comment.setTimeout(function() {schedules something to happen later rather than immediately.openWin();is the thing scheduled: call the function namedopenWin.}, 500);closes the scheduled function and sets the delay to 500 milliseconds, half a second.window.open('https://www.google.com', '_blank');opens Google in a new tab. This is a decoy: it gives the user something ordinary to look at while the download is prepared.}, { once: false });closes the click handler.once: falsemeans the handler keeps firing on every click, not just the first.// Download helperis another comment.function Puf(uri, name) {defines a helper function that takes two inputs: a URI (a web address or similar identifier) and a filename.const link = document.createElement("a");creates a link element in memory. It is not on the page yet.link.href = uri;sets where the link points.link.download = name;marks the link as a download and gives the suggested filename.document.body.appendChild(link);puts the link on the page.link.click();pretends the user clicked the link, which starts the download.document.body.removeChild(link);takes the link off the page again, so nothing is visible.}closes the helper function.// Kick off your “APK” downloadis a comment. APK is the file format used to install apps on Android phones.function openWin() {defines the function that the timer calls.Puf(starts the call to the helper.- The long string is the URI. It begins with
data:https://google.com/, then a long run of spaces, thenapplication/x-msdownload;base64,ZXN0dGVzdGVzdHRlc3Q=. We will take this apart below. "google.mp4"is the filename the download will be given.);and}close the call and the function.</script>,</body>and</html>close the script, the body and the page.
The important part is the structure of the URI. It starts with data:https://google.com/, followed by a long run of spaces, then application/x-msdownload;base64,ZXN0dGVzdGVzdHRlc3Q=. The media type declared after the padding is application/x-msdownload, and the payload after the comma is base64 data. The filename given to the download is google.mp4.
Three ideas need explaining here.
A data: URI is a way of putting a file's contents directly inside a web address instead of pointing at a server. Think of it as writing the letter on the envelope rather than putting a letter inside. Everything after the comma is the file itself, encoded so it can travel as text.
Base64 is that encoding. It turns raw bytes into ordinary letters and digits. ZXN0dGVzdGVzdHRlc3Q= decodes to a short test string, which is all the researcher needs to prove the point; the content is not the attack.
A media type (also called a MIME type) is the label that says what kind of file something is, such as an image, a video or a program. application/x-msdownload is a type associated with downloadable Windows programs.
Step 2: click the input and wait
The tester clicks the input box and waits for the prompt. The click triggers the listener, which opens the new tab and schedules the download.
Step 3: read the prompt origin
The download prompt appears, and its origin contains data:https://google.com. That is the spoof: the prompt presents a Google-looking origin for a file that is not from Google.
The researcher adds a note that the file type can be changed to anything, even something malicious such as an APK, and the prompt will still contain the fake origin. The only thing that matters is the payload embedded after the comma.
Root cause
The report attributes the behaviour to download origin spoofing using a hostname in a data URI. The report attributes the behaviour to download origin spoofing using a hostname in a data URI, without describing the parsing code.
The report does not describe the parsing code or the UI component involved, so the precise mechanism inside Chrome is not stated. What it does say is that this is a regression, which implies the behaviour had been addressed before and returned.
Impact
A victim who is shown a download prompt with a trusted-looking origin is more likely to open the file. The researcher's stated consequence is that the spoofed origin allows the victim to click and open the malicious file, giving access to the attacker. The file type is not fixed: the note says it can be set to anything, including an APK.
The report does not describe any specific payload beyond the base64 test string, and it does not claim code execution on its own. The impact rests on the user trusting the origin label and choosing to open the file. The program rated the issue low severity.
Fix
Variants to test
These are follow-up experiments in the same spirit, useful for checking how wide the problem is.
- Different embedded hostnames. Replace
https://google.com/in the data URI with other well-known hosts and check whether the prompt shows the substituted host. A positive result is a prompt whose origin matches the embedded host rather than the real source. - Different declared media types. Change
application/x-msdownloadto other types, including types associated with installable packages, and check whether the prompt still shows the fake origin. A positive result is the same spoofed origin with a different file type. - Different download filenames. Change
google.mp4to names with other extensions and check the prompt. A positive result is a spoofed origin combined with an extension the user would not expect from that origin. - Other URI schemes that carry inline content. Try schemes other than
data:that can embed a hostname-like prefix, and check whether the prompt reflects it. A positive result is any scheme where the displayed origin is taken from content the page controls. - Padding variations. Vary the amount of whitespace between the fake hostname and the media type, and check whether the prompt still shows the fake origin. A positive result is the spoof surviving with different padding.
Hunting notes
This kind of bug hides in security UI that summarises a resource by parsing its URI: download prompts, permission prompts, address displays and file-open dialogs. The signal during recon is any place where the browser shows an origin or hostname next to a file or action, especially when the underlying URI can be a data: URI or another scheme whose content the page controls. Recon here means the early survey stage, looking around for promising targets before testing anything.
The researcher showed that the prompt origin contains data:https://google.com for a file the page itself generated, and by noting that the file type can be changed to anything, including an APK. That combination, a trusted-looking origin plus an arbitrary file type, is what makes the case for the user being misled. The report also records that the behaviour is a regression, which is useful context for a program assessing whether a past fix has been undone.
Glossary
- APK: the file format used to install applications on Android phones.
- Base64: an encoding that turns raw bytes into ordinary text characters so they can travel inside a web address or document.
- Bounty: money paid by a company to someone who reports a valid security bug.
- Chrome VRP: Google Chrome's Vulnerability Reward Program, the scheme that receives and pays for Chrome security reports.
- CVE: Common Vulnerabilities and Exposures, a public catalogue number given to a known security flaw.
- Data URI: a web address that carries the file's contents inside the address itself, after a comma, instead of pointing to a server.
- Download origin: the label in the download prompt saying where a file came from.
- Function: a named block of instructions in a program that can be called to run.
- HTML: the language web pages are written in.
- Incorrect security UI: a category of bug where the browser's security-related display shows something wrong or misleading.
- JavaScript: the programming language browsers run to make pages interactive.
- Media type (MIME type): a label saying what kind of file something is, such as an image, a video or a program.
- Origin: in web terms, the combination of scheme, host and port that identifies where content came from; here, the source shown in the download prompt.
- Proof of concept (POC): a small demonstration that a bug is real.
- Recon: the early survey stage of security testing, looking for promising targets before testing.
- Regression: a bug that had been fixed before and has come back.
- Severity: a rating of how serious a bug is, here low.
- Spoofing: making something appear to be something it is not, such as a fake origin label.
- Stable channel: the ordinary Chrome release most people run, as opposed to beta or developer builds.
- UI: user interface, the parts of a program a person sees and interacts with.