Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 14 additions & 23 deletions nodejs/nodejs-guestbook/src/backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nodejs/nodejs-guestbook/src/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"body-parser": "1.20.2",
"mongodb": "4.17.1",
"express": "4.18.2",
"mongoose": "6.11.3"
"mongoose": "6.13.6"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Mongoose 6.x is End-of-Life (EOL) and no longer receives general updates. While this version addresses a specific security vulnerability (CVE-2025-23061), it is recommended to plan a migration to a supported version like Mongoose 8.x. Note that Mongoose 7+ introduced breaking changes, including the removal of callback support, which would require refactoring the database logic in files like routes/messages.js to use Promises or async/await.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Updating mongoose to 6.13.6 brings in mongodb@4.17.2 as a transitive dependency. Since the root package.json explicitly pins mongodb to 4.17.1 (line 13), this results in duplicate versions of the MongoDB driver being installed. Consider updating the root mongodb dependency to 4.17.2 or removing it if it is not used directly in the codebase to maintain consistency and reduce package bloat.

}
}