Skip to content

security: add transitive vulnerability overrides#7742

Draft
wtfiwtz wants to merge 1 commit into
getredash:masterfrom
orchestrated-io:security/transitive-overrides
Draft

security: add transitive vulnerability overrides#7742
wtfiwtz wants to merge 1 commit into
getredash:masterfrom
orchestrated-io:security/transitive-overrides

Conversation

@wtfiwtz
Copy link
Copy Markdown

@wtfiwtz wtfiwtz commented Jun 2, 2026

Summary

Add pnpm overrides for transitive dependencies to address multiple security vulnerabilities throughout the dependency tree.

Changes

Add comprehensive pnpm.overrides to package.json for transitive dependencies:

Network & HTTP

  • cookie: ^0.7.2
  • tough-cookie: ^4.1.3
  • qs: ^6.15.2
  • form-data: ^4.0.5
  • basic-ftp: ^5.3.0
  • follow-redirects: ^1.16.0
  • fast-uri: ^3.1.2

Compression & Serialization

  • tar: ^7.5.11
  • tar-fs: ^3.1.1
  • serialize-javascript: ^7.0.5
  • flatted: ^3.4.2

Parsers & Utilities

  • js-yaml: ^4.1.1
  • nth-check: ^2.0.1
  • ip-address: ^10.1.1
  • protocol-buffers-schema: ^3.6.1
  • path-to-regexp@0.1.12: 0.1.13 (specific version upgrade)
  • bn.js: ^5.2.3
  • tmp: ^0.2.6

Build Tools

  • postcss: ^8.5.10
  • autoprefixer: ^10.4.20

CVEs Addressed

  • CVE-2026-6321, CVE-2026-6322: fast-uri vulnerabilities
  • CVE-2026-41305, CVE-2023-44270: postcss vulnerabilities
  • Multiple transitive CVEs across:
    • Cookie handling and session management
    • Path parsing and traversal
    • YAML parsing
    • Compression and archiving
    • Serialization
    • Network request libraries

Specific CVE IDs vary by nested package depth and consuming packages, but these overrides force secure versions throughout the entire dependency tree.

Notes

Glob pattern matching overrides excluded: The overrides for minimatch, picomatch, micromatch, and braces were excluded from this PR due to compatibility issues with Babel traverse that caused test failures. These packages will be addressed through direct dependency upgrades in consuming packages or in future PRs when compatibility improves.

Test Results

  • ✅ Frontend tests: All 15 test suites passed (90 tests)
  • ✅ TypeScript compilation: Type checking passed successfully
  • ✅ No runtime errors or dependency resolution failures

Related PRs

Part of the frontend security upgrade series split from #7720:

This completes the frontend security upgrade series.

Made with Cursor

Add pnpm overrides for transitive dependencies to address multiple
security vulnerabilities throughout the dependency tree.

Changes:
- package.json: Add comprehensive pnpm.overrides for transitive deps:
  * cookie ^0.7.2
  * tough-cookie ^4.1.3
  * qs ^6.15.2
  * tar ^7.5.11, tar-fs ^3.1.1
  * serialize-javascript ^7.0.5
  * nth-check ^2.0.1
  * js-yaml ^4.1.1
  * tmp ^0.2.6
  * bn.js ^5.2.3
  * ip-address ^10.1.1
  * protocol-buffers-schema ^3.6.1
  * path-to-regexp@0.1.12 → 0.1.13
  * fast-uri ^3.1.2
  * postcss ^8.5.10, autoprefixer ^10.4.20
  * form-data ^4.0.5, basic-ftp ^5.3.0
  * flatted ^3.4.2, follow-redirects ^1.16.0
- Regenerate pnpm-lock.yaml

CVEs Addressed:
- CVE-2026-6321, CVE-2026-6322: fast-uri vulnerabilities
- CVE-2026-41305, CVE-2023-44270: postcss vulnerabilities
- Multiple transitive dependency CVEs across cookie handling, path parsing,
  YAML parsing, compression, serialization, and network request libraries

Note: Glob pattern matching overrides (minimatch, picomatch, micromatch,
braces) were excluded due to compatibility issues with Babel traverse.
These packages will be addressed through direct dependency upgrades in
consuming packages.

Test Results:
- Frontend tests: ✓ All 15 test suites passed (90 tests)
- TypeScript compilation: ✓ Type checking passed

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant