Skip to content

fix: bump form-data to 4.0.5 to resolve CVE-2025-7783 (Dependabot #46) - #685

Merged
Zee2413 merged 1 commit into
aws-cloudformation:mainfrom
Zee2413:fix/dependabot-46-form-data-cve-2025-7783
Mar 27, 2026
Merged

Zee2413 merged 1 commit into
aws-cloudformation:mainfrom
Zee2413:fix/dependabot-46-form-data-cve-2025-7783

Conversation

@Zee2413

@Zee2413 Zee2413 commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Resolves Dependabot alert #46 by bumping form-data from 4.0.0 to 4.0.5.

Vulnerability

CVE-2025-7783 (CVSS v4: 9.4 — Critical)

form-data versions prior to 4.0.4 use Math.random() to generate multipart form boundaries. Since Math.random() is a predictable PRNG, an attacker who can observe other Math.random() outputs from the application can predict boundary values and inject additional parameters into multipart requests.

Changes

  • Added form-data: 4.0.5 to the overrides section in guard/package.json to pin the patched version
  • Updated guard/package-lock.json with the resolved dependency tree

Risk Assessment

Low practical risk — form-data is a transitive dev dependency (via axios) and is not included in production builds. The fix is applied via the existing overrides pattern already used for axios and cross-spawn.

Verification

  • npm install ✅
  • npm run lint ✅
  • npm test ✅ (5/5 tests passed)

No existing packages were modified or removed. The lockfile diff consists entirely of form-data version bump and its new transitive dependencies.

Add form-data override to pin version 4.0.5, fixing Dependabot alert aws-cloudformation#46.
form-data <4.0.4 uses Math.random() for multipart boundary generation,
which is predictable and can allow request injection (CVSS v4: 9.4).

form-data is a transitive dev dependency via axios and does not affect
production builds.
@Zee2413

Zee2413 commented Mar 27, 2026

Copy link
Copy Markdown
Contributor Author

This change is resilient to package lock regeneration as compared to #645

@Zee2413
Zee2413 merged commit 7c87f32 into aws-cloudformation:main Mar 27, 2026
15 checks passed
@Zee2413
Zee2413 deleted the fix/dependabot-46-form-data-cve-2025-7783 branch March 27, 2026 19:21
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
cloudformation-guard 3.2.1

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre><!-- Release notes generated using configuration in .github/release.yml at 3.2.1 -->

## What's Changed
* Use remote check for tag and force-with-lease for branch to allow rel… by @Zee2413 in aws-cloudformation/cloudformation-guard#675
* Fetch before pushing release branch by @Zee2413 in aws-cloudformation/cloudformation-guard#676
* Remove homebrew step and skip scratch compilation during cargo publish by @Zee2413 in aws-cloudformation/cloudformation-guard#678
* Prevent cargo publish errors from being swallowed as already published by @Zee2413 in aws-cloudformation/cloudformation-guard#680
* fix: exclude bot authors from release notes and prevent duplication o… by @Zee2413 in aws-cloudformation/cloudformation-guard#682
* fix: bump form-data to 4.0.5 to resolve CVE-2025-7783 (Dependabot #46) by @Zee2413 in aws-cloudformation/cloudformation-guard#685
* fix: resolve npm audit vulnerabilities in action/ and replace dead gitpkg dependency by @Zee2413 in aws-cloudformation/cloudformation-guard#691
* fix: resolve 9 npm audit vulnerabilities in guard/ dev dependencies by @Zee2413 in aws-cloudformation/cloudformation-guard#690
* fix: add explicit permissions to all GitHub Actions workflows by @Zee2413 in aws-cloudformation/cloudformation-guard#693
* fix: upgrade @actions/github to 8.0.1 and @actions/core to 2.0.3 to resolve undici CVEs by @Zee2413 in aws-cloudformation/cloudformation-guard#695
* fix: bump bytes crate to 1.11.1 to resolve CVE-2026-25541 by @Zee2413 in aws-cloudformation/cloudformation-guard#694
* chore: automate ATTRIBUTION generation with cargo-about by @Zee2413 in aws-cloudformation/cloudformation-guard#697
* chore(deps): Fix high severity npm audit findings in /action and /guard by @Zee2413 in aws-cloudformation/cloudformation-guard#711
* Fix evaluator and reporter defects where a rule reported compliance, or nothing at all, for input it should have rejected by @awsmadi in aws-cloudformation/cloudformation-guard#717
* fix(deps): Patch high-severity advisories by @Zee2413 in aws-cloudformation/cloudformation-guard#724
* fix(deps): Update undici to 6.28.0 by @Zee2413 in aws-cloudformation/cloudformation-guard#726

## New Contributors
* @github-actions[bot] made their first contribution in aws-cloudformation/cloudformation-guard#681
* @awsmadi made their first contribution in aws-cloudformation/cloudformation-guard#717

**Full Changelog**: https://github.com/aws-cloudformation/cloudformation-guard/compare/3.2.0...3.2.1</pre>
  <p>View the full release notes at <a href="https://github.com/aws-cloudformation/cloudformation-guard/releases/tag/3.2.1">https://github.com/aws-cloudformation/cloudformation-guard/releases/tag/3.2.1</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!17668
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants