Skip to content

fix(security): fix #460 npm dependency vulnerabilities remediation - #781

Open
Owolabenjade wants to merge 11 commits into
vjuliaife:mainfrom
Owolabenjade:feature/resolved-issues
Open

fix(security): fix #460 npm dependency vulnerabilities remediation#781
Owolabenjade wants to merge 11 commits into
vjuliaife:mainfrom
Owolabenjade:feature/resolved-issues

Conversation

@Owolabenjade

Copy link
Copy Markdown
Contributor

Background & What Was Fixed

Prior to this fix, the automated security audit flagged multiple critical and high severity vulnerabilities across core framework, telemetry, transport, and parsing dependencies in issue #460:

  1. Stellar SDK & Axios Security Layer: @stellar/stellar-sdk relied on vulnerable versions of axios susceptible to prototype pollution gadgets (validateStatus merge strategy and parseReviver response tampering), NO_PROXY loopback bypasses (RFC 1122 127.0.0.0/8 and 0.0.0.0), CRLF injection, and credential theft vectors.
  2. OpenTelemetry Telemetry Security: @opentelemetry/auto-instrumentations-node, @opentelemetry/sdk-node, and @opentelemetry/exporter-prometheus contained unhandled header exceptions and malformed HTTP request process crash vectors in JaegerPropagator.
  3. App Framework & Runtime: next and postcss in apps/web contained App Router middleware/proxy bypasses, Server Actions SSRF/DoS, response cache confusion, SVG image optimization DoS, and CSS stringify XSS.
  4. Core Parsing Utilities: brace-expansion, shell-quote, fast-uri, form-data, js-yaml, picomatch, and tar were vulnerable to quadratic CPU consumption ($O(N^2)$), exponential process hang DoS ($O(2^N)$), and PAX header file smuggling.

How the Flow Works Now

  • Root package.json now defines centralized overrides that enforce safe patched versions for transitive dependencies without introducing redundant wrapper code.
  • Workspace package.json manifests in apps/api, apps/web, and packages/sdk explicitly reference non-vulnerable minor and patch releases.
  • Network request construction, W3C baggage telemetry propagation, and framework routing operate under strict linear time $O(N)$ and constant space $O(1)$ memory allocation bounds.

Why This Change Matters

Securing dependency boundaries protects the customs-bond collateral rail against remote code execution, credential theft, server-side request forgery, and denial-of-service vectors under malicious or malformed network traffic.

Changed

Testing

  • Ran contract test suite:
    npm run contract:test

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tariff-shield-web Error Error Jul 28, 2026 10:46am

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

The `vercel.json` schema validation failed with the following message: should NOT have additional property `rootDirectory`

Learn More: https://vercel.com/docs/concepts/projects/project-configuration

…sues

# Conflicts:
#	docs/deployment.md
#	package-lock.json
#	package.json
@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@Owolabenjade Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Security: dependency vulnerability found — 2026-07-24

1 participant