Skip to content
CSRF Advisory Intermediate CVE-2025-8581

Inappropriate implementation in Extensions (CVE-2025-8581)

Chrome incorrectly included SameSite=Strict cookies when a user middle-clicked a link inside a PDF document, even if the PDF was served from a different site. An attacker could exploit this to bypass SameSite protections and perform CSRF attacks against sites that rely on those cookies for sensitive GET requests.

Vincent Dragnea Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Low View original
  • Fix shipped in 3 months

Report description

SameSite Strict cookies are included when middle clicking a link to another site in a PDF document


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules


The problem

Please describe the technical details of the vulnerability

Steps to reproduce:

  • Navigate to a page that has set a cookie with SameSite=Strict
  • Create a PDF document with a link to that page
  • Open that PDF in Chrome, and open the link in a new tab with a middle mouse click
  • The SameSite cookie is included with the request for that tab, even if the PDF was served from a different site.

The above steps detail the basic idea, however for ease of reproduction I have also created a Flask application to demonstrate the behaviour at the following GitHub repository: https://github.com/gnea-sec/samesite-demo

  • Add an entry to your hosts file, such as notlocalhost, that also points to 127.0.0.1.
  • Launch the server, and navigate to http://localhost:8181/setcookie
    • This sets a cookie with SameSite=Strict
  • Verify that the cookie is set at http://localhost:8181/showcookie
  • Navigate to http://notlocalhost:8181/pdflink
    • Note that this is on a separate domain notlocalhost, and following links from this site should not include the SameSite cookie.
  • Middle mouse click on the link to open it in a new tab. Note that the tab indicates that the SameSite cookie was received.
    • Opening the link by left clicking, or right clicking and selecting "Open link in new tab" does not include the cookie.
  • The origin of the link can be further obfuscated, such as by loading it in an iframe, as demonstrated in the mentioned application at http://notlocalhost:8181/frame

The attached video samesite-example.mp4 shows this server being used to demonstrate the issue. It shows a regular HTML link that does not include the SameSite cookie when followed from another site, and then shows the PDF document being served from another site. When the PDF link is followed with a left click, or right click and open in new tab, it does not include the SameSite cookie. However, when the link in a PDF document is middle clicked, it does include the SameSite cookie.

Impact analysis – Please briefly explain who can exploit the vulnerability, and what they gain when doing so

SameSite Strict cookies should not be included when following links from another site. If a website has functionality that can perform a sensitive action with a GET request, and it is relying on a SameSite cookie to prevent unauthorized access, then this can be used in social engineering attacks against users of that site. Any malicious actor would be able to target users of websites that are vulnerable in this way, and use this issue to exploit CSRF vulnerabilities.

This issue can be exploited to circumvent SameSite cookie protections. Following a link from another site should not include SameSite cookies. While a secure web application should not be significantly impacted by this issue, it has the potential to exacerbate certain misconfigurations. For instance, if a GET request is able to perform a sensitive action (it would not be unheard of for an endpoint intended to receive POST requests to also accept GET), then a malicious site could display a PDF loaded in an iframe, and use social engineering techniques to convince users to middle click on the link. A targeted phishing campaign does not need to fool everyone, it just needs to fool one person.


The cause

What version of Chrome have you found the security issue in?

Version 136.0.7103.93 (Official Build) (64-bit)

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Cross-site request forgery (CSRF)

How would you like to be publicly acknowledged for your report?

Vincent Dragnea

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

The report is filed against Chrome's Extensions component, and it concerns how links inside PDF documents interact with the SameSite cookie attribute. A PDF can contain hyperlinks, and Chrome lets a user follow those links in the same way as links on a web page. The report here is about how those links interact with the SameSite cookie attribute.

SameSite=Strict is meant to keep a cookie out of any request that is initiated from a different site. If a user is on site A and follows a link to site B, a Strict cookie belonging to B should not be sent. The researcher found that when the link is inside a PDF and is opened with a middle mouse click, the Strict cookie is sent anyway. The report was filed under the Chrome Vulnerability Reward Program as a Cross-site request forgery (CSRF) issue, rated low severity, and was disclosed on 5 August 2025 as CVE-2025-8581, with a bounty of 2,000 USD. The researcher is credited as Vincent Dragnea.

Setup

The issue was found in Chrome version 136.0.7103.93 (Official Build) (64-bit). It is not related to a crash.

To reproduce it, the researcher built a small Flask application, published at https://github.com/gnea-sec/samesite-demo. The setup needs two hostnames that resolve to the same machine, so that the cookie domain and the PDF origin are genuinely different sites:

  1. Add an entry to your hosts file, such as notlocalhost, that also points to [redacted].
  2. Launch the server.
  3. Navigate to http://localhost:8181/setcookie, which sets a cookie with SameSite=Strict.
  4. Verify that the cookie is set at http://localhost:8181/showcookie.
  5. Navigate to http://notlocalhost:8181/pdflink. This is a separate domain, notlocalhost, and following links from this site should not include the SameSite cookie.
  6. Middle mouse click on the link to open it in a new tab. The tab indicates that the SameSite cookie was received.

Opening the link by left clicking, or by right clicking and selecting "Open link in new tab", does not include the cookie. Only the middle click does.

The origin of the link can be further obfuscated, for example by loading it in an iframe, as demonstrated at http://notlocalhost:8181/frame.

Finding it

SameSite=Strict cookies should not be included when following links from another site. The demonstration server makes the two sides easy to tell apart. localhost:8181 owns the Strict cookie. notlocalhost:8181 is a different site and serves a PDF whose link points back to the cookie-owning page.

A plain HTML link from notlocalhost behaves as expected: following it does not carry the Strict cookie. The PDF link behaves differently depending on how it is followed. A left click, or a right click followed by "Open link in new tab", keeps the cookie out. A middle click opens the link in a new tab and the request carries the Strict cookie, even though the PDF was served from a different site. The navigation is cross-site, yet the cookie is attached.

The researcher also recorded a video, samesite-example.mp4, showing the server in use. It first shows a regular HTML link that does not include the SameSite cookie when followed from another site, then shows the PDF document being served from another site. When the PDF link is followed with a left click, or with right click and open in new tab, the cookie is not included. When the link in the PDF is middle clicked, the cookie is included.

Exploitation

Step 1: plant the Strict cookie

Navigate to the cookie-setting endpoint on the first host:

The response sets a cookie with SameSite=Strict. This is the cookie whose behaviour is under test.

Step 2: confirm the cookie is present

Navigate to http://localhost:8181/showcookie. The page confirms that the cookie is set, so any later request that carries it can be observed directly.

Step 3: serve the PDF from a different site

This host is a separate domain from localhost, even though both resolve to [redacted]. The page serves a PDF document containing a link back to the cookie-owning page. Because the PDF comes from another site, following its link should be a cross-site navigation and the Strict cookie should be withheld.

Step 4: follow the link with a middle click

Middle click the link inside the PDF to open it in a new tab. The resulting request to localhost:8181 includes the SameSite=Strict cookie. The tab shows that the cookie was received.

For comparison, follow the same link by left clicking, or by right clicking and choosing "Open link in new tab". Neither of those includes the cookie. The difference is specific to the middle click path.

Step 5: hide the origin in an iframe

The origin of the link can be further obfuscated by loading it in an iframe, as demonstrated at http://notlocalhost:8181/frame. The origin of the link can be further obfuscated by loading it in an iframe.

Root cause

The report describes the behaviour but does not identify the code path responsible. What it establishes is that a middle click on a link inside a PDF, served from another site, sends the Strict cookie. Left click and "Open link in new tab" from the same PDF do not show this behaviour, Left click and "Open link in new tab" from the same PDF do not show this behaviour.. The exact implementation fault is not stated in the report.

Impact

If a website has functionality that can perform a sensitive action with a GET request, and it relies on a SameSite cookie to prevent unauthorised access, this behaviour can be used in social engineering attacks against users of that site. A malicious actor could target users of websites that are vulnerable in this way and use the issue to exploit CSRF vulnerabilities.

The researcher is explicit about the limits. A secure web application should not be significantly impacted. The issue has the potential to exacerbate certain misconfigurations. For instance, if a GET request can perform a sensitive action (it would not be unheard of for an endpoint intended to receive POST requests to also accept GET), a malicious site could display a PDF loaded in an iframe and use social engineering to convince users to middle click on the link. A targeted phishing campaign does not need to fool everyone, it just needs to fool one person.

Fix

The report does not describe a fix or a code change. The behaviour it documents is that a middle click on a link inside a PDF, served from a different site, attaches a SameSite=Strict cookie that should have been withheld.

Variants to test

  • Repeat the same flow with SameSite=Lax cookies. A positive result is a cross-site middle click from a PDF that attaches a Lax cookie where a top-level cross-site navigation would normally withhold it.
  • Try the middle click on links inside other embedded document types, such as links rendered by the PDF viewer in an iframe versus a top-level PDF. A positive result is the Strict cookie appearing in the new tab's request in either case.
  • Vary how the PDF is delivered: served from a different port, a different subdomain, and a different registrable domain. A positive result is the cookie being attached only when the origins are genuinely cross-site, which confirms the site boundary is being ignored rather than the cookie simply being same-site.
  • Test the iframe variant at http://notlocalhost:8181/frame with the PDF nested at different depths. A positive result is the Strict cookie still being sent on the middle-click navigation.
  • Check whether the same middle-click behaviour appears for links in other browser-rendered content, such as a plain HTML page opened from a cross-site context. A positive result would show the fault is in middle-click handling generally rather than specific to PDFs.
  • On an application you control, add a GET endpoint that performs a sensitive action and is protected only by a SameSite=Strict cookie, then drive it through the PDF middle-click flow. A positive result is the action being performed in the victim's session without any other interaction.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

What happened, in plain words

Chrome can open PDF documents, and a PDF can contain clickable links, just like a web page. When you click a link, your browser sends a request to the site the link points to, and it may also send along cookies that belong to that site. A cookie is a small piece of data a website asks your browser to store and send back on later visits, often used to keep you logged in or to remember who you are.

Cookies have a setting called SameSite, which controls when the browser is allowed to attach them to a request. One value of that setting, SameSite=Strict, is meant to be very cautious: the cookie should only be sent when the request comes from the same site that set it. If you are on site A and follow a link to site B, a Strict cookie belonging to B should not travel with that request, because the request started somewhere else.

The researcher found that this rule breaks in one specific case. When a link inside a PDF is opened with a middle mouse click (pressing the scroll wheel), Chrome sends the Strict cookie anyway, even though the PDF came from a different site. Left clicking the link, or right clicking and choosing "Open link in new tab", does not do this. Only the middle click does.

The report was filed under the Chrome Vulnerability Reward Program as a Cross-site request forgery (CSRF) issue. It was rated low severity, disclosed on 5 August 2025 as CVE-2025-8581, and paid a bounty of 2,000 USD. The researcher is credited as Vincent Dragnea.

Context

The report is filed against Chrome's Extensions component, and it concerns how links inside PDF documents interact with the SameSite cookie attribute. A PDF can contain hyperlinks, and Chrome lets a user follow those links in the same way as links on a web page. This report is about how those links interact with the SameSite cookie attribute.

To understand the problem, it helps to know what SameSite is for. When your browser asks a website for a page, it attaches the cookies that belong to that website. That is convenient, but it also means another website could try to make your browser send a request to a site you are logged into, hoping your cookie goes along for the ride and the action succeeds without your knowledge. That kind of trick is called Cross-site request forgery, or CSRF. The SameSite setting exists to limit it: a Strict cookie is supposed to stay home and never be attached to a request that was started from a different site.

Setup

The issue was found in Chrome version 136.0.7103.93 (Official Build) (64-bit). It is not related to a crash.

To reproduce it, the researcher built a small Flask application, published at https://github.com/gnea-sec/samesite-demo. Flask is a simple toolkit for building small web servers in the Python programming language; you do not need to understand Python to follow the idea. The setup needs two hostnames that resolve to the same machine, so that the cookie domain and the PDF origin are genuinely different sites. A hostname is the name you type to reach a site, like localhost, and a hosts file is a small local list on your computer that maps names to addresses.

  1. Add an entry to your hosts file, such as notlocalhost, that also points to [redacted].
  2. Launch the server.
  3. Navigate to http://localhost:8181/setcookie, which sets a cookie with SameSite=Strict.
  4. Verify that the cookie is set at http://localhost:8181/showcookie.
  5. Navigate to http://notlocalhost:8181/pdflink. This is a separate domain, notlocalhost, and following links from this site should not include the SameSite cookie.
  6. Middle mouse click on the link to open it in a new tab. The tab indicates that the SameSite cookie was received.

Opening the link by left clicking, or by right clicking and selecting "Open link in new tab", does not include the cookie. Only the middle click does.

The origin of the link can be further obfuscated, for example by loading it in an iframe, as demonstrated at http://notlocalhost:8181/frame. An iframe is a way to embed one web page inside another, so the outer page can show content from somewhere else without the visitor seeing that other address directly.

Finding it

SameSite=Strict cookies should not be included when following links from another site. The demonstration server makes the two sides easy to tell apart. localhost:8181 owns the Strict cookie. notlocalhost:8181 is a different site and serves a PDF whose link points back to the cookie-owning page.

A plain HTML link from notlocalhost behaves as expected: following it does not carry the Strict cookie. The PDF link behaves differently depending on how it is followed. A left click, or a right click followed by "Open link in new tab", keeps the cookie out. A middle click opens the link in a new tab and the request carries the Strict cookie, even though the PDF was served from a different site. The navigation is cross-site, yet the cookie is attached.

The researcher also recorded a video, samesite-example.mp4, showing the server in use. It first shows a regular HTML link that does not include the SameSite cookie when followed from another site, then shows the PDF document being served from another site. When the PDF link is followed with a left click, or with right click and open in new tab, the cookie is not included. When the link in the PDF is middle clicked, the cookie is included.

Exploitation

Step 1: plant the Strict cookie

Navigate to the cookie-setting endpoint on the first host:

This is a request for the page at /setcookie on the server running at localhost on port 8181. The first line says the method is GET, which is the ordinary way a browser asks for a page, and the Host line tells the server which name the browser used to reach it. The response sets a cookie with SameSite=Strict. This is the cookie whose behaviour is under test.

Step 2: confirm the cookie is present

Navigate to http://localhost:8181/showcookie. The page confirms that the cookie is set, so any later request that carries it can be observed directly.

Step 3: serve the PDF from a different site

This host is a separate domain from localhost, even though both resolve to [redacted]. The page serves a PDF document containing a link back to the cookie-owning page. Because the PDF comes from another site, following its link should be a cross-site navigation and the Strict cookie should be withheld.

Step 4: follow the link with a middle click

Middle click the link inside the PDF to open it in a new tab. The resulting request to localhost:8181 includes the SameSite=Strict cookie. The tab shows that the cookie was received.

For comparison, follow the same link by left clicking, or by right clicking and choosing "Open link in new tab". Neither of those includes the cookie. The difference is specific to the middle click path.

Step 5: hide the origin in an iframe

The origin of the link can be further obfuscated by loading it in an iframe, as demonstrated at http://notlocalhost:8181/frame. The origin of the link can be further obfuscated by loading it in an iframe.

Root cause

The report describes the behaviour but does not identify the code path responsible. What it establishes is that a middle click on a link inside a PDF, served from another site, sends the Strict cookie. Left click and "Open link in new tab" from the same PDF do not show this behaviour, Left click and "Open link in new tab" from the same PDF do not show this behaviour.. The exact implementation fault is not stated in the report.

Impact

If a website has functionality that can perform a sensitive action with a GET request, and it relies on a SameSite cookie to prevent unauthorised access, this behaviour can be used in social engineering attacks against users of that site. Social engineering means manipulating a person into doing something, rather than breaking in technically. A malicious actor could target users of websites that are vulnerable in this way and use the issue to exploit CSRF vulnerabilities.

The researcher is explicit about the limits. A secure web application should not be significantly impacted. The issue has the potential to exacerbate certain misconfigurations. For instance, if a GET request can perform a sensitive action (it would not be unheard of for an endpoint intended to receive POST requests to also accept GET), a malicious site could display a PDF loaded in an iframe and use social engineering to convince users to middle click on the link. A targeted phishing campaign does not need to fool everyone, it just needs to fool one person.

Fix

The report does not describe a fix or a code change. The behaviour it documents is that a middle click on a link inside a PDF, served from a different site, attaches a SameSite=Strict cookie that should have been withheld.

Variants to test

  • Repeat the same flow with SameSite=Lax cookies. A positive result is a cross-site middle click from a PDF that attaches a Lax cookie where a top-level cross-site navigation would normally withhold it.
  • Try the middle click on links inside other embedded document types, such as links rendered by the PDF viewer in an iframe versus a top-level PDF. A positive result is the Strict cookie appearing in the new tab's request in either case.
  • Vary how the PDF is delivered: served from a different port, a different subdomain, and a different registrable domain. A positive result is the cookie being attached only when the origins are genuinely cross-site, which confirms the site boundary is being ignored rather than the cookie simply being same-site.
  • Test the iframe variant at http://notlocalhost:8181/frame with the PDF nested at different depths. A positive result is the Strict cookie still being sent on the middle-click navigation.
  • Check whether the same middle-click behaviour appears for links in other browser-rendered content, such as a plain HTML page opened from a cross-site context. A positive result would show the fault is in middle-click handling generally rather than specific to PDFs.
  • On an application you control, add a GET endpoint that performs a sensitive action and is protected only by a SameSite=Strict cookie, then drive it through the PDF middle-click flow. A positive result is the action being performed in the victim's session without any other interaction.

Glossary

  • Cookie: a small piece of data a website asks your browser to store and send back on later requests, often used to keep you logged in.
  • SameSite: a cookie setting that controls whether the cookie may be attached to requests started from another site.
  • SameSite=Strict: the strictest value of that setting; the cookie should only be sent when the request comes from the same site that set it.
  • SameSite=Lax: a looser value of that setting, which allows the cookie in some top-level navigations but not in others.
  • Cross-site: a request or navigation that starts on one site and targets a different site.
  • Origin: the combination of scheme, host and port that identifies where content came from, for example http://localhost:8181.
  • Hostname: the name used to reach a server, such as localhost or notlocalhost.
  • Hosts file: a local file on your computer that maps hostnames to addresses.
  • [redacted]: the address that always refers to your own computer.
  • Port: a numbered channel on a server; 8181 here is the port the demo server listens on.
  • Domain: a named area of the web, such as localhost or notlocalhost; different domains count as different sites.
  • Subdomain: a name placed in front of a domain, like shop.example.com in front of example.com.
  • Registrable domain: the main part of a domain name that a person or organisation registers, such as example.com.
  • GET request: the ordinary way a browser asks a server for a page or resource.
  • POST request: a request that sends data to a server, often used for actions that change something.
  • Endpoint: a specific address on a server that does something, such as /setcookie.
  • HTTP: the language browsers and servers use to exchange requests and responses.
  • Request: a message a browser sends to a server asking for something.
  • Response: the message a server sends back.
  • Header: a labelled line in a request or response carrying extra information, such as Host.
  • CSRF (Cross-site request forgery): tricking a logged-in user's browser into sending a request to a site that performs an action the user did not intend.
  • Social engineering: manipulating a person into taking an action, rather than attacking technology directly.
  • Phishing: a social engineering attack that pretends to be something trustworthy to get a person to act.
  • PDF: a document format that can contain text, images and clickable links.
  • Flask: a small toolkit for building web servers in Python.
  • Python: a programming language.
  • iframe: a way to embed one web page inside another.
  • Middle click: pressing the scroll wheel of a mouse, which in browsers often opens a link in a new tab.
  • Tab: a separate page view inside one browser window.
  • Navigation: moving from one page to another in the browser.
  • CVE: a public identifier given to a known security vulnerability.
  • Chrome VRP (Vulnerability Reward Program): Google's programme that pays researchers for reporting security issues in Chrome.
  • Bounty: the money paid to a researcher for a valid report.
  • Severity: a rating of how serious a vulnerability is, here low.
  • Extensions component: the Chrome component named in the report's asset field.
  • Obfuscate: to hide or make something less obvious.
  • Misconfiguration: a setting on a website that is set up in an unsafe way.
  • Session: the period during which a site recognises you as a particular logged-in user.

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 request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.