Skip to content
Open
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
2 changes: 1 addition & 1 deletion course-04/exercises/lesson-3/solution/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"source-map-support": "^0.5.11",
"uuid": "^3.3.2"
"uuid": "^3.4.0"

Choose a reason for hiding this comment

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

high

While upgrading uuid is a good step, version 3.4.0 is still very outdated and contains known security vulnerabilities, such as CVE-2021-3749 (a medium severity timing attack). This vulnerability is patched in versions 8.3.2 and later.

I strongly recommend upgrading to a more recent, non-vulnerable version. The latest stable version is 9.0.1.

Upgrading to a newer major version (like v8 or v9) will introduce breaking changes, primarily in how the functions are imported. For example:

  • v3 (current style): const uuidv4 = require('uuid/v4');
  • v8/v9 (new style): const { v4: uuidv4 } = require('uuid');

A dedicated effort should be planned to perform this more significant upgrade to ensure the project's security and long-term maintainability.

Suggested change
"uuid": "^3.4.0"
"uuid": "^9.0.1"

},
"devDependencies": {
"@types/aws-lambda": "^8.10.17",
Expand Down