Security

Web pages could read pictures from other sites through a canvas

KSA-2026-0063

Status
Fixed, update coming
Severity
Medium
Affected versions
No released version (development code after 0.2.6)
Fixed in
0.2.28 (PR #227)
Published
2026-11-23
Updated
2026-11-23

Summary

A page could draw a picture from another site into a canvas and then read its pixels back with getImageData or toDataURL, even when that site did not allow it. Pictures that only you can see, because you are signed in, could leak to the page.

A canvas now becomes tainted when a picture from another site without CORS approval is drawn into it, and reading it back (getImageData, toDataURL, toBlob and WebGL uploads) is refused.

This was found and fixed before it reached a released version. In 0.2.6 and earlier the browser had no working canvas.

Credit

Brent Gordon