Skip to content

[Snyk] Fix for 3 vulnerabilities#11894

Open
q1blue wants to merge 1 commit intomasterfrom
snyk-fix-ac0edd3987e8eaf64119f1989dd206c5
Open

[Snyk] Fix for 3 vulnerabilities#11894
q1blue wants to merge 1 commit intomasterfrom
snyk-fix-ac0edd3987e8eaf64119f1989dd206c5

Conversation

@q1blue
Copy link
Collaborator

@q1blue q1blue commented Feb 8, 2026

snyk-top-banner

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

Snyk changed the following file(s):

  • plugins/graphql-backend/package.json

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.

⚠️ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-APOLLOSERVER-15208673
  125  
low severity Server-side Request Forgery (SSRF)
SNYK-JS-WEBPACK-15235959
  84  
low severity Server-side Request Forgery (SSRF)
SNYK-JS-WEBPACK-15235969
  84  

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:

🦉 Regular Expression Denial of Service (ReDoS)
🦉 Server-side Request Forgery (SSRF)


EntelligenceAI PR Summary

Updates GraphQL backend plugin dependencies with major Apollo Server upgrade and pinned Backstage internal dependencies.

  • Apollo Server upgraded from v4.0.0 to v5.4.0 (major version bump with potential breaking changes)
  • @backstage/backend-common pinned to version 0.24.1
  • @backstage/config pinned to version 0.1.1
  • @backstage/plugin-catalog-graphql pinned to version 0.1.1
  • Replaced workspace protocol references with specific version numbers for consistency

@codesandbox
Copy link

codesandbox bot commented Feb 8, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@gemini-code-assist
Copy link

Summary of Changes

Hello @q1blue, 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!

This pull request, automatically generated by Snyk, aims to enhance the security posture of the project by resolving three identified vulnerabilities within its yarn dependencies. The changes involve targeted upgrades of key packages in the plugins/graphql-backend module, directly addressing known security risks and improving overall application resilience.

Highlights

  • Vulnerability Fixes: This pull request addresses three security vulnerabilities: one high-severity Regular Expression Denial of Service (ReDoS) in apollo-server (SNYK-JS-APOLLOSERVER-15208673) and two low-severity Server-side Request Forgery (SSRF) issues related to webpack (SNYK-JS-WEBPACK-15235959, SNYK-JS-WEBPACK-15235969).
  • Dependency Upgrades: To mitigate these vulnerabilities, several dependencies in plugins/graphql-backend/package.json have been upgraded. Specifically, @apollo/server was updated from ^4.0.0 to ^5.4.0, and @backstage/backend-common, @backstage/config, and @backstage/plugin-catalog-graphql were updated from workspace:^ to specific versions 0.24.1, 0.1.1, and 0.1.1 respectively.
  • Manual yarn.lock Update Required: A warning indicates that the yarn.lock file was not automatically updated and requires manual intervention before merging, especially for users of Yarn's zero-installs feature, to ensure cache consistency.
Changelog
  • plugins/graphql-backend/package.json
    • Updated @apollo/server dependency from ^4.0.0 to ^5.4.0.
    • Updated @backstage/backend-common dependency from workspace:^ to 0.24.1.
    • Updated @backstage/config dependency from workspace:^ to 0.1.1.
    • Updated @backstage/plugin-catalog-graphql dependency from workspace:^ to 0.1.1.
Activity
  • This pull request was automatically created by Snyk to provide fixes for identified vulnerabilities.
  • The Snyk bot has indicated that the yarn.lock file failed to update and requires manual intervention.
  • The PR description includes links to Snyk's vulnerability reports and learning resources for the identified issues.
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 by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

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 pull request 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 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. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

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.

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.

@snyk-io
Copy link

snyk-io bot commented Feb 8, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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 from Snyk to fix vulnerabilities has some critical issues. The update to @apollo/server is a major version bump and may require code changes to handle breaking changes. More importantly, other dependency changes break the monorepo structure by replacing workspace: specifiers with pinned versions, some of which are significant downgrades. This will likely break the application. I've provided suggestions to revert the problematic dependency changes. Finally, remember to manually update the yarn.lock file as Snyk failed to do so.

Comment on lines +37 to +39
"@backstage/backend-common": "0.24.1",
"@backstage/config": "0.1.1",
"@backstage/plugin-catalog-graphql": "0.1.1",

Choose a reason for hiding this comment

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

critical

Replacing workspace:^ with pinned versions breaks the monorepo structure. This change is particularly problematic as it appears to be downgrading @backstage/config (from 1.0.8 to 0.1.1) and @backstage/plugin-catalog-graphql (from 0.3.22 to 0.1.1). This will likely lead to build failures or runtime errors.

It's recommended to keep the workspace:^ specifier to ensure local packages are used. To fix the vulnerabilities, the dependencies within the respective workspace packages should be updated, and then yarn install should be run to update the yarn.lock file.

    "@backstage/backend-common": "workspace:^",
    "@backstage/config": "workspace:^",
    "@backstage/plugin-catalog-graphql": "workspace:^"

"@backstage/backend-common": "workspace:^",
"@backstage/config": "workspace:^",
"@backstage/plugin-catalog-graphql": "workspace:^",
"@apollo/server": "^5.4.0",

Choose a reason for hiding this comment

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

high

This is a major version upgrade for @apollo/server from v4 to v5. This likely includes breaking changes that will require code modifications. Please consult the official migration guide and update your implementation accordingly.

@entelligence-ai-pr-reviews
Copy link

Walkthrough

This PR updates dependency versions in the GraphQL backend plugin package. The most significant change is upgrading Apollo Server from v4.0.0 to v5.4.0, representing a major version bump that may introduce breaking changes and new features. Additionally, internal Backstage dependencies (@backstage/backend-common, @backstage/config, @backstage/plugin-catalog-graphql) are transitioned from workspace protocol references to pinned specific versions (0.24.1, 0.1.1, 0.1.1 respectively). This pinning strategy ensures consistent versioning across the monorepo and prevents potential version conflicts during builds and deployments.

Changes

File(s) Summary
plugins/graphql-backend/package.json Upgraded Apollo Server dependency from v4.0.0 to v5.4.0 (major version bump); pinned internal Backstage dependencies (@backstage/backend-common to 0.24.1, @backstage/config to 0.1.1, @backstage/plugin-catalog-graphql to 0.1.1) replacing workspace protocol references.

Sequence Diagram

This diagram shows the interactions between components:

sequenceDiagram
    participant Client
    participant Express
    participant GraphQLBackend as GraphQL Backend Plugin
    participant ApolloServer as Apollo Server (v4→v5)
    participant CatalogGraphQL as Catalog GraphQL Plugin
    participant BackendCommon as Backend Common
    participant Config

    Note over GraphQLBackend: Dependency Version Updates:<br/>Apollo Server: ^4.0.0 → ^5.4.0<br/>Backend packages: workspace → pinned versions

    Client->>Express: HTTP GraphQL Request
    Express->>GraphQLBackend: Route to GraphQL endpoint
    
    GraphQLBackend->>Config: Load configuration
    Config-->>GraphQLBackend: Config values
    
    GraphQLBackend->>BackendCommon: Initialize backend services
    BackendCommon-->>GraphQLBackend: Service instances
    
    GraphQLBackend->>CatalogGraphQL: Load GraphQL schema
    CatalogGraphQL-->>GraphQLBackend: Schema definitions
    
    GraphQLBackend->>ApolloServer: Initialize server with schema
    Note over ApolloServer: Major version upgrade<br/>may include breaking changes
    ApolloServer-->>GraphQLBackend: Server instance
    
    GraphQLBackend->>ApolloServer: Execute GraphQL query
    ApolloServer->>CatalogGraphQL: Resolve catalog data
    CatalogGraphQL-->>ApolloServer: Query results
    ApolloServer-->>GraphQLBackend: Response data
    
    GraphQLBackend-->>Express: GraphQL response
    Express-->>Client: HTTP Response
Loading

▶️AI Code Reviews for VS Code, Cursor, Windsurf
Install the extension

Note for Windsurf Please change the default marketplace provider to the following in the windsurf settings:

Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery

Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items

Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts below

Emoji Descriptions:

  • ⚠️ Potential Issue - May require further investigation.
  • 🔒 Security Vulnerability - Fix to ensure system safety.
  • 💻 Code Improvement - Suggestions to enhance code quality.
  • 🔨 Refactor Suggestion - Recommendations for restructuring code.
  • ℹ️ Others - General comments and information.

Interact with the Bot:

  • Send a message or request using the format:
    @entelligenceai + *your message*
Example: @entelligenceai Can you suggest improvements for this code?
  • Help the Bot learn by providing feedback on its responses.
    @entelligenceai + *feedback*
Example: @entelligenceai Do not comment on `save_auth` function !

Also you can trigger various commands with the bot by doing
@entelligenceai command

The current supported commands are

  1. config - shows the current config
  2. retrigger_review - retriggers the review

More commands to be added soon.

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