[GHSA-75v8-2h7p-7m2m] Formidable relies on hexoid to prevent guessing of filenames for untrusted executable content #5733
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates
Comments
Based on the detailed context of the Dependabot alert for formidable@2.1.2 (introduced via supertest@6.3.3) and its low-risk vulnerability (CVE-2025-46653), here's a refined action plan addressing dependency constraints and practical mitigation strategies:
Immediate Remediation Strategy
1. Assess Actual Risk Exposure
formidable
→ Risk is negligible. Dismiss the alert with a comment like:
2. Workaround: Force Dependency Resolution
Since
supertest@6.3.3
locksformidable
to^2.1.2
, force an upgrade using:package.json
):package.json
):package.json
):npm install
/yarn install
afterward.supertest
compatibility withformidable@3.5.4+
.3. Upstream Advocacy
Create an issue in supertest:
Request a dependency update at supertest#issues. Example:
Temporary fork (last resort):
supertest
formidable
dependency to^3.5.4
Long-Term Prevention
1. Dependency Hardening
package-lock.json
oryarn.lock
| SBOM generation | Use
cyclonedx-npm
for supply-chain visibility |2. Architectural Mitigations
3. Monitoring & Automation
Decision Tree: Next Steps
Alternative Tools
If
supertest
compatibility fails:npm install undici
npm install jest-http-mock
npm install msw
Key Takeaways
npm ls formidable
).Proceed with dependency resolution (Step 2), and monitor supertest for updates. If you need help implementing CI checks or dependency graphs, share your repo structure!