Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump bson and mongoose #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Apr 30, 2023

Bumps bson to 1.1.6 and updates ancestor dependency mongoose. These dependencies need to be updated together.

Updates bson from 1.0.9 to 1.1.6

Release notes

Sourced from bson's releases.

1.1.6

The MongoDB Node.js team is pleased to announce version 1.1.6 of the bson module!

The BSON library was written prior to the invention of the BigInt type in Javascript ecosystem. As a result the library was not able to serialize the type properly and silently failed to correctly maintain the bigint value. With this update, the library will now throw an error if it detects a bigint value. However, we've also added to/fromBigInt helper methods to the long class, please note that numbers will be clamped to int64 bit width.

const bytes = BSON.serialize({ myBigNumber: Long.fromBigInt(23n) })
const doc = BSON.deserialize(bytes)
doc.myBigNumber.toBigInt() === 23n // true

New Feature

  • [NODE-2378] - Return error when failing to serialize bigint type and add Long class helpers

Documentation

We invite you to try the bson library immediately, and report any issues to the NODE project. Thanks very much to all the community members who contributed to this release!

v1.1.4

The MongoDB Node.js team is pleased to announce version 1.1.4 of the bson module!

This patch release resolves an issue with BSON serialization with invalid _bsontype, originally reported by @​xiaofen9. MongoDB will be issuing a CVE for this vulnerability, and we recommend that all users pin their version of the bson module to 1.1.4 or higher.

Release Notes

Changelog

Sourced from bson's changelog.

1.1.6 (2021-03-16)

Bug Fixes

  • Throw error on bigint usage and add helpers to Long (#426) (375f368)

1.1.5 (2020-08-10)

Bug Fixes

  • object-id: harden the duck-typing (b526145)

1.1.3 (2019-11-09)

Reverts 1.1.2

1.1.2 (2019-11-08)

Bug Fixes

  • _bsontype: only check bsontype if it is a prototype member. (dd8a349)

1.1.1 (2019-03-08)

Bug Fixes

  • object-id: support 4.x->1.x interop for MinKey and ObjectId (53419a5)

Features

  • replace new Buffer with modern versions (24aefba)

1.1.0 (2018-08-13)

Bug Fixes

... (truncated)

Commits
  • 6fc7a87 chore(release): 1.1.6
  • 375f368 fix: Throw error on bigint usage and add helpers to Long (#426)
  • 290dd6a chore(release): 1.1.5
  • b526145 fix(object-id): harden the duck-typing
  • 6e782da 1.1.4
  • 3809c13 fix: throw if invalid _bsontype is detected
  • e4de7b5 1.1.3
  • 8de4140 Revert "fix(_bsontype): only check bsontype if it is a prototype member."
  • 179e1ed 1.1.2
  • dd8a349 fix(_bsontype): only check bsontype if it is a prototype member.
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by nbbeeken, a new releaser for bson since your current version.


Updates mongoose from 5.2.14 to 5.13.17

Changelog

Sourced from mongoose's changelog.

5.13.17 / 2023-04-04

  • fix: backport fix for array filters handling $or and $and #13195 #13192 #10696 raj-goguardian
  • fix: update the isIndexEqual function to take into account non-text indexes when checking compound indexes that include both text and non-text indexes #13138 #13136 rdeavila94

7.0.3 / 2023-03-23

  • fix(query): avoid executing transforms if query wasn't executed #13185 #13165
  • fix(schema): make creating top-level virtual underneath subdocument equivalent to creating virtual on the subdocument #13197 #13189
  • fix(timestamps): set timestamps on empty replaceOne() #13196 #13170
  • fix(types): change return type of lean() to include null if nullable #13155 #13151 lpizzinidev
  • fix(types): fixed type of DocumentArray constructor parameter #13183 #13087 lpizzinidev
  • docs: refactor header naming to lessen conflicts #12901 hasezoey
  • docs: change header levels to be consistent across files #13173 hasezoey

6.10.4 / 2023-03-21

  • fix(document): apply setters on resulting value when calling Document.prototype.$inc() #13178 #13158
  • fix(model): add results property to unordered insertMany() to make it easy to identify exactly which documents were inserted #13163 #12791
  • docs(guide+schematypes): add UUID to schematypes guide #13184

7.0.2 / 2023-03-15

6.10.3 / 2023-03-13

  • fix(connection): add stub implementation of doClose to base connection class #13157
  • fix(types): add cursor.eachAsync index parameter #13162 #13153 hasezoey
  • docs: fix 6.x docs sidebar links #13147 #13144 hasezoey
  • docs(validation): clarify that validation runs as first pre(save) middleware #13062

6.10.2 / 2023-03-07

  • fix(document): avoid setting array default if document array projected out by sibling projection #13135 #13043 #13003
  • fix(documentarray): set correct document array path if making map of document arrays #13133
  • fix: undo accidental change to engines in package.json #13124 lorand-horvath
  • docs: quick improvement to Model.init() docs #13054

7.0.1 / 2023-03-06

... (truncated)

Commits
  • 1bc07ec chore: release 5.13.17
  • 3f827b3 Merge branch '5.x' of github.com:Automattic/mongoose into 5.x
  • eeabe5f chore: run CI tests on ubuntu 20.04 because 18.04 no longer supported
  • 14464d1 Merge pull request #13195 from raj-goguardian/gh-13192
  • 7e888e4 fix(update): handle $and & $or in array filters.
  • 5dd0a4e Merge pull request #13138 from rdeavila94/gh-13136
  • c8191da Update model.indexes.test.js
  • 7364264 Update model.indexes.test.js
  • 77b9d99 Updated the isIndexEqual function to take into account non-text indexes when ...
  • 9dd82be Merge pull request #13132 from rdeavila94/gh-12654
  • Additional commits viewable in compare view

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will 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 version will 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 dependency will 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.

Bumps [bson](https://github.com/mongodb/js-bson) to 1.1.6 and updates ancestor dependency [mongoose](https://github.com/Automattic/mongoose). These dependencies need to be updated together.


Updates `bson` from 1.0.9 to 1.1.6
- [Release notes](https://github.com/mongodb/js-bson/releases)
- [Changelog](https://github.com/mongodb/js-bson/blob/v1.1.6/HISTORY.md)
- [Commits](mongodb/js-bson@v1.0.9...v1.1.6)

Updates `mongoose` from 5.2.14 to 5.13.17
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](Automattic/mongoose@5.2.14...5.13.17)

---
updated-dependencies:
- dependency-name: bson
  dependency-type: indirect
- dependency-name: mongoose
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 30, 2023
Copy link

@prisma-cloud-devsecops prisma-cloud-devsecops bot left a comment

Choose a reason for hiding this comment

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

Prisma Cloud has found errors in this PR ⬇️

"version": "1.3.5",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
"integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
"@types/bson": {

Choose a reason for hiding this comment

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

mongoose 5.13.17 / package-lock.json

Total vulnerabilities: 1

Critical: 1 High: 0 Medium: 0 Low: 0
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2022-2564 CRITICAL CRITICAL 9.8 6.4.6 Open

"version": "1.3.5",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
"integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
"@types/bson": {

Choose a reason for hiding this comment

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

cryptiles 0.2.2 / package-lock.json

Total vulnerabilities: 1

Critical: 1 High: 0 Medium: 0 Low: 0
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2018-1000620 CRITICAL CRITICAL 9 4.1.2 Open

"version": "1.3.5",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
"integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
"@types/bson": {

Choose a reason for hiding this comment

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

tunnel-agent 0.3.0 / package-lock.json

Total vulnerabilities: 1

Critical: 0 High: 0 Medium: 1 Low: 0
Vulnerability IDSeverityCVSSFixed inStatus
GHSA-xc7v-wxcw-j472 MEDIUM MEDIUM 4 0.6.0 Open

"version": "1.3.5",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
"integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
"@types/bson": {

Choose a reason for hiding this comment

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

hawk 1.0.0 / package-lock.json

Total vulnerabilities: 2

Critical: 0 High: 2 Medium: 0 Low: 0
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2016-2515 HIGH HIGH 7 3.1.3 Open
CVE-2022-29167 HIGH HIGH 7.5 9.0.1 Open

"version": "1.3.5",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
"integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
"@types/bson": {

Choose a reason for hiding this comment

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

xml2js 0.4.19 / package-lock.json

Total vulnerabilities: 1

Critical: 0 High: 0 Medium: 1 Low: 0
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2023-0842 MEDIUM MEDIUM 4 0.5.0 Open

"version": "1.3.5",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
"integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
"@types/bson": {

Choose a reason for hiding this comment

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

mime 1.2.11 / package-lock.json

Total vulnerabilities: 1

Critical: 0 High: 1 Medium: 0 Low: 0
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2017-16138 HIGH HIGH 7.5 1.4.1 Open

"version": "1.3.5",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
"integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
"@types/bson": {

Choose a reason for hiding this comment

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

request 2.27.0 / package-lock.json

Total vulnerabilities: 2

Critical: 0 High: 0 Medium: 2 Low: 0
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2023-28155 MEDIUM MEDIUM 6.1 - Open
CVE-2017-16026 MEDIUM MEDIUM 4 2.68.0 Open

"version": "1.3.5",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
"integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
"@types/bson": {

Choose a reason for hiding this comment

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

qs 0.6.6 / package-lock.json

Total vulnerabilities: 4

Critical: 0 High: 4 Medium: 0 Low: 0
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2017-1000048 HIGH HIGH 7 6.0.4 Open
CVE-2014-10064 HIGH HIGH 7 1.0.0 Open
CVE-2014-7191 HIGH HIGH 7 1.0.0 Open
CVE-2022-24999 HIGH HIGH 7.5 6.10.3 Open

"version": "1.3.5",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
"integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
"@types/bson": {

Choose a reason for hiding this comment

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

hoek 0.9.1 / package-lock.json

Total vulnerabilities: 2

Critical: 0 High: 2 Medium: 0 Low: 0
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2020-36604 HIGH HIGH 8.1 8.5.1 Open
CVE-2018-3728 HIGH HIGH 8.8 4.2.0 Open

"version": "1.3.5",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz",
"integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=",
"@types/bson": {

Choose a reason for hiding this comment

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

aws-sdk 2.314.0 / package-lock.json

Total vulnerabilities: 1

Critical: 0 High: 1 Medium: 0 Low: 0
Vulnerability IDSeverityCVSSFixed inStatus
CVE-2020-28472 HIGH HIGH 7 2.814.0 Open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants