Skip to content
Info disclosure Advisory Advanced CVE-2026-11288

Policy bypass in CSS (CVE-2026-11288)

Blink fails to enforce the EXIF-orientation privacy clamp for cross-origin images used in CSS cross-fade(), allowing an attacker to deduce the image's orientation metadata via rendering side-channels. The clamp is bypassed because StyleCrossfadeImage does not override ForceOrientationIfNecessary and the first cross-faded image is drawn unrotated.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 51 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 without the Chrome Security team.

Overview: Blink fails to properly enforce EXIF-orientation privacy clamps for cross-origin images when they are used within a CSS cross-fade() function. StyleCrossfadeImage does not override ForceOrientationIfNecessary, and an underlying graphics layer hardcodes the first cross-faded image to draw unrotated, allowing an attacker to deduce the image's orientation metadata via rendering side-channels.

Affected files:

  • third_party/blink/renderer/core/style/style_crossfade_image.h
  • third_party/blink/renderer/platform/graphics/crossfade_generated_image.cc
  • third_party/blink/renderer/core/style/style_crossfade_image.cc
  • third_party/blink/renderer/core/style/style_image.h
  • third_party/blink/renderer/core/paint/box_painter_base.cc
  • third_party/blink/renderer/core/style/style_fetched_image.cc
  • third_party/blink/renderer/core/animation/css_image_interpolation_type.cc

Estimated timestamp from git blame: 2023-12-13

Summary

A potential vulnerability in Blink's handling of the CSS cross-fade() function allows a cross-origin image to bypass the EXIF-orientation privacy clamp. This clamp is designed to prevent the leakage of private metadata (specifically, the 3-bit EXIF orientation tag) from images loaded without CORS. By using cross-fade(), an attacker can force an opaque cross-origin image to render without its orientation transform applied. Because the layout box is sized according to the oriented dimensions, the unrotated image is drawn stretched or squashed. This distortion can be programmatically detected via rendering side-channels, leaking the orientation metadata.

Technical Details

To prevent cross-origin metadata leakage, Blink enforces that opaque cross-origin images must always be drawn respecting their EXIF orientation, regardless of user-provided CSS like image-orientation: none. This is implemented in StyleFetchedImage::ForceOrientationIfNecessary() (third_party/blink/renderer/core/style/style_fetched_image.cc:258), which overrides the virtual method from StyleImage.

During the paint preparation phase, BoxPainterBase::FillLayerInfo calls image->ForceOrientationIfNecessary() to apply this security clamp. However, when the background image is a cross-fade(), the image pointer refers to a StyleCrossfadeImage.

StyleCrossfadeImage (third_party/blink/renderer/core/style/style_crossfade_image.h) fails to override ForceOrientationIfNecessary(). Consequently, it inherits the default implementation from StyleImage, which simply returns the input value without performing the critical cross-origin access check. The security clamp is completely bypassed for the constituent images of the cross-fade.

Furthermore, when the actual rendering occurs, CrossfadeGeneratedImage::DrawCrossfade() (third_party/blink/renderer/platform/graphics/crossfade_generated_image.cc:38) iterates over the images to be blended. For the very first image (index 0), the code explicitly hardcodes image_draw_options.respect_orientation = kDoNotRespectImageOrientation; (noted as a TODO from crbug.com/472634).

Because StyleCrossfadeImage::ImageSize() explicitly calculates the layout dimensions using kRespectImageOrientation, the destination paint rectangle is sized for the rotated image. When DrawCrossfade() subsequently draws the first image unrotated, the raw bitmap pixels are stretched or squashed to fit the rotated bounding box.

Potential Attack Steps

Note: These are potential steps based on code analysis; a full PoC has not been executed.

  1. Host a non-square JPEG with an EXIF orientation tag (e.g., 90° CW) on https://victim.example/p.jpg without CORS headers.

  2. On an attacker origin, apply the following CSS to an element:

    CSS
    .bypass {
      background-image: cross-fade(url(https://victim.example/p.jpg), transparent, 0%);
    }
    
  3. Because the cross-origin image is the first argument, DrawCrossfade() will draw it unrotated into a bounding box sized for the rotated dimensions, resulting in a distorted (stretched/squashed) rendering.

  4. The attacker can then use programmatic extraction via standard pixel-based rendering side channels (such as SVG filter timing or mix-blend-mode compositing oracles) to detect the distortion pattern. This reveals the original EXIF orientation of the opaque response.

Suggested Fix

  1. Override ForceOrientationIfNecessary: StyleCrossfadeImage must override ForceOrientationIfNecessary. The implementation should iterate through its constituent images (similar to StyleCrossfadeImage::KnownToBeOpaque). If any constituent image requires forcing orientation (i.e., returns kRespectImageOrientation when called with kDoNotRespectImageOrientation), the StyleCrossfadeImage must return kRespectImageOrientation.
  2. Fix DrawCrossfade: Remove the hardcoded kDoNotRespectImageOrientation for the first image in CrossfadeGeneratedImage::DrawCrossfade(). The method should respect the draw_options.respect_orientation passed into it by the caller for all images in the cross-fade.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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

Impact

An attacker could deduce the EXIF orientation metadata of a cross-origin image, but a full proof of concept has not been executed.

What the attacker needed

Victim hosts image without CORS; attacker can serve CSS; browser uses Blink

The fix

StyleCrossfadeImage should override ForceOrientationIfNecessary to check constituent images, and DrawCrossfade should respect the orientation option for all images.

How it was found

  1. Host a non-square JPEG with an EXIF orientation tag on a server without CORS headers.
  2. On an attacker origin, apply CSS using cross-fade() with the cross-origin image as the first argument.
  3. The cross-origin image is drawn unrotated into a bounding box sized for the rotated dimensions, causing distortion.
  4. Use pixel-based rendering side channels to detect the distortion and infer the EXIF orientation.

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.

When you load an image from another website, your browser hides some private details like the photo's rotation tag to stop the other site learning about it. This report found a way to make the browser forget to hide that tag when the image is used in a special CSS effect called cross-fade, so the other site could work out the rotation. The attack is theoretical and no working proof was built.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.