fix: override lodash >=4.18.0 to patch code injection vulnerability #38
+3
-2
@@ -46,6 +46,7 @@
|
||||
"overrides": {
|
||||
"tar": "^7.5.11",
|
||||
"undici": "^7.24.3",
|
||||
"vite": ">=6.4.2"
|
||||
"vite": ">=6.4.2",
|
||||
"lodash": ">=4.18.0"
|
||||
|
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user
The override uses
>=4.18.0with no upper bound. If a5.xrelease of lodash is ever published with breaking API changes, this override would allow it to be resolved and installed, potentially breaking the build or runtime behavior. The two other overrides in this file both use the caret (^) range, which pins to the same major version:For consistency and safety, prefer
^4.18.0(equivalent to>=4.18.0 <5.0.0):This still satisfies the security requirement (patched at
4.18.0) while preventing accidental major-version bumps.Prompt To Fix With AI