CVE-2019-17221
HIGH 7.5CVSS 3.1PhantomJS Arbitrary File Read
PhantomJS through 2.1.1 has an arbitrary file read vulnerability, as demonstrated by an XMLHttpRequest for a file:// URI. The vulnerability exists in the page.open() function of the webpage module, which loads a specified URL and calls a given callback. An attacker can supply a specially crafted HTML file, as user input, that allows reading arbitrary files on the filesystem. For example, if page.render() is the function callback, this generates a PDF or an image of the targeted file. NOTE: this product is no longer developed.
- Published
- 5 Nov 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-552
- Also known as
- GHSA-x43g-gj9x-838x
- Sources
- NVDJSONOSV GHSA-x43g-gj9x-838xJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | phantomjs | phantomjscpe:2.3:a:phantomjs:phantomjs:*:*:*:*:*:*:*:* |
<= 2.1.1 | |
| OSV | npm | phantomjs | <= 2.1.1 |
References
- https://www.darkmatter.ae/blogs/breaching-the-perimeter-phantomjs-arbitrary-file-read/ · Exploit, Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2019-17221 · ADVISORY
- https://github.com/Medium/phantomjs · PACKAGE
- https://web.archive.org/web/20191220171022/https://www.darkmatter.ae/blogs/breaching-the-perimeter-phantomjs-arbitrary-file-read · WEB
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 5 Nov 2019)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 May 2022)