Skip to content
UI spoofing Advisory Advanced CVE-2026-14013

Inappropriate implementation in SVG (CVE-2026-14013)

A logic flaw in Chromium's SVG hit-testing means that a nested SVG with overflow hidden rejects occlusion queries outside its viewport, even when a visual filter paints opaque pixels there. An attacker could use this to cover a permission prompt with a decoy while the browser still believes the prompt is visible, enabling clickjacking.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 35 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 logic flaw in LayoutSVGViewportContainer::NodeAtPoint allows attackers to bypass clickjacking defenses such as IntersectionObserver V2 and Page-Embedded Permission Control (PEPC). When overflow: hidden is active on a nested SVG, hit-test queries outside its viewport are rejected without verifying if they seek visual overflow. Consequently, opaque visual overflow (e.g., from a CSS drop-shadow filter) can obscure target elements while remaining completely invisible to the browser's occlusion tests.

Affected files:

  • third_party/blink/renderer/core/layout/svg/layout_svg_viewport_container.cc

Estimated timestamp from git blame: 2018-09-28

Potential Clickjacking Bypass via Nested SVG Viewport Container

Description of the Issue

In Chromium's rendering engine (Blink), elements that implement click-gating protections (like the Page-Embedded Permission Control / PEPC elements or IntersectionObserver V2 visibility tracking) utilize occlusion hit-testing to verify that they are not covered by any opaque overlays. This occlusion checking is done via LayoutObject::HitTestForOcclusion (third_party/blink/renderer/core/layout/layout_object.cc), which populates the HitTestRequest with the HitTestRequest::kHitTestVisualOverflow flag.

However, there is a potential logic flaw in how nested SVGs handle hit-testing queries. In third_party/blink/renderer/core/layout/svg/layout_svg_viewport_container.cc, LayoutSVGViewportContainer::NodeAtPoint immediately returns false if overflow: hidden is active on the element and the hit-test location is outside its layout viewport_ rectangle:

C++
bool LayoutSVGViewportContainer::NodeAtPoint(
    HitTestResult& result,
    const HitTestLocation& hit_test_location,
    const PhysicalOffset& accumulated_offset,
    HitTestPhase phase) {
  NOT_DESTROYED();
  // Respect the viewport clip which is in parent coordinates.
  if (SVGLayoutSupport::IsOverflowHidden(*this)) {
    TransformedHitTestLocation local_transformed_hit_location(
        hit_test_location, LocalSVGTransform());

    if (!local_transformed_hit_location ||
        !local_transformed_hit_location->Intersects(viewport_)) {
      return false;
    }
  }
  return LayoutSVGTransformableContainer::NodeAtPoint(
      result, hit_test_location, accumulated_offset, phase);
}

Unlike other layout elements (such as those checked in BoxFragmentPainter::NodeAtPoint), this function fails to check if the incoming HitTestRequest specifies IsHitTestVisualOverflow(). This omission enables visual overflow, such as a CSS filter: drop-shadow, to paint opaque, attacker-controlled pixels outside of the viewport boundary, obscuring a target element while keeping the target visible and active from the browser's occlusion hit-testing perspective.

Potential Step-by-Step Attack Scenario

Since our tooling does not currently have the capability to run code, the following sequence represents a potential/suggested scenario to trigger the issue:

  1. Setup Target: A sensitive target (such as a <permission type="camera"> element) is placed at coordinates (0,0,200,40) and initiates its clickjacking visibility monitoring via IntersectionObserver and HTMLCapabilityElementBase.
  2. Deploy Nested SVG Overlay: An attacker overlays a nested <svg> container (SVGViewportContainerElement) positioned at x="500" y="0" width="200" height="40" with default overflow: hidden properties.
  3. Apply Visual Filter: The nested SVG container is styled with visibility: visible and filter: drop-shadow(-500px 0 0 black). This renders an opaque copy of the SVG content at offset (0, 0, 200, 40), visually masking the target element under a black box.
  4. Occlusion Check Omission: The browser performs HitTestForOcclusion at the target coordinate (0, 0). When the traversal reaches the nested SVG, LayoutSVGViewportContainer::NodeAtPoint rejects the hit-test coordinate early because (0,0) does not intersect its parent layout viewport_ (500, 0, 200, 40).
  5. State Exploitation: The target element erroneously concludes it is fully visible and clickable. A user clicking the decoy black box instead registers a click on the sensitive permission element, potentially granting camera access.

Suggested Fix

To resolve this issue, LayoutSVGViewportContainer::NodeAtPoint should check if the hit-test request targets visual overflow. If IsHitTestVisualOverflow() is active, the early return for out-of-viewport locations should be bypassed, allowing the hit-test engine to evaluate child and visual filter bounds correctly:

C++
  // Respect the viewport clip which is in parent coordinates.
  if (SVGLayoutSupport::IsOverflowHidden(*this) &&
      !result.GetHitTestRequest().IsHitTestVisualOverflow()) {
    TransformedHitTestLocation local_transformed_hit_location(
        hit_test_location, LocalSVGTransform());

    if (!local_transformed_hit_location ||
        !local_transformed_hit_location->Intersects(viewport_)) {
      return false;
    }
  }

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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

Likely, the SVG viewport container's hit-test function returns early for points outside its viewport when overflow is hidden, without checking whether the query is for visual overflow, so painted overflow from filters is ignored.

Impact

An attacker could trick a user into clicking a permission prompt, potentially granting camera access, though the report describes this as a potential scenario without a working exploit.

What the attacker needed

Victim uses a Chromium-based browser; attacker can place SVG content on a page; victim interacts with the decoy

The fix

The hit-test function should skip the early return when the request is for visual overflow, so filter bounds are evaluated; the report suggests this change but does not say it was applied.

How it was found

  1. Place a sensitive permission element at a target position and start its visibility monitoring.
  2. Overlay a nested SVG container at a different position with overflow hidden.
  3. Apply a drop-shadow filter to the SVG so it paints an opaque box over the target.
  4. The browser's occlusion check rejects the hit-test at the target because it falls outside the SVG's viewport.
  5. The target believes it is visible, and a click on the decoy reaches the permission element.

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.

Some browser features, like permission prompts, check whether they are covered by another element before accepting a click. This report describes a case where a specially styled SVG image can visually cover the prompt but the browser's check does not notice the cover. That could let an attacker trick a user into clicking the prompt.

What is UI spoofing?

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.

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.