Skip to content

Fix high-severity dependencies in Gatsby and React examples - #123

Open
miguelcalderon wants to merge 2 commits into
mainfrom
miguel/dependabot-high-critical-2026-11-16
Open

miguelcalderon wants to merge 2 commits into
mainfrom
miguel/dependabot-high-critical-2026-11-16

Conversation

@miguelcalderon

@miguelcalderon miguelcalderon commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What

Fix high-severity development-server path traversal in the Gatsby and React examples, and redirect header exposure in React. Update the affected dependencies and apply small, versioned npm patches to preserve one-byte/range responses and close unused streams on header-only (HEAD) requests.

Add HTTP regression tests to the existing CI job and document the tested Node.js 24 runtime and patch installation requirements.

Validation: the security suite, existing Gatsby tests, both production builds, and rendered-PDF checks passed. Clean installs with and without development dependencies apply the patches; repeat application succeeds, and incompatible patches fail. React audits at zero high/critical findings. The branch includes the latest main, preserving the Gatsby decoder fix from #120. After merging, the security suite, Gatsby tests/build, development 404 page, rendered PDF, and tracked-file Biome checks pass. Gatsby has two remaining high audit findings related to redirects, covered separately by #116.

Known limitation, deferred for this security update: React's dev server returns 404 for /static/js/bundle with Accept: application/json instead of generating a helper HTML page. Normal .js requests, browser navigation, and the PDF viewer still work.

Type

  • New framework example
  • Update existing example
  • SDK version bump
  • Bug fix
  • Repo infrastructure (CI, scripts, docs)

Checklist

  • pnpm run format passes (Biome) — all tracked files passed the equivalent read-only Biome check.
  • Example has start and start:e2e scripts in package.json
  • SERVER_DIR=examples/<name> pnpm run test passes (Playwright smoke test) — equivalent checks used isolated ports for both examples; Gatsby used /example1/, and both PDFs fully rendered.
  • README.md included with prerequisites, setup, and usage
  • Uses current pinned @nutrient-sdk/viewer version

@miguelcalderon miguelcalderon self-assigned this Nov 16, 2026
@miguelcalderon
miguelcalderon marked this pull request as ready for review November 16, 2026 14:53
@miguelcalderon
miguelcalderon requested a review from a team as a code owner November 16, 2026 14:54
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