Skip to content

[Snyk] Upgrade bson from 7.3.2 to 7.3.3 - #5123

Open
admin-token-bot wants to merge 2 commits into
mainfrom
snyk-upgrade-22836e44195a59b584759ad0386df8bc
Open

admin-token-bot wants to merge 2 commits into
mainfrom
snyk-upgrade-22836e44195a59b584759ad0386df8bc

Conversation

@admin-token-bot

Copy link
Copy Markdown
Contributor

snyk-top-banner

Snyk has created this PR to upgrade bson from 7.3.2 to 7.3.3.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 1 version ahead of your current version.

  • The recommended version was released 2 months ago.

Breaking Change Risk

Merge Risk: Medium

Notice: This assessment is enhanced by AI.

Release notes
Package name: bson
  • 7.3.3 - 2026-09-15

    7.3.3 (2026-09-11)

    The MongoDB Node.js team is pleased to announce version 7.3.3 of the bson package!

    Release Notes

    Fixed BSON.calculateObjectSize infinite hang

    Fixed a bug where BSON.calculateObjectSize would hang indefinitely on an object containing a circular reference. The method now throws an exception when a circular reference is detected.

    Also a big thank you to @ mcmorisi for his contribution on #912 security warning in EJSON.parse documentation!

    Bug Fixes

    • NODE-7696: calculateObjectSize hangs indefinitely on an object containing a circular reference (#926) (f35af5c)

    Documentation

    We invite you to try the bson library immediately, and report any issues to the NODE project.

  • 7.3.2 - 2026-08-11

    7.3.2 (2026-07-31)

    The MongoDB Node.js team is pleased to announce version 7.3.2 of the bson package!

    Release Notes

    calculateObjectSize() now returns accurate byte counts for Int32 and BSONSymbol

    Previously, each Int32 or BSONSymbol value caused a 12-byte overcount.

    calculateObjectSize() now yields proper size calculations on ES Map's

    This release of js-bson fixes an issue where we were incorrectly considering ES Map objects inside calculateObjectSize. This issue did not impact serialization, just size calculation.

    Fixed incorrect date boundary in relaxed EJSON

    This release of js-bson fixes an issue where the date boundary for relaxed EJSON was incorrectly set to a date 5 hours after the maximum limit of 10,000 AD.

    Fixed an issue with ObjectId initialization in Cloudflare Workers

    This release of js-bson fixes an issue where we were making crypto calls during module initialization, which is forbidden by Cloudflare Workers and other environments.

    Memory optimization via smaller ObjectIds

    ObjectId now stores its 12 bytes as four inline integers instead of a Uint8Array, cutting per-ObjectId memory by about 63% (and roughly 45 to 47% across large result sets) with no serialization slowdown. Deep equality and cloning are preserved (assert.deepStrictEqual, and lodash isEqual / cloneDeep).

    Thanks to @ spokodev for contributing their fixes! (NODE-7631 (#901), NODE-7645 (#917), NODE-7646 (#910))

    Bug Fixes

    Performance Improvements

    Documentation

    We invite you to try the bson library immediately, and report any issues to the NODE project.

from bson GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • 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 upgrade PRs.

For more information:

Snyk has created this PR to upgrade bson from 7.3.2 to 7.3.3.

See this package in npm:
bson

See this project in Snyk:
https://app.snyk.io/org/drivers/project/df1d52af-6627-42df-873f-38dffdadf55a?utm_source=github&utm_medium=referral&page=upgrade-pr
Snyk has created this PR to upgrade bson from 7.3.2 to 7.3.3.

See this package in npm:
bson

See this project in Snyk:
https://app.snyk.io/org/drivers/project/df1d52af-6627-42df-873f-38dffdadf55a?utm_source=github&utm_medium=referral&page=upgrade-pr
@admin-token-bot
admin-token-bot requested a review from a team as a code owner November 13, 2026 13:49
@admin-token-bot

Copy link
Copy Markdown
Contributor Author

Merge Risk: Medium

This is a patch version upgrade for bson. The primary change is a bug fix that could affect applications under specific conditions.

Behavioral Change:

  • The function BSON.calculateObjectSize no longer hangs indefinitely when it encounters a circular reference. It now throws an exception instead.

Risk Assessment:
While this is a bug fix for a denial-of-service-type issue, it introduces a new throwing behavior where the process would previously hang. If your application calls this function with potentially circular-referenced objects, it may now experience unhandled exceptions. This is classified as a medium risk because it's a behavioral change that could require verification.

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.

This branch has not been deployed

No deployments
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