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

Insufficient validation of untrusted input in StorageAccessAPI (CVE-2026-14021)

A compromised renderer could bypass security checks in the Storage Access API by exploiting a pre-existing storage access grant, which causes the permission flow to short-circuit before the validation in DecidePermission runs. This allows a sandboxed iframe to obtain unpartitioned cross-site cookie access, though the text notes that for credentialless frames downstream validation still prevents actual cookie access.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 33 days

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A potential vulnerability in StorageAccessGrantPermissionContext allows a compromised renderer to bypass security checks designed to prevent sandboxed or credentialless frames from acquiring storage access. When a pre-existing storage access grant is active, the permission flow short-circuits early to a GRANTED status without executing DecidePermission. This allows the compromised renderer to incorrectly obtain the authoritative kStorageAccessGrantEligible override on its RenderFrameHost without being terminated.

Affected files:

  • chrome/browser/storage_access_api/storage_access_grant_permission_context.cc
  • components/permissions/permission_context_base.cc

Estimated timestamp from git blame: 2025-05-09

Potential Root Cause Analysis

In StorageAccessGrantPermissionContext::RequestPermission (chrome/browser/storage_access_api/storage_access_grant_permission_context.cc), the request is directly passed to the base class implementation:

C++
void StorageAccessGrantPermissionContext::RequestPermission(
    std::unique_ptr<permissions::PermissionRequestData> request_data,
    permissions::BrowserPermissionCallback callback) {
  content::GlobalRenderFrameHostId frame_host_id =
      request_data->id.global_render_frame_host_id();
  ContentSettingPermissionContextBase::RequestPermission(
      std::move(request_data),
      base::BindOnce(
          [](content::GlobalRenderFrameHostId frame_host_id,
             content::PermissionResult permission_result) {
            if (permission_result.status ==
                blink::mojom::PermissionStatus::GRANTED) {
              content::RenderFrameHost* rfh =
                  content::RenderFrameHost::FromID(frame_host_id);
              if (rfh) {
                rfh->SetStorageAccessApiStatus(
                    net::StorageAccessApiStatus::kAccessViaAPI);
              }
            }
            return permission_result;
          }, frame_host_id).Then(std::move(callback)));
}

ContentSettingPermissionContextBase::RequestPermission resolves to PermissionContextBase::RequestPermission (components/permissions/permission_context_base.cc), which checks for pre-existing permission settings:

C++
content::PermissionResult result = GetPermissionStatus(*request_data, rfh);
bool status_ignorable = PermissionUtil::CanPermissionRequestIgnoreStatus(...);
if (!status_ignorable && (result.status == PermissionStatus::GRANTED || ...)) {
  // ...
  NotifyPermissionSet(*request_data, std::move(callback), persist, &result, ...);
  return; // DecidePermission() is never executed
}

Because of this early-return block, the browser-side compromised-renderer validation block located in StorageAccessGrantPermissionContext::DecidePermission is never reached when a pre-existing storage access grant is active.

The validation block in DecidePermission is meant to catch compromised renderers attempting to request storage access from credentialless, opaque, or sandboxed frames:

C++
if (rfh->GetLastCommittedOrigin().opaque() || rfh->IsCredentialless() ||
    rfh->IsNestedWithinFencedFrame() ||
    rfh->IsSandboxed(
        network::mojom::WebSandboxFlags::kStorageAccessByUserActivation) ||
    rfh->GetStorageKey().ForbidsUnpartitionedStorageAccess()) {
  RecordOutcomeSample(RequestOutcome::kDeniedByPrerequisites, ...);
  mojo::ReportBadMessage(
      "requestStorageAccess: Must not be called by a fenced frame, iframe "
      "with an opaque origin, credentialless iframe, or sandboxed iframe");
  // ...
  return;
}

Since this safety block is bypassed, a compromised renderer can successfully trigger rfh->SetStorageAccessApiStatus(net::StorageAccessApiStatus::kAccessViaAPI) on a restricted RenderFrameHost, which installs the authoritative net::CookieSettingOverride::kStorageAccessGrantEligible override on the document.

Potential Impact

For credentialless frames, downstream validation in the network service prevents actual unpartitioned cookie access because the CookiePartitionKey contains a nonce.

However, for a sandboxed iframe with allow-same-origin (but lacking allow-storage-access-by-user-activation), its CookiePartitionKey does not have a nonce. Because RestrictedCookieManager does not have access to the RenderFrameHost and does not check sandbox flags directly, it relies entirely on the document overrides and the partition key. Thus, once the document override is installed via the bypass, the sandboxed frame successfully gains unpartitioned cross-site cookie access, bypassing the sandbox restriction.

Suggested / Potential Steps to Trigger

Note: The following steps are theoretical/potential sequence steps, as our testing tools do not currently have the capability to run code.

  1. Establish a standard, persistent storage-access grant for origin pair (https://embed.com, https://top.com) (e.g., via a standard iframe interaction and accepted prompt).
  2. Load https://top.com which embeds a sandboxed same-origin iframe lacking SAA permission: <iframe sandbox="allow-scripts allow-same-origin" src="https://embed.com">.
  3. Compromise the renderer process hosting the sandboxed iframe.
  4. From the compromised renderer process, bypass Blink's document checks and call the browser's blink.mojom.PermissionService::RequestPermission with PermissionType::STORAGE_ACCESS.
  5. Observe that the request resolves to GRANTED via the pre-existing grant, and rfh->SetStorageAccessApiStatus is executed to apply the kStorageAccessGrantEligible override without terminating the renderer process via mojo::ReportBadMessage.
  6. Verify that the sandboxed frame is now allowed to read/write unpartitioned cross-site cookies of https://embed.com in RestrictedCookieManager.

Suggested Fix

Perform the compromised-renderer safety check in StorageAccessGrantPermissionContext::RequestPermission prior to calling the base class RequestPermission implementation, ensuring that restricted frame contexts are validated and terminated regardless of whether a pre-existing grant exists:

C++
void StorageAccessGrantPermissionContext::RequestPermission(
    std::unique_ptr<permissions::PermissionRequestData> request_data,
    permissions::BrowserPermissionCallback callback) {
  content::RenderFrameHost* rfh = content::RenderFrameHost::FromID(
      request_data->id.global_render_frame_host_id());
  if (rfh && (rfh->GetLastCommittedOrigin().opaque() || rfh->IsCredentialless() ||
              rfh->IsNestedWithinFencedFrame() ||
              rfh->IsSandboxed(
                  network::mojom::WebSandboxFlags::kStorageAccessByUserActivation) ||
              rfh->GetStorageKey().ForbidsUnpartitionedStorageAccess())) {
    mojo::ReportBadMessage(
        "requestStorageAccess: Must not be called by a fenced frame, iframe "
        "with an opaque origin, credentialless iframe, or sandboxed iframe");
    std::move(callback).Run(content::PermissionResult(
        blink::mojom::PermissionStatus::DENIED,
        content::PermissionStatusSource::UNSPECIFIED));
    return;
  }

  content::GlobalRenderFrameHostId frame_host_id =
      request_data->id.global_render_frame_host_id();
  ContentSettingPermissionContextBase::RequestPermission(
      std::move(request_data),
      // ...
  );
}

Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The compromised-renderer validation is placed in DecidePermission, which is not called when a pre-existing grant causes an early return in the base class RequestPermission.

Impact

A compromised renderer could bypass sandbox restrictions to gain unpartitioned cross-site cookie access for a sandboxed iframe, though for credentialless frames downstream validation prevents actual cookie access.

What the attacker needed

Compromised renderer process; pre-existing storage access grant; sandboxed iframe with allow-same-origin

The fix

The compromised-renderer safety check should be performed in RequestPermission before calling the base class implementation, so restricted frame contexts are validated and terminated regardless of pre-existing grants.

How it was found

  1. Establish a standard, persistent storage-access grant for an origin pair.
  2. Load the top-level site which embeds a sandboxed same-origin iframe lacking SAA permission.
  3. Compromise the renderer process hosting the sandboxed iframe.
  4. From the compromised renderer, bypass Blink's document checks and call the browser's PermissionService::RequestPermission with STORAGE_ACCESS.
  5. Observe that the request resolves to GRANTED via the pre-existing grant and the storage access status is set without terminating the renderer.
  6. Verify that the sandboxed frame can now read/write unpartitioned cross-site cookies.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

The Storage Access API lets websites ask the browser for permission to use cookies across sites. The browser has a safety check to stop certain restricted frames (like sandboxed iframes) from getting this access, but if the site already had permission, the check is skipped. A compromised renderer could then get access it should not have, letting a sandboxed frame read and write cookies for another site.

What is Access control?

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.

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.