Skip to content

[Snyk] Fix for 2 vulnerabilities#34

Open
snyk-io[bot] wants to merge 1 commit into
mainfrom
snyk-fix-ff92c7467e7d91b48b6bb50dc6f167b1
Open

[Snyk] Fix for 2 vulnerabilities#34
snyk-io[bot] wants to merge 1 commit into
mainfrom
snyk-fix-ff92c7467e7d91b48b6bb50dc6f167b1

Conversation

@snyk-io

@snyk-io snyk-io Bot commented Jun 19, 2026

Copy link
Copy Markdown

snyk-top-banner

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

Snyk changed the following file(s):

  • packages/better-auth/package.json
⚠️ Warning
Failed to update the pnpm-lock.yaml, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
critical severity Missing Authorization
SNYK-JS-VITEST-17375131
  740  
critical severity Missing Authorization
SNYK-JS-VITESTCOVERAGEV8-17375132
  740  

Breaking Change Risk

Merge Risk: Medium

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.

@snyk-io

snyk-io Bot commented Jun 19, 2026

Copy link
Copy Markdown
Author

Merge Risk: Medium

This is a minor version upgrade for vitest and its coverage provider @vitest/coverage-v8 from v4.0.18 to v4.1.8.

Key Changes:

  • Vite 8 Support: This version introduces support for Vite 8. [2]
  • Potential Breaking Change in test.extend: The test.extend API has a new builder pattern. Previously, it passed an undocumented Suite object as the first argument to the factory function; this is no longer the case. While the vitest team believes the usage was minimal, this is a behavioral change that could break tests relying on that argument. [2]
  • Coverage Ignore Hints: For @vitest/coverage-v8, this version re-introduces support for /* v8 ignore start/stop */ comments to exclude code from coverage reports, a feature that was present in v3 but missing in v4.0. [2]

Recommendation:
The risk is assessed as medium due to the behavioral change in test.extend. Developers using this API should verify their tests after the upgrade. No other significant breaking changes are documented for this specific version jump.

Source: Vitest 4.1 Release Notes [2]

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

@snyk-io

snyk-io Bot commented Jun 19, 2026

Copy link
Copy Markdown
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
Code Security 0 0 0 0 0 issues

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

@hivel-marco hivel-marco Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

PR Complexity Score: 1.2 - Trivial

View Breakdown
  • Lines Changed: 4
  • Files Changed: 1
  • Complexity Added: 0
  • Raw Score: 3.08
Overview

This PR updates the Vitest testing tooling versions used by the better-auth package. The intent is to keep development dependencies aligned with newer Vitest releases and their coverage plugin. Only package.json for packages/better-auth is affected.

Key Changes
  • Bumps @vitest/coverage-v8 from ^4.0.18 to ^4.1.8 to use a newer coverage plugin version.
  • Bumps vitest from ^4.0.18 to ^4.1.8 to align the test runner with the updated coverage plugin and recent fixes/features.
Risks & Considerations
  • Potential for subtle behavior changes in test execution or coverage reporting due to the Vitest minor version upgrade.
  • Tests should be run to confirm there are no regressions or configuration incompatibilities with the newer Vitest versions.
File-level change summary
File Change summary
packages/better-auth/package.json Updated Vitest and its coverage plugin devDependency versions.

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.

0 participants