Insufficient policy enforcement in PDF (CVE-2026-3939)
The PDF viewer in Chrome allowed a bookmark link to navigate to a URL without preserving the original initiator, causing SameSite=Strict cookies to be sent and bypassing Fetch metadata protections. An attacker could exploit this to perform cross-site requests that should have been blocked.
- Fix shipped in 4.3 years
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Steps to reproduce the problem:
- On the target set a cookie using document.cookie = "A=A;Secure;SameSite=Strict";
- Create a PDF with a URL bookmark or use https://github.com/chromium/chromium/blob/main/chrome/test/data/pdf/test-bookmarks-with-zoom.pdf
- Click the bookmark on the PDF and notice the cookies gets sent.
With the following headers: sec-fetch-site "none" sec-fetch-mode "navigate" sec-fetch-dest "document"
I think because extension APIs are used such as chrome.tabs.create, Restrictions that are normally put on navigation's get bypassed excluding the schemes since that gets checked well not sure if it gets checked for submitForm but thats POST only.
What is the expected behavior? For it to be like chrome.tabs.update and keep the initiator.
What went wrong? PDF viewer bypassing SameSite Strict cookies and Fetch metadata defenses.
Did this work before? N/A
Chrome version: 96.0.4664.45 Channel: stable OS Version: 10.0
Context
Chrome ships a built-in PDF viewer, and PDFs can carry bookmarks (outline entries) that point at a URL rather than at a location inside the document. Clicking such a bookmark makes the browser navigate to that URL. The report is about how that navigation is performed: the PDF viewer is an extension, and the navigation is started through extension APIs, which changes the security context the request is made in.
The weakness is classified as insufficient policy enforcement, in the PDF component. The researcher's summary of the problem is that the PDF viewer bypasses SameSite=Strict cookies and Fetch metadata defences.
Setup
The report gives the following environment:
- User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36 - Chrome version: 96.0.4664.45, stable channel
- OS: Windows 10
No accounts, roles or special tooling are needed. The two preconditions are a target site that sets a cookie, and a PDF containing a URL bookmark. For the PDF, the researcher points at an existing test file in the Chromium repository:
https://github.com/chromium/chromium/blob/main/chrome/test/data/pdf/test-bookmarks-with-zoom.pdf
Finding it
The researcher set a cookie that is both Secure and SameSite=Strict, then clicked a URL bookmark inside a PDF opened in Chrome. The cookie was sent with the resulting request. That is unexpected: a SameSite=Strict cookie should not accompany a cross-site navigation, and the request also carried Fetch metadata headers that describe it as a top-level, user-initiated navigation rather than something initiated by the PDF viewer.
The headers observed on the request were:
sec-fetch-site: none
sec-fetch-mode: navigate
sec-fetch-dest: document
sec-fetch-site: none means the browser considers the request to have no initiator site at all, sec-fetch-mode: navigate marks it as a navigation, and sec-fetch-dest: document marks the destination as a document. Servers that rely on Fetch metadata to reject cross-site navigations would see a request that looks like a fresh, direct navigation and let it through.
Exploitation
Step 1: set the cookie on the target
On the target site, the cookie is created from JavaScript:
document.cookie = "A=A;Secure;SameSite=Strict";
This creates a cookie named A with value A, marked Secure (sent only over HTTPS) and SameSite=Strict (not sent on cross-site requests). The name and value are placeholders; the point is the two attributes.
Step 2: obtain a PDF with a URL bookmark
Either create a PDF whose bookmark points at a URL, or use the Chromium test file referenced above. The bookmark is the trigger: it is a link inside the PDF that the viewer turns into a navigation.
Step 3: click the bookmark and observe the request
With the PDF open in Chrome, clicking the bookmark navigates to the target URL, and the SameSite=Strict cookie is sent along with it. The request carries the three Fetch metadata headers shown above, presenting it as a navigation with no initiator site.
Root cause
The researcher's explanation is that the PDF viewer performs the navigation through extension APIs such as chrome.tabs.create. Because the navigation originates from an extension API call rather than from a normal page-initiated navigation, the restrictions that are normally applied to navigations are bypassed. The researcher notes that scheme checks still apply, and is unsure whether they apply to submitForm, though that path is POST only.
The expected behaviour, in the researcher's words, is for it to behave like chrome.tabs.update and keep the initiator. Keeping the initiator would let the browser attribute the navigation to the PDF viewer's context, so that SameSite cookie rules and Fetch metadata reflect where the navigation really came from instead of looking like a direct, initiator-less navigation.
Impact
A page that relies on SameSite=Strict cookies, or on Fetch metadata (Sec-Fetch-Site, Sec-Fetch-Mode, Sec-Fetch-Dest) to reject navigations it did not initiate, can be reached from a PDF bookmark with the cookie attached and with headers that look benign. The report does not describe a concrete attack chain beyond this, and the severity assigned is low.
Fix
The report does not state what change was made. The behaviour the researcher asked for is that the PDF viewer's navigation keeps its initiator, as chrome.tabs.update does, so that the existing SameSite and Fetch metadata checks apply to it.
Variants to test
- Other extension-driven navigations in Chrome, such as links opened from built-in viewers or internal pages, checked against a
SameSite=Strictcookie and the threeSec-Fetch-*headers. A positive result is the cookie being sent andsec-fetch-site: noneappearing on a navigation the user did not start from the target's own origin. - PDF bookmarks with different URL schemes and targets, to see which paths still enforce scheme checks and which do not.
- Form submission paths from the PDF viewer, since the researcher was unsure whether scheme checks apply to
submitForm; note that this path is POST only. - Server-side defences that trust Fetch metadata alone, tested by driving a navigation from a PDF bookmark and seeing whether the request is treated as a direct navigation.
Hunting notes
This kind of bug hides where a privileged component (an extension, a viewer, an internal page) starts a navigation on the user's behalf through an API that does not preserve the initiator. During recon, the signal is a request that arrives with sec-fetch-site: none even though the user reached it by clicking something inside another document or application. The researcher set a SameSite=Strict cookie on a target and showed it was sent on the bookmark click, together with the Fetch metadata headers. The report is short and the reproduction is three steps.
What happened, in plain words
Chrome can open PDF files without any extra software, because it has a PDF viewer built in. A PDF can contain bookmarks: little links in the document's outline that jump to a page inside the file, or, and this is the interesting part, to a web address somewhere on the internet. When you click such a bookmark, Chrome goes to that address.
The report is about how Chrome makes that jump. The PDF viewer is not an ordinary web page; it is a browser extension, a small program that is part of Chrome and has special powers. To open the address, the viewer asks one of those special powers (an extension API) to do it. Because the request is started that way, it does not look to the receiving website like a jump that came from somewhere else. It looks like a navigation with no originating site.
That matters because websites have two common defences against being tricked into doing things on a visitor's behalf:
- Cookies marked
SameSite=Strict, which the browser should only send when the visitor is already on the site, not when they arrive from another site. - Fetch metadata headers, small labels the browser attaches to each request saying where it came from and what kind of request it is. Servers can read these labels and refuse requests that look suspicious.
The researcher found that a click on a PDF bookmark sends the SameSite=Strict cookie anyway, and the request carries labels that make it look like a harmless direct visit. The weakness is filed as insufficient policy enforcement in the PDF component, and the severity is low.
The setup
The report gives the exact environment it was tested in:
- User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36 - Chrome version: 96.0.4664.45, stable channel
- OS: Windows 10
A user agent is the line of text a browser sends to every website to introduce itself; it names the browser, its version and the operating system. The stable channel is the ordinary Chrome that everyone downloads, as opposed to early test builds.
You do not need an account, a special role or any tooling to try this. You need two things: a website that sets a cookie, and a PDF that contains a bookmark pointing at a web address. For the PDF, the researcher points at a test file that already exists in the Chromium project (Chromium is the open-source code Chrome is built from):
https://github.com/chromium/chromium/blob/main/chrome/test/data/pdf/test-bookmarks-with-zoom.pdf
This is simply a sample PDF kept in the project's test data folder, whose bookmarks point at web addresses. Using it saves you from having to build such a PDF yourself.
Finding it
The researcher did two things. First, they set a cookie on a target website that is both Secure and SameSite=Strict. Second, they opened a PDF in Chrome and clicked a bookmark that points at that website. The cookie was sent along with the request.
That is not supposed to happen. A SameSite=Strict cookie is meant to stay at home: the browser should only attach it when the request comes from the same site. Arriving at a site by clicking a link in a PDF is arriving from somewhere else, so the cookie should have been left behind. On top of that, the request carried Fetch metadata headers describing it as a top-level navigation started by the user, not as something the PDF viewer started.
The headers seen on the request were:
sec-fetch-site: none
sec-fetch-mode: navigate
sec-fetch-dest: document
Line by line:
sec-fetch-site: nonesays the browser believes the request has no originating site at all. This is the label a server sees when the browser considers the request to have no originating site at all.sec-fetch-mode: navigatesays the request is a navigation, meaning the browser is loading a new page for the user to look at, rather than quietly fetching data in the background.sec-fetch-dest: documentsays the thing being fetched is a document, a full page, which is what you would expect from a navigation.
Put together, these three labels tell a server: a person deliberately navigated to a full page, and no other website sent them. A server that uses these labels to block cross-site navigations would look at this request and let it through, because nothing about it looks cross-site.
Exploitation
Step 1: set the cookie on the target
On the target website, the cookie is created with one line of JavaScript, the programming language that runs inside web pages:
document.cookie = "A=A;Secure;SameSite=Strict";
What each part means:
document.cookieis the browser's built-in way for a page to read and write cookies. Assigning a value to it creates or updates a cookie.A=Ais the name and the value of the cookie: it is calledAand its value isA. These are placeholders; any name and value would do. The point of the test is not the content but the two settings that follow.Securemeans the browser will only send this cookie over an encrypted HTTPS connection, never over plain HTTP. It means the browser will only send this cookie over an encrypted HTTPS connection, never over plain HTTP.SameSite=Strictis the important one. It tells the browser: only send this cookie when the request starts from this same site. If the visitor arrives from another site, for example by clicking a link elsewhere, the cookie must not be attached.
A cookie is a small piece of data a website asks the browser to store and to send back on later requests. Websites use it to recognise a returning visitor, which is how you stay logged in between page loads. Because cookies can carry a login, browsers put rules on when they may be sent, and SameSite is one of those rules.
Step 2: obtain a PDF with a URL bookmark
You can either make a PDF whose bookmark points at a web address, or use the Chromium test file linked above. The bookmark is the trigger for the whole issue: it is a link inside the PDF, and the viewer turns a click on it into a navigation, a jump to a new page.
Step 3: click the bookmark and observe the request
With the PDF open in Chrome, click the bookmark. Chrome navigates to the target address, and the SameSite=Strict cookie is sent with the request. The request also carries the three Fetch metadata headers shown earlier, which present it as a navigation with no originating site.
To see this yourself, you would open your browser's developer tools, switch to the network panel, which lists every request the browser makes, and look at the request that results from the click. The cookie appears among the request's cookies, and the three Sec-Fetch-* headers appear among its headers.
Why it happens
The researcher's explanation is that the PDF viewer performs the navigation through extension APIs, specifically something like chrome.tabs.create. An API, short for application programming interface, is a set of commands one piece of software offers to another. Think of it as a service counter: instead of doing a job yourself, you fill in a form and hand it over, and the counter does the work for you. chrome.tabs.create is the counter Chrome offers to extensions for opening a new tab at a given address.
Normally, when a web page sends you somewhere, the browser knows exactly which page did it and records that as the initiator, the origin of the request. That record is what the SameSite cookie rules and the Fetch metadata headers are built on. When the navigation instead comes from an extension API call, it is not a page-initiated navigation, so the restrictions normally applied to navigations get bypassed. The browser treats the request as if it had no initiator, which is why the cookie is sent and why the headers say sec-fetch-site: none.
The researcher adds that scheme checks still apply. A scheme is the first part of a web address, such as https or file, and it decides how the address is handled; Chrome still checks it. The researcher is not sure whether those checks apply to submitForm, another extension API that submits a form, but notes that path is POST only. POST is one of the methods a browser uses to send data to a server, typically when you submit a form, as opposed to GET, which is used for simply fetching a page.
The expected behaviour, in the researcher's words, is for it to work like chrome.tabs.update and keep the initiator. chrome.tabs.update is another extension API, used to change an existing tab, for example to point it at a new address. The researcher's point is that this API keeps the record of who started the navigation. If the PDF viewer's navigation kept its initiator in the same way, the browser could attribute the jump to the PDF viewer's context, and the SameSite cookie rules and the Fetch metadata headers would then reflect where the navigation really came from, instead of looking like a direct visit with no origin.
What it means in practice
A website that relies on SameSite=Strict cookies, or on the Fetch metadata headers (Sec-Fetch-Site, Sec-Fetch-Mode, Sec-Fetch-Dest) to reject navigations it did not start, can be reached from a PDF bookmark with the cookie attached and with headers that look harmless. In other words, a defence the site owner believes is protecting them does not hold when the visitor arrives through this path.
The report does not describe a concrete attack chain beyond this observation, and the severity assigned is low.
The fix
The report does not state what change was made. The behaviour the researcher asked for is that the PDF viewer's navigation keeps its initiator, the way chrome.tabs.update does, so that the existing SameSite and Fetch metadata checks apply to it.
Other places to look
- Other navigations started by extensions in Chrome, such as links opened from built-in viewers or internal pages, checked against a
SameSite=Strictcookie and the threeSec-Fetch-*headers. A positive result is the cookie being sent andsec-fetch-site: noneappearing on a navigation the user did not start from the target's own origin. - PDF bookmarks with different URL schemes and targets, to see which paths still enforce scheme checks and which do not.
- Form submission paths from the PDF viewer, since the researcher was unsure whether scheme checks apply to
submitForm; note that this path is POST only. - Server-side defences that trust Fetch metadata alone, tested by driving a navigation from a PDF bookmark and seeing whether the request is treated as a direct navigation.
How to hunt for this kind of bug
This kind of bug hides where a privileged component, such as an extension, a viewer or an internal page, starts a navigation on the user's behalf through an API that does not preserve the initiator. During recon, the signal is a request that arrives with sec-fetch-site: none even though the user reached it by clicking something inside another document or application.
The researcher set a SameSite=Strict cookie on a target and showed it was sent on the bookmark click, together with the Fetch metadata headers. The report is short and the reproduction is three steps.
Glossary
- API: a set of commands one piece of software offers to another, so that one can ask the other to do something without knowing how it works inside.
- Bookmark (in a PDF): an entry in a PDF's outline that, when clicked, jumps to a place in the document or to a web address.
- Chrome extension: a small program that runs inside Chrome and has special powers beyond those of an ordinary web page.
- Cookie: a small piece of data a website asks the browser to store and send back on later requests, often used to recognise a returning visitor.
- CVSS: a standard scoring system for rating the severity of a security flaw.
- Developer tools: the panel built into a browser that shows requests, headers and other technical details of a page.
- Extension API: a command offered to Chrome extensions, such as opening a tab or updating one.
- Fetch metadata headers: labels the browser attaches to a request (
Sec-Fetch-Site,Sec-Fetch-Mode,Sec-Fetch-Dest) describing where the request came from and what kind of request it is, which servers can use to accept or reject it. - GET: the request method used for simply fetching a page or resource.
- HTTPS: the encrypted version of the protocol used to load web pages, so that others on the network cannot read the traffic.
- Initiator: the origin, meaning the site or component, that started a request; the browser uses it to decide which rules apply.
- Insufficient policy enforcement: a weakness where a security rule exists but is not applied in some path, so the protection can be bypassed.
- JavaScript: the programming language that runs inside web pages.
- Navigation: the browser loading a new page for the user to look at, as opposed to quietly fetching data in the background.
- Origin: the combination of scheme, host and port that identifies where a request or page comes from.
- PDF viewer: the part of Chrome that displays PDF files.
- POST: the request method used to send data to a server, typically when submitting a form.
- Recon: the exploratory phase of security testing, where you look for signals and weak spots before trying to exploit anything.
- SameSite: a cookie setting that controls whether the cookie is sent when the request comes from another site;
Strictmeans only from the same site. - Scheme: the first part of a web address, such as
httpsorfile, which decides how the address is handled. - Secure (cookie attribute): a setting that makes the browser send the cookie only over HTTPS.
- Severity: a rating of how serious a security flaw is.
- Stable channel: the ordinary release of Chrome that everyone downloads, as opposed to early test builds.
- User agent: the line of text a browser sends to websites to introduce itself, naming the browser, its version and the operating system.
chrome.tabs.create: an extension API that opens a new tab at a given address.chrome.tabs.update: an extension API that changes an existing tab, for example to point it at a new address.submitForm: an extension API that submits a form; the report notes this path is POST only.