---
title: "GHSA-c2gp-86p4-5935: Use-After-Free in puppeteer"
description: "Moderate severity. Use-After-Free in puppeteer. Affects puppeteer; fixed in 1.13.0."
url: https://inlinr.com/advisories/GHSA-c2gp-86p4-5935
lang: en
---

[Packages](https://inlinr.com/packages) / [puppeteer](https://inlinr.com/packages/puppeteer) / [Security](https://inlinr.com/packages/puppeteer/security)

Moderate Vulnerability GHSA-c2gp-86p4-5935 CVE-2019-5786 Published 2 Sep 2020

# Use-After-Free in puppeteer

Your version 

Affected releases · [puppeteer](https://inlinr.com/packages/puppeteer)

- 1.x 1.0.0 – 1.12.2 Fixed in 1.13.0
- 0.13.x and older 0.0.0 – 0.13.0 No fix, no longer updated

On 1.x, the newest line:

```
npm install puppeteer@1.13.0
```

Every release on a timeline

25.x 

1. Not affected

25.0.0 – 25.16.0  
22 releases, latest

1.x 

1. Affected

1.0.0 – 1.12.2  
18 releases
2. Fixed

1.13.0 – 1.20.0  
9 releases

0.x 

1. Affected

0.0.0 – 0.13.0  
8 releases

374 stable releases of puppeteer, oldest to newest, one row per major.

## What happens

Versions of `puppeteer` prior to 1.13.0 are vulnerable to the Use-After-Free vulnerability in Chromium (CVE-2019-5786). The Chromium FileReader API is vulnerable to Use-After-Free which may lead to Remote Code Execution.

Recommendation

Upgrade to version 1.13.0 or later.

## How it is exploited

Exploitable over the network, with no account and a user to do something.

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: high

CVSS:3.0/​AV:N/​AC:L/​PR:N/​UI:R/​S:U/​C:N/​I:N/​A:H

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2019-5786 "https://nvd.nist.gov/vuln/detail/CVE-2019-5786")  
nvd.nist.gov/vuln/detail/CVE-2019-5786
- [Issue](https://github.com/GoogleChrome/puppeteer/issues/4141 "https://github.com/GoogleChrome/puppeteer/issues/4141")  
#4141
- [Reference](https://blog.exodusintel.com/2019/03/20/cve-2019-5786-analysis-and-exploitation "https://blog.exodusintel.com/2019/03/20/cve-2019-5786-analysis-and-exploitation")  
blog.exodusintel.com/2019/03/20/cve-2019-5786-a…
- [Reference](https://chromereleases.googleblog.com/2019/03/stable-channel-update-for-desktop.html "https://chromereleases.googleblog.com/2019/03/stable-channel-update-for-desktop.html")  
chromereleases.googleblog.com/2019/03/stable-ch…
- [Reference](https://crbug.com/936448 "https://crbug.com/936448")  
crbug.com/936448
- [Package](https://github.com/GoogleChrome/puppeteer "https://github.com/GoogleChrome/puppeteer")  
github.com/GoogleChrome/puppeteer
- [Reference](https://snyk.io/vuln/SNYK-JS-PUPPETEER-174321 "https://snyk.io/vuln/SNYK-JS-PUPPETEER-174321")  
snyk.io/vuln/SNYK-JS-PUPPETEER-174321
- [Reference](https://www.npmjs.com/advisories/824 "https://www.npmjs.com/advisories/824")  
npmjs.com/advisories/824
