{"answers":{"affected":"2 open source packages ship an affected version, including phantomjs. It affects 1 product.","exploited":"There is no known exploitation of CVE-2019-17221 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2019-17221 yet. Limit exposure of the affected software until one is available.","what":"CVE-2019-17221 is a high-severity path traversal vulnerability in n/a, published on 5 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2019-17221 and fix it if it is affected.\n\nWhat it is: CVE-2019-17221 is a high-severity path traversal vulnerability in n/a, published on 5 Nov 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2019-17221 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- phantomjs (npm): affected all versions up to 2.1.1; no fix listed\n- phantomjs (npm): affected all versions up to 2.1.1; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-17221/ (Markdown: https://insights.sbomify.com/CVE-2019-17221/index.md)","id":"CVE-2019-17221","markdown":"https://insights.sbomify.com/CVE-2019-17221/index.md","name":"CVE-2019-17221","record":{"aliases":["GHSA-x43g-gj9x-838x","UBUNTU-CVE-2019-17221"],"analysis":{"component_type":"library","fix_type":"end_of_life","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"PhantomJS headless browser","requires_auth":"none","summary":"An attacker can read arbitrary files on the filesystem by supplying a crafted HTML file to PhantomJS, which is no longer maintained.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"phantomjs","vendor":"phantomjs"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2020-01-16","github_poc":1,"max_poc_stars":8,"metasploit":0,"nuclei":0,"refs":[{"date":"2020-01-16T18:07:07Z","kind":"github_poc","ref":"https://github.com/h4ckologic/CVE-2019-17221","stars":8,"title":"PhantomJS uses internal module: webpage, to open, close, render, and perform multiple actions on webpages, which suffers from an arbitrary file read vulnerability. The vulnerability exists in the page.open() function of the webpage module, which loads the specified URL and calls a given callback. When opening a HTML file, an attacker can supply specially crafted file content, which allows reading arbitrary files on the filesystem. The vulnerability is demonstrated by using page.render() as the function callback, resulting in the generation of a PDF or an image of the targeted file."}],"tier":"poc_unverified"},"has_fix":false,"headline":"PhantomJS Arbitrary File Read","id":"CVE-2019-17221","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"path_traversal","year":"2019"},"n_packages":2,"n_references":1,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2019-17222"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.1.1"],"package":"phantomjs","purl":null,"source":"GHSA-x43g-gj9x-838x"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.1.1"],"package":"phantomjs","purl":"pkg:npm/phantomjs","source":"GHSA-x43g-gj9x-838x"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2019-17220"},"products":["n/a"],"published":"2019-11-05","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"An attacker can read arbitrary files on the filesystem by supplying a crafted HTML file to PhantomJS, which is no longer maintained.","url":"https://insights.sbomify.com/CVE-2019-17221/"}