Skip to content
Access control Advisory Advanced CVE-2026-113022

Incorrect authorization in PDFium (CVE-2026-113022)

PDFium's submitForm() is meant to require user interaction, but a field's K action can be triggered by programmatically modifying the field in OpenAction, which dispatches the action in a synthetic key-stroke context. An attacker can therefore make a PDF submit data to a network endpoint as soon as it is opened, with no click or keypress.

Jamos Zhu Follow

Originally disclosed on Chrome VRP

Bounty$1,000 Medium View original
  • Fix shipped in 7 months

VULNERABILITY DETAILS Document.submitForm() is intended to require user interaction before it can submit. However, this can be bypassed by attaching the JavaScript containing submitForm() as a field’s K action, then programmatically modifying the field in OpenAction. When a field is modified, whether it is modified programmatically or by a user, PDFium calls OnKeyStrokeCommit() and dispatches the field’s K action in a kKeyStroke event context. This makes submitForm() incorrectly treat that synthetic event path as satisfying the gesture requirement. As a result, simply opening the PDF is enough to trigger a network submission without any user click or keypress.

VERSION Chrome Version: 146.0.7680.154 (Official Build) (Stable) (64-bit) Operating System: Windows 11 26H1 Build 28000.1719

REPRODUCTION CASE The attached poc.pdf is the minimum proof of concept to reproduce this issue. When opened in a Chrome browser, whether by double-clicking, dragging to chrome window, or typing its address in the address bar, it submits itself to http://127.0.0.1:8000/ without any user interaction. Reproduction steps:

  1. Start a local HTTP listener, for example, on http://127.0.0.1:8000/.
  2. Open the PDF in Chrome’s built-in PDF viewer.
  3. Do not click or type anything.
  4. Observe that Chrome still sends the submission request.

CREDIT INFORMATION Reporter credit: Jamos Zhu, Sebastian Dowell

The original report as published on the Chromium issue tracker, by Jamos Zhu, Sebastian Dowell. 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. 5 min read.

Context

PDFium is the PDF rendering engine used by Chrome, and it is what backs Chrome's built-in PDF viewer. PDFs can carry JavaScript, and one of the APIs exposed to that JavaScript is Document.submitForm(), which submits form data over the network.

Because a PDF that submits data on open is a privacy and abuse problem, submitForm() is designed to require user interaction before it will submit. The gesture requirement is the defence that is supposed to stop a document from silently phoning home the moment it is opened.

This report describes a way to satisfy that gesture check without any real user gesture, so that merely opening a PDF triggers a network submission.

Setup

The issue was reproduced on:

Item Value
Chrome version 146.0.7680.154 (Official Build) (Stable) (64-bit)
Operating system Windows 11 26H1 Build 28000.1719
Component PDFium, Chrome's built-in PDF viewer
Test endpoint http://[redacted]:8000/

The only artefact needed is a PDF (poc.pdf in the report) containing the crafted form and JavaScript. A local HTTP listener is used to observe whether a submission arrives.

Finding it

The report states that Document.submitForm() is intended to require user interaction before it can submit.

The report states that when a field is modified, whether programmatically or by a user, PDFium calls OnKeyStrokeCommit() and dispatches the field's K action in a kKeyStroke event context. In both cases PDFium calls OnKeyStrokeCommit() and dispatches the K action in a kKeyStroke event context.

That means a script can cause a kKeyStroke event to be dispatched without any key being pressed, simply by modifying a field from JavaScript. The report states that this makes submitForm() incorrectly treat the synthetic event path as satisfying the gesture requirement.

Exploitation

The construction has two parts: the JavaScript that calls submitForm() is attached as a field's K action, and the field is modified programmatically from OpenAction, which runs when the document opens.

Step 1: Start a listener

Start a local HTTP listener on the target address, for example:

Text
http://[redacted]:8000/

This is only there to observe whether a submission request arrives; the report does not include the request or response contents.

Step 2: Open the PDF in Chrome

Open the crafted PDF in Chrome's built-in PDF viewer. The report notes that this works whether the file is opened by double-clicking, by dragging it into the Chrome window, or by typing its address in the address bar.

Step 3: Do not interact

Do not click or type anything. The point of the test is that no user gesture of any kind occurs.

Step 4: Observe the submission

Chrome still sends the submission request. The document submits itself to http://[redacted]:8000/ without any user interaction.

In sequence, the mechanism is:

  1. The document opens and OpenAction runs.
  2. The script modifies a form field programmatically.
  3. PDFium treats the modification as a keystroke commit: it calls OnKeyStrokeCommit() and dispatches the field's K action in a kKeyStroke event context.
  4. The K action contains the JavaScript that calls Document.submitForm().
  5. submitForm() sees the kKeyStroke context and treats the gesture requirement as satisfied, so it submits.

The report does not include the PDF source, the exact JavaScript, or the field names used.

Root cause

The report states that submitForm() incorrectly treats the synthetic kKeyStroke event path as satisfying the gesture requirement. PDFium dispatches a field's K action in a kKeyStroke context when the field is modified, whether programmatically or by a user. The synthetic kKeyStroke path therefore looks identical to a genuine user gesture from the perspective of the check.

The existing defence, the interaction requirement itself, did not stop this because it was satisfied by an event that the engine generated on its own. The report does not describe any further checks that were present or absent.

Impact

Opening a crafted PDF in Chrome causes a network submission without any click or keypress; the report demonstrates this against a local listener. The report demonstrates this against a local listener; it does not describe what data is submitted or how the destination is chosen beyond the example URL.

The practical consequence is that opening a PDF is enough to make the browser send a request, which defeats the interaction requirement that exists to prevent exactly that. The report does not discuss what an attacker could learn from the submission or how it could be combined with other issues.

Fix

Based on the root cause, the check would need to distinguish a genuine user gesture from a kKeyStroke event that PDFium dispatches because a field was modified programmatically, rather than accepting any kKeyStroke context as satisfying the requirement.

Variants to test

These follow from the mechanism in the report and are worth trying on other PDF viewers or on other gesture-gated APIs:

  1. Other actions dispatched on field modification. Attach gesture-gated JavaScript to other field actions and modify the field from OpenAction. A positive result is the gated API running with no user interaction.
  2. Other synthetic event contexts. Look for APIs whose gesture check inspects an event type that the engine can generate itself, such as commit or change events. A positive result is the API executing from a document-open script.
  3. Other viewers embedding PDFium. Test the same PDF in other products that use PDFium. A positive result is the same submission on open.
  4. Different ways of opening the file. The report notes double-click, drag and drop, and address bar entry all work; check whether other entry points behave the same. A positive result is a submission in each case.

Hunting notes

This kind of bug hides where a security check is based on the type of event rather than on proof that a user acted. In PDF viewers, the interesting surfaces are document-open actions (OpenAction), field actions such as K, and any API documented as requiring user interaction, especially those that cause network traffic such as submitForm().

During recon, the signal is a documented gesture requirement combined with an engine path that dispatches the same event type on its own. Reading how the viewer dispatches field events, and whether programmatic modification goes through the same handler as typing, points directly at the flaw.

The report states the PDF submits to a local listener when opened by double-clicking, dragging into the Chrome window, or typing its address, with no interaction. That makes the bypass of the interaction requirement directly observable, which is what the report rests on.

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 files inside the browser itself, without a separate program. The part of Chrome that draws and runs PDFs is called PDFium. PDFs are not just pictures of pages: they can contain small programs written in JavaScript, the same language that powers interactive websites. One of the things a PDF's JavaScript is allowed to do is send form data over the internet, using a function called Document.submitForm().

If a PDF could send data the instant you opened it, that would be a privacy problem: a document you merely glanced at could quietly tell someone that you opened it, or send other information. So submitForm() is built to refuse to send anything until the user has actually done something, such as clicking or typing. Security people call this a "gesture requirement": the browser wants proof that a human acted.

This report shows a way around that requirement. The trick makes submitForm() treat a synthetic kKeyStroke event path as satisfying the gesture requirement, so simply opening the PDF is enough to send a network request. The researcher demonstrated it with a PDF that submits itself to a local test address the moment it is opened.

Context

PDFium is the PDF rendering engine used by Chrome, and it is what backs Chrome's built-in PDF viewer. A rendering engine is the component that reads a file format and turns it into something you can see and interact with. PDFs can carry JavaScript, and one of the APIs exposed to that JavaScript is Document.submitForm(), which submits form data over the network.

An API (application programming interface) is a defined set of functions that one piece of software offers to another. Here, the PDF's JavaScript is the caller and PDFium is the software offering the functions. Document.submitForm() is one such function: it takes the data in a PDF form and sends it to a web address.

Because a PDF that submits data on open is a privacy and abuse problem, submitForm() is designed to require user interaction before it will submit. The gesture requirement is the defence that is supposed to stop a document from silently phoning home the moment it is opened. "Phoning home" means a program contacting a server on its own, without the user asking it to.

This report describes a way to satisfy that gesture check without any real user gesture, so that merely opening a PDF triggers a network submission.

Setup

The issue was reproduced on:

Item Value
Chrome version 146.0.7680.154 (Official Build) (Stable) (64-bit)
Operating system Windows 11 26H1 Build 28000.1719
Component PDFium, Chrome's built-in PDF viewer
Test endpoint http://[redacted]:8000/

A few of those terms deserve a plain explanation. The Chrome version is simply the exact release of the browser used, so that someone else can try the same thing on the same build. "Stable" means the ordinary public release, not a test or developer build. The operating system line records the exact Windows build, because behaviour can differ between versions.

The test endpoint is the address the PDF sends its data to. [redacted] is a special address that always means "this same computer". So http://[redacted]:8000/ points at a small web server running on the researcher's own machine, listening on port 8000. A port is a numbered channel on a computer; many programs can run on one machine, and the port number says which one should receive the traffic. Using a local address is a safe way to prove that a request leaves the browser, without involving anyone else's server.

The only artefact needed is a PDF (poc.pdf in the report) containing the crafted form and JavaScript. "Artefact" here just means the file that demonstrates the bug. A local HTTP listener is used to observe whether a submission arrives. A listener is a program that sits waiting for incoming connections and notes them; it is the equivalent of leaving a phone off the hook and writing down every call.

Finding it

The report states that Document.submitForm() is intended to require user interaction before it can submit. In other words: instead of asking "can I fake a click?", the researcher asked "is there a moment when PDFium itself pretends a key was pressed?".

The report states that when a field is modified, whether programmatically or by a user, PDFium calls OnKeyStrokeCommit() and dispatches the field's K action in a kKeyStroke event context. A form field is a box in a PDF where you can type, such as a name box. An "action" in PDF terms is a piece of behaviour attached to an object, like a script that runs when something happens. The K action is the one meant to run on a keystroke. "Programmatically" means done by code rather than by a person: a script changes the field's value instead of a human typing into it.

In both cases PDFium calls OnKeyStrokeCommit() and dispatches the K action in a kKeyStroke event context. To unpack that: OnKeyStrokeCommit() is an internal function whose name means "a keystroke has been committed", that is, a typed value has been finalised. "Dispatches" means it sends the event out so that whatever is attached to it runs. An "event context" is a label saying what kind of happening this is; kKeyStroke is the label meaning "a key was pressed". The important part is that PDFium uses the same label whether a real person typed or a script changed the field.

That means a script can cause a kKeyStroke event to be dispatched without any key being pressed, simply by modifying a field from JavaScript. The report states that this makes submitForm() incorrectly treat the synthetic event path as satisfying the gesture requirement. "Synthetic" means manufactured by software rather than produced by a human. The everyday comparison: a bouncer checking invitations by looking only at the envelope, not at who is holding it. If the envelope looks right, the door opens, even if the invitation was printed at home.

Exploitation

The construction has two parts: the JavaScript that calls submitForm() is attached as a field's K action, and the field is modified programmatically from OpenAction, which runs when the document opens. OpenAction is a PDF setting that names something to do automatically as soon as the file is opened. So the document carries its own starting pistol: open it, and the script runs.

Step 1: Start a listener

Start a local HTTP listener on the target address, for example:

Text
http://[redacted]:8000/

This is only there to observe whether a submission request arrives; the report does not include the request or response contents. The reason for this step is measurement: without something waiting at the other end, you cannot tell whether the browser sent anything. It is the difference between claiming a letter was posted and having the letter arrive in your own letterbox.

Step 2: Open the PDF in Chrome

Open the crafted PDF in Chrome's built-in PDF viewer. The report notes that this works whether the file is opened by double-clicking, by dragging it into the Chrome window, or by typing its address in the address bar.

Step 3: Do not interact

Do not click or type anything. The point of the test is that no user gesture of any kind occurs. This is the control in the experiment: if you clicked, you could not tell whether the click or the document caused the submission.

Step 4: Observe the submission

Chrome still sends the submission request. The document submits itself to http://[redacted]:8000/ without any user interaction.

In sequence, the mechanism is:

  1. The document opens and OpenAction runs.
  2. The script modifies a form field programmatically.
  3. PDFium treats the modification as a keystroke commit: it calls OnKeyStrokeCommit() and dispatches the field's K action in a kKeyStroke event context.
  4. The K action contains the JavaScript that calls Document.submitForm().
  5. submitForm() sees the kKeyStroke context and treats the gesture requirement as satisfied, so it submits.

The report does not include the PDF source, the exact JavaScript, or the field names used.

Root cause

The report states that submitForm() incorrectly treats the synthetic kKeyStroke event path as satisfying the gesture requirement. PDFium dispatches a field's K action in a kKeyStroke context when the field is modified, whether programmatically or by a user. The synthetic kKeyStroke path therefore looks identical to a genuine user gesture from the perspective of the check.

"Root cause" means the underlying design or coding mistake, as opposed to the surface symptom. Here the mistake is a category error: the check asks "what kind of event is this?" when it should ask "did a person actually do this?". The existing defence, the interaction requirement itself, did not stop this because it was satisfied by an event that the engine generated on its own. The report does not describe any further checks that were present or absent.

Impact

Opening a crafted PDF in Chrome causes a network submission without any click or keypress; the report demonstrates this against a local listener. An endpoint is simply the address that receives the data. The report demonstrates this against a local listener; it does not describe what data is submitted or how the destination is chosen beyond the example URL.

The practical consequence is that opening a PDF is enough to make the browser send a request, which defeats the interaction requirement that exists to prevent exactly that. The report does not discuss what an attacker could learn from the submission or how it could be combined with other issues.

Fix

Based on the root cause, the check would need to distinguish a genuine user gesture from a kKeyStroke event that PDFium dispatches because a field was modified programmatically, rather than accepting any kKeyStroke context as satisfying the requirement.

Variants to test

These follow from the mechanism in the report and are worth trying on other PDF viewers or on other gesture-gated APIs. A "variant" is the same underlying mistake showing up in a slightly different place; finding one often means finding several.

  1. Other actions dispatched on field modification. Attach gesture-gated JavaScript to other field actions and modify the field from OpenAction. A positive result is the gated API running with no user interaction.
  2. Other synthetic event contexts. Look for APIs whose gesture check inspects an event type that the engine can generate itself, such as commit or change events. A positive result is the API executing from a document-open script.
  3. Other viewers embedding PDFium. Test the same PDF in other products that use PDFium. A positive result is the same submission on open.
  4. Different ways of opening the file. The report notes double-click, drag and drop, and address bar entry all work; check whether other entry points behave the same. A positive result is a submission in each case.

Hunting notes

This kind of bug hides where a security check is based on the type of event rather than on proof that a user acted. In PDF viewers, the interesting surfaces are document-open actions (OpenAction), field actions such as K, and any API documented as requiring user interaction, especially those that cause network traffic such as submitForm().

During recon, the signal is a documented gesture requirement combined with an engine path that dispatches the same event type on its own. "Recon" (reconnaissance) means the reading and exploring you do before testing, to work out where a weakness is likely. Reading how the viewer dispatches field events, and whether programmatic modification goes through the same handler as typing, points directly at the flaw. A "handler" is the piece of code that responds to an event.

The report states the PDF submits to a local listener when opened by double-clicking, dragging into the Chrome window, or typing its address, with no interaction. That makes the bypass of the interaction requirement directly observable, which is what the report rests on. A "bypass" is a way of getting past a protection without breaking it, the way walking around a fence is easier than climbing it.

Glossary

  • API: a defined set of functions one piece of software offers to another, so programs can use each other's features without knowing the internals.
  • Action (PDF): a piece of behaviour attached to an object in a PDF, such as a script that runs when something happens.
  • Artefact: the file or item used to demonstrate something, here the proof-of-concept PDF.
  • Bypass: getting past a security check without removing it, by finding a route the check does not cover.
  • Chrome: Google's web browser, which includes its own PDF viewer.
  • Endpoint: the address that receives a network request.
  • Event: a happening that software announces so that interested code can react to it, such as a key being pressed.
  • Event context: the label attached to an event saying what kind of happening it is, for example kKeyStroke.
  • Gesture requirement: a rule that a sensitive action only proceeds after a real user action such as a click or keypress.
  • Handler: the code that responds when a particular event occurs.
  • HTTP listener: a program that waits for incoming web requests and records them.
  • JavaScript: the programming language used for interactive behaviour in web pages and in PDFs.
  • kKeyStroke: PDFium's internal label for an event meaning "a key was pressed".
  • K action: the PDF action meant to run when a key is pressed in a form field.
  • Local address ([redacted]): a special address that always refers to the same computer the program is running on.
  • OnKeyStrokeCommit(): a PDFium internal function called when a typed value in a field is finalised.
  • OpenAction: a PDF setting naming something to do automatically when the document is opened.
  • PDFium: the software component inside Chrome that reads and displays PDF files.
  • Port: a numbered channel on a computer that identifies which program should receive a network connection.
  • Programmatic: done by code rather than by a person.
  • Recon (reconnaissance): the reading and exploring done before testing, to work out where a weakness is likely.
  • Rendering engine: the component that reads a file format and turns it into something visible and interactive.
  • Root cause: the underlying design or coding mistake that produces a bug, as opposed to its visible symptom.
  • Stable build: the ordinary public release of a browser, as opposed to a test or developer build.
  • Document.submitForm(): a PDF JavaScript function that sends form data over the network.
  • Synthetic event: an event manufactured by software rather than produced by a human.
  • Variant: the same underlying mistake appearing in a slightly different place or form.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.