fix(security): resolve critical vulnerability in form-data dependency

- Add npm overrides to force form-data version 4.0.4 or higher
- Fixes GitHub security advisory GHSA-fjxv-7rqg-78g4
- Vulnerability was in transitive dependency via TensorFlow.js
- No functionality changes, all tests passing
This commit is contained in:
David Snelling 2025-08-05 07:28:10 -07:00
parent 24b0df8df5
commit 0798de52e6
2 changed files with 6 additions and 3 deletions

6
package-lock.json generated
View file

@ -6205,9 +6205,9 @@
}
},
"node_modules/form-data": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.3.tgz",
"integrity": "sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==",
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
"integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
"license": "MIT",
"dependencies": {
"asynckit": "^0.4.0",

View file

@ -48,6 +48,9 @@
"engines": {
"node": ">=24.4.0"
},
"overrides": {
"form-data": "^4.0.4"
},
"scripts": {
"prebuild": "echo 'Prebuild step - no version generation needed'",
"build": "BUILD_TYPE=unified rollup -c rollup.config.js",