Skip to content
UI spoofing Advisory Intermediate CVE-2025-12906

Inappropriate implementation in Permissions (CVE-2025-12906)

A CSS rendering flaw in Chromium's permission element allowed text-emphasis styling applied to a parent element to visually cover the text inside the permission element. This could let a site trick users into triggering a permission prompt even when the permission was already denied for that origin, though the prompt itself was not bypassed.

Hafiizh Follow

Originally disclosed on Chrome VRP

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

This bug is similar to https://issues.chromium.org/issues/398803201, https://issues.chromium.org/issues/423670839

when text-emphasis:꧁; and text-emphasis-position: over right; are embedded in a tag above the <permission> tag, for example a div or something else, this affects the <permission> tag, thus covering the text in the <permission> tag. if style text-emphasis:꧁; and text-emphasis-position: over right; embedded directly in the <permission> tag are not affected. The impact is that sites can potentially trick users to trigger permission prompts even if the permission is currently in a DENY state for that origin. (It does not however bypass the permission prompt in any way)

references for some css that can and cannot be embedded in the <permission> tag: https://developer.chrome.com/blog/permission-element-origin-trial?hl=en

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

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

This is a Chrome VRP advisory for CVE-2025-12906, an inappropriate implementation issue in the Permissions feature. The researcher is credited as Hafiizh, the severity is low, and the bounty was 1000.00 USD. The report was disclosed on 2025-09-02.

The researcher describes a rendering problem in the <permission> element. The trigger is a combination of two CSS properties, text-emphasis and text-emphasis-position, applied to an ancestor element rather than to the <permission> element itself. The exact declarations used are:

CSS
text-emphasis:꧁;
text-emphasis-position: over right;

When those declarations are embedded in a tag above the <permission> tag, for example a div or something else, the styling affects the <permission> tag and covers the text inside it. When the same declarations are embedded directly in the <permission> tag, the element is not affected.

The researcher links two earlier issues as similar cases:

For background on which CSS can and cannot be embedded in the <permission> tag, the report points to the Chrome origin trial announcement:

The report does not include a proof of concept page, screenshots or a step-by-step reproduction beyond the CSS condition above.

Root cause

The report describes emphasis styling on an ancestor covering the text inside the <permission> element. The report does not state which component is at fault or what the fix was.

Impact

The stated impact is that sites can potentially trick users into triggering permission prompts even when the permission is currently in a DENY state for that origin. The researcher is explicit that this does not bypass the permission prompt in any way. The effect is on what the user sees, not on the permission decision itself. The severity assigned was low.

How this kind of bug works

Browser UI that is rendered inside page content, such as permission prompts, payment sheets or other trusted surfaces, depends on the page not being able to draw over or alter the trusted parts. When an element is composited into the page, CSS from ancestors can still influence how it is painted: inherited properties, generated content, decorations and emphasis marks are all candidates. If the trusted element does not establish its own containment, an attacker can place visual content on top of it, hide parts of it, or make one element look like another.

The result is a UI redress or clickjacking-style problem rather than a logic flaw in the permission check. The browser still enforces the permission state; the attacker only changes what the user perceives, for example making a prompt appear to belong to a different action or origin.

Defences are structural: render trusted UI outside the page's rendering context (separate widget or layer), or, where it must live in the page, enforce containment so ancestor styles and generated decorations cannot paint over it, and validate that the element's geometry and appearance are not influenced by page CSS.

How to test for it

This class of bug is found by looking for browser features that render trusted UI inside page content, then trying to disturb that UI with CSS from around it.

  1. Identify candidate elements: new or experimental HTML elements, custom prompt surfaces, and anything the browser draws in-page that carries trust (permission prompts, autofill, payment, translation bubbles).
  2. Place the element in a minimal page and confirm its normal appearance.
  3. Apply CSS to a parent element, not to the element itself, and observe whether the rendering changes. Vary one property at a time: text decorations, emphasis marks and their position, generated content, transforms, filters, clipping, overflow, stacking and z-index, and inherited font and colour properties.
  4. Compare the result with the same declarations applied directly to the element, since the report notes the direct case is unaffected.
  5. A positive result is a visible change to the trusted element caused by an ancestor: text covered, glyphs drawn over it, or the element made to look like something else.
  6. Common false positives: styling that is explicitly allowed by the feature's specification, changes that only affect the element's own box without touching its contents, and visual differences that do not mislead a user about which action or origin they are approving.

How it is fixed

The report does not state what the fix was. Where the specification allows certain CSS, the fix is to enforce exactly that allowlist and reject the rest. Regression tests should cover ancestor-applied decoration properties, not just properties set on the element itself.

Hunting notes

These bugs cluster around recently shipped or origin-trial browser features, especially elements that mix page content with browser-trusted UI. Recon signals include new element names in release notes and origin trial announcements, documentation that lists which CSS is permitted on an element (the allowlist itself hints at what was considered), and earlier issues in the same component, since similar reports often share a root cause.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 6 min read.

What happened, in plain words

This is a public bug report from Google Chrome's bug bounty programme, the Chrome VRP. It describes a flaw tracked as CVE-2025-12906 in a Chrome feature called Permissions. The researcher is credited as Hafiizh, the severity was rated low, and the bounty paid was 1000.00 USD. It was disclosed on 2025-09-02.

To follow the report you need two ideas. First, CSS is the language that tells a browser how a web page should look: colours, spacing, decorations. Second, Chrome has a fairly new HTML element called <permission>. It is an HTML element that a website can place on its page to ask the visitor for a permission. Because that button is drawn by the browser itself, users are meant to trust it: it should look like a genuine browser control, not like something the website painted.

The researcher found that a website can make the text inside that trusted button disappear. The trick is not applied to the button itself but to a container around it, such as a div. The two CSS declarations used are:

CSS
text-emphasis:꧁;
text-emphasis-position: over right;

Line by line:

  • text-emphasis:꧁; asks the browser to draw a small emphasis mark above (or below) each character of text. Here the mark is the character ꧁. Emphasis marks are normally used in some Asian writing systems to highlight text, a bit like bolding a word.
  • text-emphasis-position: over right; says where those marks go: above the text, and to the right.

The report states that when these declarations sit on a tag above the <permission> tag, for example a div or something else, the styling affects the <permission> tag and covers the text inside it. When the same declarations are placed directly in the <permission> tag, the element is not affected. That difference matters: it means the problem comes from styles flowing down from a parent element, not from the button's own styling.

The stated impact is that sites can potentially trick users into triggering permission prompts even if the permission is currently in a DENY state for that origin. In plain terms: a site the user has refused a permission to could still trick the user into triggering a permission prompt, because the text in the permission element is covered. The researcher is explicit that this does not bypass the permission prompt in any way. The browser still shows its real prompt. What is broken is what the user sees, not the permission decision itself.

The report links two earlier issues as similar cases:

For background on which CSS can and cannot be embedded in the <permission> tag, it points to the Chrome origin trial announcement:

The report does not include a proof of concept page, screenshots or a step-by-step reproduction beyond the CSS condition above.

In general, how this kind of bug works

Browsers sometimes draw their own trusted controls inside a web page: permission prompts, payment sheets, autofill menus. The safety of those controls depends on the page not being able to draw over them or change how they look. A useful comparison is a shop that puts its own price sticker on a product: if anyone could stick a new label on top of it, the sticker would stop meaning anything.

When such a control is placed in a page, CSS from the elements around it can still influence how it is painted. Inherited properties, generated content, decorations and emphasis marks are all candidates. If the trusted control does not isolate itself, a page can put visual content on top of it, hide parts of it, or make one thing look like another.

The result is a UI redress problem, also called clickjacking: the browser's logic is fine, but the user is misled about what they are looking at or clicking. The browser still enforces the permission state; the attacker only changes what the user perceives.

Defences are structural. Trusted controls should be rendered outside the page's rendering context, in their own layer or widget. Where they must live in the page, the browser should enforce containment so that ancestor styles and decorations cannot paint over them, and check that the control's size and appearance are not influenced by page CSS.

How to test for it

This class of bug is found by looking for browser features that draw trusted controls inside page content, then trying to disturb those controls with CSS from around them.

  1. Identify candidate elements: new or experimental HTML elements, custom prompt surfaces, and anything the browser draws in-page that carries trust, such as permission prompts, autofill, payment or translation bubbles.
  2. Place the element in a minimal page and confirm its normal appearance.
  3. Apply CSS to a parent element, not to the element itself, and observe whether the rendering changes. Vary one property at a time: text decorations, emphasis marks and their position, generated content, transforms, filters, clipping, overflow, stacking and z-index, and inherited font and colour properties.
  4. Compare the result with the same declarations applied directly to the element, since the report notes the direct case is unaffected.
  5. A positive result is a visible change to the trusted element caused by an ancestor: text covered, glyphs drawn over it, or the element made to look like something else.
  6. Common false positives: styling that the feature's specification explicitly allows, changes that only affect the element's own box without touching its contents, and visual differences that do not mislead a user about which action or origin they are approving.

How it is fixed

The report does not state what the fix was. Where the specification allows certain CSS, the fix is to enforce exactly that allowlist and reject the rest. Regression tests should cover decoration properties applied by ancestors, not just properties set on the element itself.

Hunting notes

These bugs cluster around recently shipped or origin-trial browser features, especially elements that mix page content with browser-trusted controls. Recon signals include new element names in release notes and origin trial announcements, documentation that lists which CSS is permitted on an element (the allowlist itself hints at what was considered), and earlier issues in the same component, since similar reports often share a root cause.

Glossary

  • Bug bounty programme: a scheme where organisations pay researchers for reporting security flaws.
  • Chrome VRP: Google Chrome's Vulnerability Reward Program, the bounty scheme for Chrome.
  • CVE: a public identifier given to a known security vulnerability.
  • Severity: a rating of how serious a bug is, here low.
  • Bounty: the money paid for a valid report, here 1000.00 USD.
  • Disclosure: making a bug report public.
  • CSS: the language that controls how a web page looks.
  • HTML element: a building block of a web page, such as a button or a container.
  • <permission> element: a Chrome button that a site places on its page to ask the visitor for a permission.
  • div: a generic HTML container used to group other elements.
  • Ancestor / parent element: an element that contains another element; styles on it can flow down to its children.
  • text-emphasis: a CSS property that draws a small mark above or below each character of text.
  • text-emphasis-position: a CSS property that sets where those emphasis marks are drawn.
  • Origin: the combination of scheme, host and port that identifies a website; permissions are granted per origin.
  • DENY state: a permission that the user has refused for that origin.
  • Permission prompt: the browser's own dialog asking the user to allow or block a permission.
  • UI redress / clickjacking: tricking a user by changing what they see or click, without breaking the underlying logic.
  • Rendering: how the browser draws a page on screen.
  • Containment: keeping an element's drawing separate so that outside styles cannot paint over it.
  • Allowlist: an explicit list of what is permitted, with everything else rejected.
  • Regression test: an automated test that checks a fixed bug does not come back.
  • Origin trial: a way for Chrome to let sites test an unfinished feature before it ships to everyone.
  • Proof of concept: a small example page or set of steps that demonstrates a bug.

More by Hafiizh

View all

78 more disclosed reports, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.