Thomas Karpiniek found that deleting sensitive information in compromised WebP images creates a forensic risk without easy mitigation. In the case of JPEG, compression artifacts of deleted content are limited to blocks of 8x8 pixels, but WebP's VP8 codec spreads those artifacts throughout the image.

Karpiniek examines this behavior using an artificial example. He created two JPEG images at quality 50—one containing the words "YES" and the other "NO." He then draws a black redaction box around the glyphs, extending just 2 pixels outside of them, and saves the results as a lossless PNG. When viewing the pixel-wise difference of the two redacted images by a factor of 20, artifacts are visible only in bands just above and below the redaction box—confirming the familiar 8-pixel limit rule for JPEG.

Repeating the test using the affected WebP yielded completely different results. The enhanced contrast between the redacted "YES" and "NO" images shows changes throughout the frame, including the unchanged heading and footer text far from the redaction box.

Karpiniek wrote, "There is no obvious way to enforce redactions that would prevent information leaks." He cautions that image forensics is not his specialty and that recovering original content from any redaction may not be easy. However, it is advised not to use any compromised WebP source material when redacting and sharing sensitive images.

This finding is important because WebP has become a default format for web images, supported by all major browsers, and is increasingly used on platforms that automatically convert uploaded files. Users redacting screenshots or documents in WebP format may think they've hidden sensitive information, when compression actually spreads traces of that information throughout the file.

Karpiniak's blog post includes test images and procedures for verification. This research adds to a growing body of work on format-specific redaction risks, including similar problems documented in PDF redaction and video keyframe leakage.