Skip to content

Commit

Permalink
fix: path.replace is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
wll8 committed Sep 30, 2024
1 parent 0dc8d09 commit c06069b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@
"darwin",
"linux"
],
"resolutions": {
"express": "4.17.1"
},
"overrides": {
"express": "4.17.1"
},
"pnpm": {
"overrides": {
"express": "4.17.1"
}
},
"homepage": "https://hongqiye.com/doc/mockm/",
"keywords": [
"JSON",
Expand Down

2 comments on commit c06069b

@NewEraCracker
Copy link

@NewEraCracker NewEraCracker commented on c06069b Oct 1, 2024

Choose a reason for hiding this comment

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

Do not do this. You are exposing yourself to many security vulnerabilities.

You could go up to 4.19.2 without problems.

But, even that will leave your server open to CVSS 6+ vulnerabilities.

Use the latest version & apply the patch with patch-package or see if anything else on the same thread helps you:
expressjs/express#5955 (comment)

My two cents.

@wll8
Copy link
Owner Author

@wll8 wll8 commented on c06069b Oct 1, 2024

Choose a reason for hiding this comment

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

I have taken your advice into account and used the new solution for my use case.

7288108

Please sign in to comment.