Skip to content

[Snyk] Security upgrade gatsby from 5.14.0 to 5.14.2 #47

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

St0nersdash
Copy link
Owner

snyk-top-banner

Snyk has created this PR to fix 2 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • package.json
  • yarn.lock

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Cross-site Scripting (XSS)
SNYK-JS-SERIALIZEJAVASCRIPT-6147607
  626  
medium severity Cross-site Scripting (XSS)
SNYK-JS-WEBPACK-7840298
  616  

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:

🦉 Cross-site Scripting (XSS)

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @St0nersdash, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

This pull request updates the gatsby dependency from version 5.14.0 to 5.14.2. This upgrade addresses two medium severity Cross-site Scripting (XSS) vulnerabilities: SNYK-JS-SERIALIZEJAVASCRIPT-6147607 and SNYK-JS-WEBPACK-7840298. The changes involve modifications to package.json to update the gatsby version and yarn.lock to reflect the updated dependencies and their resolved versions.

Highlights

  • Security Upgrade: The primary intent of this PR is to address two XSS vulnerabilities by upgrading the gatsby dependency.
  • Dependency Update: The gatsby package is updated from version 5.14.0 to 5.14.2 in package.json.
  • Yarn Lock Update: The yarn.lock file is updated to reflect the changes in dependencies, including version updates for @webassemblyjs packages, gatsby-graphiql-explorer, gatsby-link, webpack, terser-webpack-plugin and others.

Changelog

  • package.json
    • Upgraded gatsby dependency from 5.14.0 to 5.14.2 to address security vulnerabilities.
  • yarn.lock
    • Updated dependencies to align with the gatsby version upgrade.
    • Removed older versions of several packages, including @types/eslint-scope, @types/estree, @webassemblyjs/ast, @webassemblyjs/floating-point-hex-parser, @webassemblyjs/helper-api-error, @webassemblyjs/helper-buffer, @webassemblyjs/helper-numbers, @webassemblyjs/helper-wasm-bytecode, @webassemblyjs/helper-wasm-section, @webassemblyjs/ieee754, @webassemblyjs/leb128, @webassemblyjs/utf8, @webassemblyjs/wasm-edit, @webassemblyjs/wasm-gen, @webassemblyjs/wasm-opt, @webassemblyjs/wasm-parser, @webassemblyjs/wast-printer, acorn-import-assertions, browserslist, schema-utils, terser-webpack-plugin, terser, and watchpack.
    • Updated gatsby-graphiql-explorer from 3.14.0 to 3.14.1 (lines 7721-7724 and 7577-7580).
    • Updated gatsby-link from 5.14.0 to 5.14.1 (lines 7734-7737 and 7590-7593).
    • Updated webpack from 5.88.1 to ~5.98.0 (lines 8265 and 8121).
    • Updated terser-webpack-plugin from 5.3.7 to 5.3.10 (lines 14130-14133 and 13977-13979).
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


A lockfile's complex,
Dependencies it protects,
Upgrading with care,
Mitigating despair,
Security now reflects.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/[email protected] None 0 6.49 kB types
npm/@types/[email protected]3.7.7 None 0 6.27 kB types
npm/@types/[email protected]1.0.6 None 0 25.8 kB types
npm/@webassemblyjs/[email protected]1.14.1 None 0 207 kB xtuc
npm/@webassemblyjs/[email protected]1.14.1 None +1 172 kB xtuc
npm/[email protected] None 0 46.5 kB darrachequesne
npm/[email protected]3.14.1 None 0 2.73 MB pieh
npm/[email protected]5.14.1 None 0 98 kB pieh
npm/[email protected]5.14.2 None 0 6.99 MB daniellewgatsby, fk, kathmbeck, ...4 more
npm/[email protected]2.4.2 None 0 56.4 kB evilebottnawi
npm/[email protected]5.98.0 None +2 5.56 MB thelarkinn

🚮 Removed packages: npm/[email protected]

View full report↗︎

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the gatsby dependency from version 5.14.0 to 5.14.2 to address two medium severity XSS vulnerabilities. The changes include updates to package.json and yarn.lock. Overall, the update seems straightforward and necessary for security.

Summary of Findings

  • Dependency Upgrade: The pull request upgrades the gatsby dependency to address XSS vulnerabilities. This is a positive change for the project's security.
  • Yarn Lock File Changes: The yarn.lock file has significant changes due to the dependency update. It's important to ensure these changes don't introduce any unexpected issues or conflicts.

Merge Readiness

The pull request appears to be a straightforward dependency upgrade to address security vulnerabilities. Given the medium severity of the vulnerabilities being addressed, it is recommended to merge this pull request after verifying that the changes in yarn.lock do not introduce any unexpected issues or conflicts. I am unable to approve this pull request, and recommend that others review and approve this code before merging.

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