Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace phantomjs for rendering #213

Open
yukulele opened this issue Apr 11, 2023 · 2 comments
Open

Replace phantomjs for rendering #213

yukulele opened this issue Apr 11, 2023 · 2 comments

Comments

@yukulele
Copy link

phantomjs development is suspended and should be replaced.

Puppeteer is probably a good candidate.

npm install output:

npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: this package is now deprecated
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142

added 91 packages, and audited 294 packages in 48s

19 packages are looking for funding
run npm fund for details

3 vulnerabilities (2 moderate, 1 high)

Some issues need review, and may require choosing
a different dependency.

Run npm audit for details.

npm audit output

# npm audit report

markdown-pdf *
Severity: high
markdown-pdf vulnerable to local file read via server side cross-site scripting (XSS) - GHSA-qghr-877h-f9jh
Depends on vulnerable versions of phantomjs-prebuilt
No fix available
node_modules/markdown-pdf

request *
Severity: moderate
Server-Side Request Forgery in Request - GHSA-p8p7-x288-28g6
No fix available
node_modules/request
phantomjs-prebuilt *
Depends on vulnerable versions of request
node_modules/phantomjs-prebuilt

3 vulnerabilities (2 moderate, 1 high)

Some issues need review, and may require choosing
a different dependency.

@yukulele yukulele changed the title Replace phantomjs for render Replace phantomjs for rendering Apr 11, 2023
@xzhangsir
Copy link

Try using the markdowntopdfjs toolkit

@yukulele
Copy link
Author

yukulele commented Aug 1, 2024

Try using the markdowntopdfjs toolkit

markdowntopdfjs also uses phantomjs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants