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

Inappropriate implementation in Permissions (CVE-2025-12911)

A CSS styling bug in Chromium's permission element allowed inherited text-decoration styles from a parent element to visually cover the text inside the permission prompt. This could let a site trick users into triggering a permission prompt even when the permission was in a denied state for that origin, though the prompt itself was not bypassed.

Hafiizh Follow

Originally disclosed on Chrome VRP

Bounty$500 Low View original
  • Fix shipped in 3 months

This bug is similar to https://issues.chromium.org/issues/398803201, when text-decoration-line: line-through; and text-decoration-thickness: 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-decoration-line: line-through; and text-decoration-thickness 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-12911, an inappropriate implementation issue in the Permissions feature. The researcher is Hafiizh, the severity is low, the bounty was 500.00 USD and the report was disclosed on 2025-09-02. The report itself is short and describes a rendering problem with the experimental <permission> element rather than a flaw in the permission backend.

The researcher notes the bug is similar to an earlier issue, https://issues.chromium.org/issues/398803201, and describes the trigger as a CSS inheritance problem. When the following declarations are embedded in a tag above the <permission> tag, for example a div or something else, they affect the <permission> tag and cover its text:

CSS
text-decoration-line: line-through;
text-decoration-thickness: ;

If the same declarations are embedded directly in the <permission> tag, the element is not affected. The report does not give a full HTML sample, a version number or a screenshot, so the exact markup used is not shown.

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.

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

Text
https://developer.chrome.com/blog/permission-element-origin-trial?hl=en

Root cause

The report describes the trigger as a CSS inheritance problem but does not identify the cause. A decoration declared on an ancestor is inherited or propagated into the element, and the resulting line-through covers the text that is supposed to communicate the current permission state. Because the element's purpose is to show whether a permission is granted or denied, obscuring that text breaks the contract between the displayed state and the stored state. The report does not identify the specific code path or component responsible.

Impact

A site could present a permission element whose text is obscured, so a user who has already denied a permission may not see that denial reflected. The researcher frames this as potential trickery rather than a security boundary break: the prompt is not bypassed, and no permission is granted without user interaction. The severity assigned by the program, low, is consistent with a UI integrity issue rather than a permission bypass.

How this kind of bug works

Custom elements that render security-relevant state, such as permission status, depend on their visual output being trustworthy. CSS is designed to cascade and inherit, and properties such as text decoration propagate from ancestors to descendants. If a component assumes its text will always be legible and does not isolate itself from inherited presentation, an embedding page can change what the user sees without changing the underlying state. The same class of problem appears whenever a security UI element is styled by the surrounding document: the attacker controls the presentation layer, so any state the element communicates visually can be hidden, overlapped or replaced. Defences are isolation (shadow DOM or a closed rendering boundary), explicit resetting of inherited properties, and treating the element's displayed state as something the page must not be able to alter.

How to test for it

  1. Identify security-relevant custom elements or browser-provided UI embedded in pages, especially those that display permission, payment or identity state.
  2. Place the element inside wrapper elements and apply inherited presentation properties to the wrapper: text decoration, colour, font size, opacity, transforms, clipping and overflow.
  3. Compare the rendered element with the same element when the properties are applied directly to it, as the researcher did here. A difference in rendering between the two placements is the signal.
  4. Check whether the obscured state can be made to disagree with the actual stored state, for example a denied permission that still looks actionable.
  5. Confirm the prompt or underlying behaviour is unchanged; if it is unchanged, the finding is a UI integrity issue, not a bypass.

Common false positives are cases where the element is simply styled by the page by design, where the obscured text is still available to assistive technology, or where the visual change has no bearing on a security decision. A positive result shows a state mismatch that a user could act on mistakenly.

How it is fixed

The report does not describe a fix. Regression tests should cover ancestor-applied decoration and thickness, since the report shows the direct-application case is not affected.

Hunting notes

This bug class tends to hide in newer platform features: origin-trial elements, embedded permission and payment UI, and any component that renders trust signals inside arbitrary pages. Recon signals include experimental elements documented on developer blogs, components with their own styling rules, and changelogs mentioning rendering or inheritance fixes. To get a report accepted, demonstrate the mismatch between displayed and actual state, state clearly what is and is not bypassed, and keep the reproduction minimal so the triager can see the inheritance path immediately.

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 bounty report from the Google Chrome programme, filed by a researcher called Hafiizh. It describes a problem in Chrome's Permissions feature, tracked as CVE-2025-12911, rated low severity, with a bounty of 500.00 USD, disclosed on 2025-09-02. The report is short: it is about how a piece of web page styling can hide text inside a special HTML element, not about a hole in the permission system itself.

To follow it you need two ideas. First, a permission in a browser is an answer to a question like "may this site use my camera?". Chrome remembers that answer per site, and the answer can be allow or deny. Second, HTML is the language web pages are written in, and CSS is the language used to describe how those pages look: colours, fonts, lines, spacing. CSS rules can be attached to one element or to a container around it, and some of those rules pass down from the container to everything inside it. Think of a highlighter mark made on a folder: everything you put in the folder carries the mark.

Chrome has been experimenting with a <permission> element, a tag a site can place on its page to show the current state of a permission. The report says that when certain CSS declarations are placed on a tag above the <permission> tag, such as a div, they affect the <permission> tag and cover its text. The declarations named are:

CSS
text-decoration-line: line-through;
text-decoration-thickness: ;

Line by line: text-decoration-line: line-through; asks the browser to draw a line through the text, the way a crossed-out word looks. text-decoration-thickness: ; is the declaration for how thick that line should be, written here with an empty value. The report does not explain what an empty value does in practice, and it gives no full HTML example, no Chrome version and no screenshot, so the exact page used is not shown.

The key observation is a difference between two placements. If the same declarations are written directly on the <permission> tag, the element is not affected. If they sit on a parent tag, they reach the <permission> tag and cover its text. That difference is the bug: the element behaves differently depending on where the styling comes from, and one of those paths lets the surrounding page change what the user sees.

Why does that matter? The <permission> element exists to tell the user something about a permission, including when the permission is currently in a DENY state for that site. If the text is covered, the user may not see that denial. The report's 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. An origin here simply means the site's identity: its scheme, host and port together.

The researcher is careful about the limit of the finding: it does not bypass the permission prompt in any way. The report says the permission prompt is not bypassed in any way. What is broken is the display, not the decision. That is why the programme rated it low: it is a problem with what the user is shown, not with who is allowed to do what.

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

Text
https://developer.chrome.com/blog/permission-element-origin-trial?hl=en

An origin trial is a way for Chrome to let sites try an unfinished feature before it ships to everyone. The report also says the bug is similar to an earlier issue, https://issues.chromium.org/issues/398803201.

In general, how this kind of bug works

In general, any part of a page that shows security-relevant information, such as whether a permission is allowed or denied, depends on its appearance being trustworthy. If the page around it can change that appearance, the user can be shown something that does not match the real state.

CSS is built to cascade and inherit: rules set on a container flow down to its children. That is useful for layout, but it means a component that assumes its text will always be readable can be altered by whoever writes the surrounding page. The same pattern appears whenever security information is drawn inside a page the site controls: the site owns the presentation, so it can hide, overlap or replace what the element communicates.

Tests should cover styling applied from a parent, because this report shows the case where the styling is applied directly to the element is not affected.

If you want to look for this kind of issue yourself, a sensible order is:

  1. Find browser-provided or custom elements that display security state, such as permission, payment or identity information.
  2. Put the element inside wrapper tags and apply inherited presentation to the wrapper: text decoration, colour, font size, opacity, transforms, clipping and overflow.
  3. Compare the result with the same properties applied directly to the element, as the researcher did. A difference between the two placements is the signal.
  4. Check whether the hidden state can be made to disagree with the real stored state, for example a denied permission that still looks actionable.
  5. Confirm the prompt or underlying behaviour is unchanged. If it is, you have a display problem, not a bypass, and you should say so plainly in the report.

Common false positives are cases where the page is simply allowed to style the element by design, where the hidden text is still available to assistive technology such as screen readers, or where the visual change has no bearing on any security decision. A real finding shows a mismatch between what the user sees and what is actually true, one the user could act on by mistake.

Glossary

  • Bug bounty: a programme that pays researchers for reporting security problems to the vendor.
  • Chrome VRP: Google Chrome's Vulnerability Reward Program, the bounty programme for Chrome.
  • CVE: a public identifier given to a known vulnerability so people can refer to it unambiguously.
  • Severity: a rating of how serious a bug is; here, low.
  • Bounty: the money paid for a valid report; here, 500.00 USD.
  • Disclosure: the date the report was made public.
  • Permissions: the browser feature that asks the user whether a site may use things like the camera or location, and remembers the answer.
  • Origin: a site's identity, made of its scheme, host and port.
  • DENY state: a stored answer saying the site may not use that permission.
  • Permission prompt: the dialog the browser shows asking the user to allow or block a permission.
  • Bypass: getting past a security check without satisfying it; the report says this does not happen here.
  • HTML: the language web pages are written in, built from tags such as div and <permission>.
  • Tag / element: a piece of HTML markup and the thing it creates on the page.
  • <permission> element: an experimental Chrome element that displays a permission's state and offers a way to request it.
  • div: a generic HTML container used to group other elements.
  • CSS: the language that describes how a page looks.
  • Declaration: a single CSS statement, such as text-decoration-line: line-through;.
  • text-decoration-line: the CSS property that chooses a decoration such as a line through the text.
  • text-decoration-thickness: the CSS property that sets how thick that decoration is.
  • Inheritance / cascade: the way CSS rules set on a container pass down to the elements inside it.
  • Origin trial: a Chrome scheme that lets sites try an unfinished feature before general release.
  • UI integrity: the property that what a page shows matches what is actually true.
  • Shadow DOM: a browser mechanism that isolates an element's internal rendering from the surrounding page's CSS.
  • Assistive technology: software such as a screen reader that conveys page content to users who cannot see it.
  • False positive: a reported issue that turns out not to be a real problem.

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.