CVE catalog

CVE-2019-17221

UBUNTU-

[CVE catalog]

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.

Severity
Unknown
Published
Updated
Source
[NVD] · [CVE record]
EPSS
3.42% · Oct 27, 2026

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Ubuntu20.04phantomjs2.1.1+dfsg-2Affected[UBUNTU-CVE-2019-17221]
Ubuntu20.04phantomjs2.1.1+dfsg-2ubuntu1Affected[UBUNTU-CVE-2019-17221]
Ubuntu18.04phantomjs2.1.1+dfsg-2Affected[UBUNTU-CVE-2019-17221]
Ubuntu16.04phantomjs1.9.0-1Affected[UBUNTU-CVE-2019-17221]
Ubuntu16.04phantomjs2.0.0+dfsg-1Affected[UBUNTU-CVE-2019-17221]
Ubuntu16.04phantomjs2.1.1+dfsg-1Affected[UBUNTU-CVE-2019-17221]
Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
Ubuntu16.04phantomjs1.9.0-1Affected[UBUNTU-CVE-2019-17221]
Ubuntu16.04phantomjs2.0.0+dfsg-1Affected[UBUNTU-CVE-2019-17221]
Ubuntu16.04phantomjs2.1.1+dfsg-1Affected[UBUNTU-CVE-2019-17221]
Ubuntu18.04phantomjs2.1.1+dfsg-2Affected[UBUNTU-CVE-2019-17221]
Ubuntu20.04phantomjs2.1.1+dfsg-2Affected[UBUNTU-CVE-2019-17221]
Ubuntu20.04phantomjs2.1.1+dfsg-2ubuntu1Affected[UBUNTU-CVE-2019-17221]
Original provider fields
{
  "package_releases": [],
  "fixed_versions": [],
  "distribution_packages": [
    {
      "name": "phantomjs",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "16.04",
      "versions": [
        "1.9.0-1",
        "2.0.0+dfsg-1",
        "2.1.1+dfsg-1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2019-17221",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2019-17221",
      "provider_updated_at": "2025-10-24T04:47:55Z"
    },
    {
      "name": "phantomjs",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "18.04",
      "versions": [
        "2.1.1+dfsg-2"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2019-17221",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2019-17221",
      "provider_updated_at": "2025-10-24T04:47:55Z"
    },
    {
      "name": "phantomjs",
      "distro": "ubuntu",
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            }
          ]
        }
      ],
      "release": "20.04",
      "versions": [
        "2.1.1+dfsg-2",
        "2.1.1+dfsg-2ubuntu1"
      ],
      "ecosystem": "deb",
      "provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2019-17221",
      "fixed_version": "",
      "provider_source": "pypi",
      "provider_record_id": "UBUNTU-CVE-2019-17221",
      "provider_updated_at": "2025-10-24T04:47:55Z"
    }
  ]
}

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

Observed:

References