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
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"aws-sdk": "2.814.0",
"axios": "^0.27.2",
"bcrypt": "5.0.0",
"body-parser": "^1.20.1",
"body-parser": "^2.2.1",
Copy link

Choose a reason for hiding this comment

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

Bug: Major version upgrade changes req.body undefined behavior

Upgrading body-parser from 1.x to 2.x introduces a breaking change where req.body is now undefined instead of {} when no body is parsed. The codebase has many handlers that directly access req.body.property (e.g., req.body.email, req.body.password, req.body.oldPassword) without null checks. If a request arrives without a parseable body (missing body, wrong Content-Type, or malformed content), these accesses will throw TypeError instead of returning undefined as before.

Fix in Cursor Fix in Web

"bufferutil": "^4.0.7",
"bunyan": "^1.8.15",
"bunyan-format": "^0.2.1",
Expand Down
Loading
Loading