Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. phantom
  4. ›
  5. CVE-2019-17221

CVE-2019-17221: Files or Directories Accessible to External Parties

November 5, 2019 (updated November 8, 2019)

PhantomJS 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2019-17221

Code Behaviors & Features

Detect and mitigate CVE-2019-17221 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.1.1

Fixed versions

  • 2.1.2

Solution

Upgrade to version 2.1.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-552: Files or Directories Accessible to External Parties

Source file

npm/phantom/CVE-2019-17221.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:23 +0000.