GHSA-vpq5-4rc8-c222 Denial of Service in canvas
An attacker can crash the Node.js process by sending malicious JPEG or GIF images to applications using the canvas library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-vpq5-4rc8-c222?
GHSA-vpq5-4rc8-c222 is a denial of service vulnerability in canvas, published on 5 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Versions of canvas prior to 1.6.10 are vulnerable to Denial of Service. Processing malicious JPEGs or GIFs could crash the node process.
Recommendation
Upgrade to version 1.6.10
Which versions are affected by GHSA-vpq5-4rc8-c222?
2 open source packages ship an affected version, including canvas.
| Package | Affected | Fixed in |
|---|---|---|
canvas npm | All versions | 1.6.10 |
canvas npm | All versions | 1.6.10 |
How do I fix GHSA-vpq5-4rc8-c222?
Upgrade canvas to 1.6.10 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is GHSA-vpq5-4rc8-c222 being exploited?
There is no known exploitation of GHSA-vpq5-4rc8-c222 in the wild and no public exploit code.