Incorrect security UI in Digital Credentials (CVE-2026-0904)
The Digital Credentials API consent dialog truncates long domain names, so the displayed origin can be cut short and made to look like a different site. An attacker could register a long domain whose truncated form matches a trusted domain and use it to spoof the dialog shown to the user.
- Fix shipped in 3 months
VULNERABILITY DETAILS
When the Digital Credentials API dialog is invoked, the dialog appears with the name "Do you trust this site with your data" and the long domain name causes the domain name to be truncated. As seen in the second video at https://developer.chrome.com/blog/digital-credentials-api-shipped?hl=en . In the second video, the dialog appears to be "9000--firebase-studio-1758636784187.cluster-64pjnskmlbaxowh5lzq6i7v4ra.clo" instead of 9000--firebase-studio-1758636784187.cluster-64pjnskmlbaxowh5lzq6i7v4ra.cloudworkstations.dev, thus causing the dialog to be spoofed.
- Create a Digital Credentials API application using the example at https://developer.chrome.com/blog/digital-credentials-api-shipped?hl=en using a long domain.
- Open the page as shown on https://verifier.multipaz.org/ and click one of the button and show the confirm dialog
What the report shows
The target is the Digital Credentials API in Google Chrome, specifically the confirmation dialog that Chrome shows when a site invokes the API. The dialog carries the heading "Do you trust this site with your data" and displays the origin of the requesting site so the user can decide whether to share credentials.
The researcher found that a long domain name is truncated in that dialog. The report points to the second video on the Chrome developer blog post announcing the API, where the dialog shows:
9000--firebase-studio-1758636784187.cluster-64pjnskmlbaxowh5lzq6i7v4ra.clo
instead of the full host:
9000--firebase-studio-1758636784187.cluster-64pjnskmlbaxowh5lzq6i7v4ra.cloudworkstations.dev
Because the visible text stops mid-label, the origin the user reads is not the origin that actually requested the credentials. The report describes this as the dialog being spoofed.
The reproduction steps given are:
- Create a Digital Credentials API application using the example at https://developer.chrome.com/blog/digital-credentials-api-shipped?hl=en using a long domain.
- Open the page as shown on https://verifier.multipaz.org/ and click one of the button and show the confirm dialog.
Root cause
The report does not name the cause; it only states that the long domain name is truncated in the dialog. The security decision the dialog supports depends entirely on the user reading the correct origin, so any truncation that hides the end of the host, or that cuts a label so the remainder looks like a different domain, undermines the prompt. The report itself only states the truncation and the resulting spoofing; it does not name the rendering component or the code path.
Impact
A long hostname is truncated in the dialog, so the visible text is not the full origin of the requesting site. The report frames the outcome as spoofing of the dialog. It does not demonstrate credential theft, describe what credentials would be exposed, or show a full attack chain, so the practical impact beyond misleading the user is not established in the text.
How this kind of bug works
Security prompts are only as good as the origin they display. Browsers show the origin in permission dialogs, payment sheets, credential prompts and similar UI so the user can bind a decision to a specific site. When the origin is drawn into a container that is narrower than the string, the renderer has to do something: wrap, shrink, elide with an ellipsis, or clip. Clipping is the dangerous option because the visible prefix can be crafted by the attacker. A registrable domain is read from the right, so a hostname whose left-hand labels are attacker-chosen and long can push the real domain out of view, or cut a label so that the visible fragment resembles a trusted name.
The bug class is a UI trust failure rather than a memory or injection flaw. It appears wherever a security-relevant string is rendered without a layout guarantee, including dialogs, address bars, permission bubbles and mobile sheets. Defences are straightforward in principle: elide in the middle or at the start so the registrable domain stays visible, cap the length of displayed origins, refuse to render an origin that cannot be shown in full, or show a warning when truncation occurs. Testing for it means finding every place the browser or an app shows an origin and checking what happens with hostile lengths.
How to test for it
- Identify prompts that display an origin or URL and gate a security decision: credential sharing, permission grants, payment confirmation, install prompts, OAuth consent.
- Register or use a domain you control with a long left-hand label, and vary the length so the total host crosses the width of the dialog. Subdomains of a service that issues long generated hostnames are useful because they are free and realistic.
- Trigger the prompt and compare the rendered string with the true origin. A positive result is any case where the visible text is a prefix, a mid-label cut, or otherwise reads as a domain you do not control, while the prompt still refers to your site.
- Test at different window sizes, zoom levels, font settings and locales, since layout-dependent truncation often only appears in some configurations.
- Check whether the truncated form can be made to resemble a specific trusted brand by choosing labels, and record screenshots of both the dialog and the address bar for the same page.
Common false positives: an ellipsis that clearly signals truncation while the registrable domain remains visible; a tooltip or secondary line that reveals the full origin; cases where the prompt is informational and does not gate a decision; and truncation that only occurs after the user has already been shown the full origin elsewhere in the same flow.
How it is fixed
Standard fixes are to elide the origin so the registrable domain is always visible, to constrain displayed origins to a length that fits, to render the full origin on a second line or in a tooltip, and to treat an origin that cannot be displayed faithfully as a reason to warn the user or block the prompt. Regression tests should cover long labels, punycode, and multiple viewport sizes.
Hunting notes
This class hides in any UI that renders attacker-influenced strings next to a trust decision: permission and credential dialogs, address bars, site information panels, mobile bottom sheets, embedded webviews and desktop app wrappers. Recon signals include prompts that show a hostname in a single line, fixed-height containers, and features that accept arbitrary subdomains. To make a report land, show the exact rendered string, the true origin, the steps to reproduce with a domain you control, and a screenshot pair proving the mismatch at the moment of the decision. Programs tend to accept these when the prompt gates a real security choice and the truncated text can plausibly be mistaken for another site.
What happened, in plain words
Google Chrome has a feature called the Digital Credentials API. It lets a website ask your browser for digital credentials. Before anything is shared, Chrome shows a confirmation dialog with the heading "Do you trust this site with your data" and displays the address (origin) of the site that is asking. You are supposed to read that address and decide whether to trust it.
The researcher found that when the site's domain name is very long, the dialog cuts it off. The visible text stops partway through, so what you read is not the full address of the site that is actually asking. The report points to the second video on the Chrome developer blog post announcing the API, where the dialog shows:
9000--firebase-studio-1758636784187.cluster-64pjnskmlbaxowh5lzq6i7v4ra.clo
instead of the full host:
9000--firebase-studio-1758636784187.cluster-64pjnskmlbaxowh5lzq6i7v4ra.cloudworkstations.dev
The visible text stops in the middle of the last part of the name. The real site ends in .cloudworkstations.dev, but the dialog only shows .clo. A user reading the dialog sees a name that is not the real origin, and the report describes this as the dialog being spoofed.
The reproduction steps given in the report are:
- Create a Digital Credentials API application using the example at https://developer.chrome.com/blog/digital-credentials-api-shipped?hl=en using a long domain.
- Open the page as shown on https://verifier.multipaz.org/ and click one of the button and show the confirm dialog.
Using a long domain is the key condition: the report says a long domain name causes the truncation. Without triggering the dialog, there is nothing to observe.
In general, how this kind of bug works
A security prompt is only as good as the address it shows. Browsers display the origin (the scheme, host and port of a page, such as https://example.com) in permission dialogs, payment sheets, credential prompts and similar screens so that you can tie your decision to one specific site. Think of it like a bouncer checking a name on a guest list: if the name is smudged or cut off, the bouncer cannot tell whether the person at the door is the one on the list.
When the origin is drawn into a box that is narrower than the text, the browser has to do something. It can wrap the text onto another line, shrink it, shorten it with an ellipsis ("..."), or simply clip it. Clipping is the dangerous option, because an attacker can choose the beginning of the address. Domain names are read from the right: the part that identifies the real owner is the end, such as example.com. If an attacker uses a long made-up prefix, the real ending can be pushed out of view, or a piece of it can be cut so that the visible fragment looks like a different, trusted name.
This is a UI trust failure, not a memory or injection flaw. It appears wherever a security-relevant string is shown without a layout guarantee: dialogs, address bars, permission bubbles and mobile sheets. The defences are simple in principle: shorten the text in the middle or at the start so the real domain stays visible, limit how long an origin can be, refuse to show an origin that cannot be displayed in full, or warn the user when truncation happens. Testing for it means finding every place the browser or an app shows an origin and checking what happens with hostile lengths.
How to test for it
- Identify prompts that display an origin or URL and gate a security decision: credential sharing, permission grants, payment confirmation, install prompts, OAuth consent.
- Register or use a domain you control with a long left-hand label, and vary the length so the total host crosses the width of the dialog. Subdomains of a service that issues long generated hostnames are useful because they are free and realistic.
- Trigger the prompt and compare the rendered string with the true origin. A positive result is any case where the visible text is a prefix, a mid-label cut, or otherwise reads as a domain you do not control, while the prompt still refers to your site.
- Test at different window sizes, zoom levels, font settings and locales, since layout-dependent truncation often only appears in some configurations.
- Check whether the truncated form can be made to resemble a specific trusted brand by choosing labels, and record screenshots of both the dialog and the address bar for the same page.
Common false positives: an ellipsis that clearly signals truncation while the real domain remains visible; a tooltip or secondary line that reveals the full origin; cases where the prompt is informational and does not gate a decision; and truncation that only occurs after the user has already been shown the full origin elsewhere in the same flow.
How it is fixed
Standard fixes are to shorten the origin so the real domain is always visible, to constrain displayed origins to a length that fits, to render the full origin on a second line or in a tooltip, and to treat an origin that cannot be displayed faithfully as a reason to warn the user or block the prompt. Regression tests should cover long labels, punycode, and multiple viewport sizes.
Hunting notes
This class hides in any UI that renders attacker-influenced strings next to a trust decision: permission and credential dialogs, address bars, site information panels, mobile bottom sheets, embedded webviews and desktop app wrappers. Recon signals include prompts that show a hostname in a single line, fixed-height containers, and features that accept arbitrary subdomains. To make a report land, show the exact rendered string, the true origin, the steps to reproduce with a domain you control, and a screenshot pair proving the mismatch at the moment of the decision. Programs tend to accept these when the prompt gates a real security choice and the truncated text can plausibly be mistaken for another site.
Glossary
- Digital Credentials API: a browser feature that lets a website request digital identity documents, such as a digital licence, from the user's device.
- Origin: the combination of scheme, host and port that identifies a website, for example
https://example.com. - Host / hostname: the part of a URL that names the server, such as
example.comorsub.example.com. - Domain name: the human-readable name of a site, read from right to left, where the end (like
.com) is the top-level domain and the part before it identifies the owner. - Registrable domain: the part of a hostname that a person or organisation actually registers and controls, such as
example.cominlogin.example.com. - Subdomain: a label placed to the left of a registrable domain, such as
logininlogin.example.com. - Label: one section of a hostname between dots, such as
wwworexample. - Truncation: cutting off part of a piece of text because it does not fit in the space available.
- Clipping: cutting off text at the edge of a container without any marker, so the reader cannot tell that something is missing.
- Ellipsis: the three dots ("...") used to show that text has been shortened.
- Spoofing: making something look like something else, here making the dialog show a name that is not the real site.
- Security UI: the parts of a browser interface that help you make a safety decision, such as permission dialogs and address bars.
- UI trust failure: a bug where the interface misleads the user about who they are dealing with, rather than a flaw in memory or code execution.
- Confirmation dialog: a pop-up that asks you to approve or reject an action before it happens.
- CVE: a public identifier for a known security vulnerability.
- CVSS: a scoring system that rates the severity of a vulnerability.
- Chrome VRP: Google Chrome's Vulnerability Reward Program, which pays researchers for reporting security bugs.
- Bounty: the money paid to a researcher for a valid security report.
- Punycode: a way of writing international domain names using only ASCII characters, which can look similar to other names.
- Viewport: the visible area of a web page in the browser window.
- OAuth consent: a screen that asks you to approve sharing your account information with another app or site.
- Webview: an embedded browser component inside another application.