Intel

AIKIDO-2024-10522

canvas is vulnerable to Use-After-Free

Use-After-Free Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 9, 2024

19

Low Risk

This Affects:

JScanvas
2.0.0 - 2.11.2
Fixed in 3.0.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a use-after-free issue when initializing canvases with an invalid surface. Additionally, a potential memory leak exists while loading SVGs. These vulnerabilities can lead to crashes and system outages, making the package susceptible to Denial of Service (DoS) attacks by malicious actors.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

canvas is vulnerable to Use-After-Free in versions 2.0.0 - 2.11.2.

How to fix this

Upgrade the canvas library to the patch version.