Unauthorized File Access Affecting phantomjs package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
14.39% (95th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DOTNET-PHANTOMJS-15046284
  • published21 Jan 2026
  • disclosed5 Nov 2019
  • creditUnknown

Introduced: 5 Nov 2019

CVE-2019-17221  (opens in a new tab)
CWE-552  (opens in a new tab)

How to fix?

There is no fixed version for PhantomJS.

Overview

PhantomJS is a headless WebKit scriptable with a JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.

Affected versions of this package are vulnerable to Unauthorized File Access. 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.

References

CVSS Base Scores

version 3.1