Skip to content

[Snyk] Security upgrade puppeteer from 24.43.1 to 25.0.2#26

Open
m-mohamedin wants to merge 1 commit into
devfrom
snyk-fix-60f10f64b95036a11349c57253ccdfe7
Open

[Snyk] Security upgrade puppeteer from 24.43.1 to 25.0.2#26
m-mohamedin wants to merge 1 commit into
devfrom
snyk-fix-60f10f64b95036a11349c57253ccdfe7

Conversation

@m-mohamedin

Copy link
Copy Markdown
Contributor

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json

Vulnerabilities that will be fixed with an upgrade:

Issue
high severity Directory Traversal
SNYK-JS-EXTRACTZIP-17660777

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Directory Traversal

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-EXTRACTZIP-17660777
@m-mohamedin

Copy link
Copy Markdown
Contributor Author

Merge Risk: High

The upgrade from Puppeteer v24 to v25 is a major version with significant breaking changes that require developer action.

Key Breaking Changes:

  • ESM Only: Puppeteer and its related packages are now ESM-only. This means you must update your import statements from const puppeteer = require('puppeteer') to import puppeteer from 'puppeteer'. Your project may need to be configured to handle ESM modules (e.g., by setting "type": "module" in your package.json).

  • Node.js Version: The minimum required Node.js version has been increased to v20.19+. Projects running on older Node.js versions will fail.

  • API Removals & Changes:

    • Several deprecated methods have been removed, including Puppeteer.product, MouseOptions.clickCount, and Browser.isConnected().
    • executablePath() and defaultArgs() now return a Promise and must be awaited.
    • Header handling has changed: newline-separated headers are now normalized to a comma-separated format.

Recommendation:
This upgrade requires significant code and environment changes. Before merging, you must:

  1. Update your import syntax to ESM (import).
  2. Ensure your environment is running Node.js v20.19 or newer.
  3. Review your codebase for usage of the removed APIs (.product, .clickCount, .isConnected()) and update calls to executablePath() and defaultArgs() to use await.

Source: Puppeteer Changelog

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

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

Successfully merging this pull request may close these issues.

2 participants