Bump mongoose from 8.12.1 to 8.22.1#4969
Conversation
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.12.1 to 8.22.1. - [Release notes](https://github.com/Automattic/mongoose/releases) - [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md) - [Commits](Automattic/mongoose@8.12.1...8.22.1) --- updated-dependencies: - dependency-name: mongoose dependency-version: 8.22.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Duplication | 0 |
AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.
TIP This summary will be updated as you push new changes.
There was a problem hiding this comment.
Pull Request Overview
This PR should be rejected immediately due to a high-severity security risk. The version of mongoose (8.22.1) and other dependencies like mongodb (6.20.0) specified in the update do not exist on the public npm registry (the current stable release is 8.10.x). This pattern is characteristic of a dependency confusion attack.
Furthermore, the package-lock.json contains a large volume of unrelated dependency updates that were not part of the PR's stated intent. There are also no regression tests present to validate the stability of CRUD operations or the specific bug fixes referenced in the release notes.
About this PR
- The
package-lock.jsonincludes a significant number of unrelated updates (e.g.,@oxc-resolver,@swc/core) that were not mentioned in the PR description. This suggests a broad dependency update was performed instead of a targeted bump, which complicates review and increases the risk of side effects.
Test suggestions
- Verify that existing database CRUD operations remain stable with Mongoose 8.22.1 via regression testing.
- Validate the specific fix for subdocument cloning where the parent reference was previously lost, as identified in the release notes (#15904).
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify that existing database CRUD operations remain stable with Mongoose 8.22.1 via regression testing.
2. Validate the specific fix for subdocument cloning where the parent reference was previously lost, as identified in the release notes (#15904).
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
| "mini-css-extract-plugin": "^2.9.0", | ||
| "mocha": "^10.4.0", | ||
| "mongoose": "^8.12.1", | ||
| "mongoose": "^8.22.1", |
There was a problem hiding this comment.
🔴 HIGH RISK
Several packages in this PR use version numbers that do not exist on the public npm registry: mongoose (8.22.1), mongodb (6.20.0), and @mongodb-js/saslprep (1.4.11). The latest stable version for mongoose is currently 8.10.0. This discrepancy strongly suggests a dependency confusion attack or an attempt to inject malicious code via a hijacked version string. This change should be rejected unless these versions are confirmed to exist on a trusted, internal private registry.
Bumps mongoose from 8.12.1 to 8.22.1.
Release notes
Sourced from mongoose's releases.
... (truncated)
Changelog
Sourced from mongoose's changelog.
... (truncated)
Commits
472e7c7chore: release 8.22.11735149Merge branch '7.x' into 8.x5227801chore: release 7.8.9b804e34fix: handle other top-level query operators in sanitizeFilter8d9a81fchore: release 8.22.0f752854Merge pull request #15985 from Automattic/8.22e7a57edavoid hardcoding dbName31adbb4chore: release 8.21.162a5af7test: bring test cases from #15958 into 8.x to ensure fixes are applied in 8.xbc8cb23implement review suggestionsMaintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for mongoose since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.