Skip to content

[Snyk] Fix for 1 vulnerabilities - #4068

Closed
cc-prodsec wants to merge 1 commit into
release-3.21.xfrom
snyk-fix-3c8ecb30dfe88abafef48663b3437c45
Closed

cc-prodsec wants to merge 1 commit into
release-3.21.xfrom
snyk-fix-3c8ecb30dfe88abafef48663b3437c45

Conversation

@cc-prodsec

Copy link
Copy Markdown
Collaborator

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):

  • packages/template-retail-react-app/package.json
  • packages/template-retail-react-app/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PICOMATCH-21248802
  721  

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:

🦉 Regular Expression Denial of Service (ReDoS)

…ate-retail-react-app/package-lock.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-PICOMATCH-21248802
@cc-prodsec

Copy link
Copy Markdown
Collaborator Author

Merge Risk: High

This update includes two major version upgrades with significant breaking changes that require code modifications.

msw@1.3.5 → msw@2.2.0 (HIGH RISK)

The upgrade to MSW v2 is a major rewrite and will break existing tests. The core API for defining handlers has changed completely.

Key Breaking Changes:

  • New Handler API: The rest and res objects are replaced by http and HttpResponse. Handler definitions must be migrated from rest.get(...) and res(ctx.json(...)) to the new http.get(...) and return HttpResponse.json(...) syntax.
  • Request Handling: Accessing request properties like the body now uses the standard Request object (e.g., await request.json()) instead of req.body.
  • Imports: Module imports have been moved. For Node.js environments, you must now import from msw/node.

Recommendation: This is a significant migration. Use the official mswjs/v2 codemod to automate most of the required changes. Manually review changes, especially for complex handlers or GraphQL mocks, after running the codemod.

@testing-library/jest-dom@5.17.0 → @testing-library/jest-dom@6.0.0 (MEDIUM RISK)

This major version upgrade introduces breaking changes by removing deprecated matchers and requiring a newer version of Jest.

Key Breaking Changes:

  • Jest Version: Requires Jest v28 or newer.
  • Removed Matchers: The following deprecated matchers have been removed: toBeEmpty, toBeInTheDOM, and toHaveDescription.

Recommendation:

  • Ensure your project is using Jest v28+.
  • Replace usages of the removed matchers:
    • toBeEmpty → toBeEmptyDOMElement
    • toBeInTheDOM → toBeInTheDocument
    • toHaveDescription → toHaveAccessibleDescription

Source: Release notes

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

@cc-prodsec
cc-prodsec requested a review from a team as a code owner October 20, 2026 09:34
@git2gus

git2gus Bot commented Oct 20, 2026

Copy link
Copy Markdown

Git2Gus App is installed but the .git2gus/config.json doesn't have right values. You should add the required configuration.

@cc-prodsec

cc-prodsec commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator Author

⛔ Snyk checks have failed. 22 issues have been found so far.

Status Scan Engine Critical High Medium Low Total (22)
⛔ Open Source Security 0 9 11 2 22 issues
✅ Licenses 0 0 0 0 0 issues

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

@cc-prodsec cc-prodsec closed this Nov 4, 2026
@cc-prodsec

Copy link
Copy Markdown
Collaborator Author

✅ This PR has been automatically closed

The security issues addressed by this pull request are no longer present in the latest project scan. All vulnerabilities this PR was created to fix have been resolved through other means (e.g., dependency updates, direct fixes, or changes in vulnerability data).

Resolved Issues

  • SNYK-JS-PICOMATCH-21248802

What should I do?

No action is required. If you believe this PR was closed in error, you can reopen it and contact Snyk support.


This action was performed automatically by Snyk.

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