🛡️ CVE-2019-17221 — phantomjs
Description
PhantomJS 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.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.
Weakness class
CVE-2019-17221 is classified as CWE-552: Files or Directories Accessible to External Parties. Files intended to stay internal are reachable from outside the application.
Affected software
CVE-2019-17221 is recorded against 1 package.
- phantomjs
Timeline and source
Published on 24 May 2022 and last revised on 8 November 2023. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
github.com (Package)
web.archive.org (Web)
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| phantomjs | — | — |
References
Similar Threats
- Unknown MAL-2025-29114
- Unknown RHSA-2017:2674
- Unknown RHSA-2018:1263
- Unknown UBUNTU-CVE-2022-25299
More CVE 2019 advisories
Browse all of CVE 2019 in the advisory index.
Site Security Check
Is phantomjs part of your stack?
CVE-2019-17221 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.