Skip to content

[Snyk] Fix for 1 vulnerabilities#3796

Open
cc-prodsec wants to merge 1 commit into
release-2.11.xfrom
snyk-fix-105af8bff7af25dae541b29c25d51ffb
Open

[Snyk] Fix for 1 vulnerabilities#3796
cc-prodsec wants to merge 1 commit into
release-2.11.xfrom
snyk-fix-105af8bff7af25dae541b29c25d51ffb

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/internal-lib-build/package.json
  • packages/internal-lib-build/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Improper Validation of Specified Index, Position, or Offset in Input
SNYK-JS-UUID-16133035
  708  

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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

…-build/package-lock.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-UUID-16133035
@cc-prodsec cc-prodsec requested a review from a team as a code owner April 23, 2026 13:14
@cc-prodsec

Copy link
Copy Markdown
Collaborator Author

Merge Risk: High

The upgrade from Jest v26 to v27 is a major version change that introduces several significant breaking changes, requiring configuration and code updates.

Key Breaking Changes:

  • Default Test Environment: The default testEnvironment has been changed from "jsdom" to "node". Tests that rely on browser APIs like document or window will fail.
  • Modern Fake Timers by Default: The modern implementation of fake timers is now the default, which provides more comprehensive mocking for APIs like Date and queueMicrotask. This may affect tests that rely on the previous timer behavior.
  • Stricter Test Rules: Jest v27 enforces stricter rules that will cause tests to fail in the following cases:
    • The done() callback is called more than once.
    • A test both calls done() and returns a Promise.
    • A describe block returns a value.
  • Removed Deprecated Functions: Several long-deprecated functions have been removed.
    • jest.addMatchers(): Use expect.extend() instead.
    • jest.resetModuleRegistry(): Use jest.resetModules() instead.
    • jest.runTimersToTime(): Use jest.advanceTimersByTime() instead.

Recommendation:

  • Verify Test Environment: If your tests require a browser environment, you must explicitly set "testEnvironment": "jsdom" in your jest.config.js file.
  • Update Deprecated APIs: Search your codebase for the removed functions and replace them with their modern equivalents.
  • Review Asynchronous Tests: Check your tests for incorrect usage of the done() callback, especially in combination with Promises.

Source: Jest 27 Release Notes

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

@git2gus

git2gus Bot commented Apr 23, 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 Apr 23, 2026

Copy link
Copy Markdown
Collaborator Author

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

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

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

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