Skip to content

Conversation

@fern-api
Copy link
Contributor

@fern-api fern-api bot commented Nov 4, 2025

Changes

This PR fixes a critical security issue with header merging:

Header Merging Security Fix (Fixes #1228)

  • Fixed case-sensitivity issue in header merging that could lead to duplicate or ambiguous headers
  • mergeHeaders and mergeOnlyDefinedHeaders now normalize header names to lowercase
  • Prevents security issues where attackers could override SDK-provided headers (e.g., Authorization) by using different casing
  • Ensures headers like Authorization and authorization are treated as the same header

Fern Auto-Generated Changes

  • This PR includes auto-generated code updates from Fern to match the latest API Definition
  • Updated form-urlencoded body serialization support
  • Added comprehensive test coverage for complex nested objects and arrays in form data
  • Dependency updates: @types/node, baseline-browser-mapping, caniuse-lite, graphql

References

Testing

  • This change adds unit test coverage
  • This change adds integration test coverage

Checklist

  • I have read the Auth0 general contribution guidelines
  • I have read the Auth0 Code of Conduct
  • All existing and new tests complete without errors

@fern-api fern-api bot requested a review from a team as a code owner November 4, 2025 12:18
@codecov
Copy link

codecov bot commented Nov 4, 2025

Codecov Report

❌ Patch coverage is 99.18256% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.94%. Comparing base (c98ea37) to head (f4cd203).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/management/core/headers.ts 66.66% 2 Missing ⚠️
...urces/jobs/resources/usersImports/client/Client.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1238      +/-   ##
==========================================
+ Coverage   79.56%   79.94%   +0.37%     
==========================================
  Files         515      515              
  Lines       18926    19287     +361     
  Branches     9056     9413     +357     
==========================================
+ Hits        15059    15419     +360     
- Misses       3867     3868       +1     
Flag Coverage Δ
alltests 79.94% <99.18%> (+0.37%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@developerkunal developerkunal changed the title 🌿 Fern Regeneration -- November 4, 2025 feat: Add custom fetch support and fix header merging issue Nov 4, 2025
developerkunal
developerkunal previously approved these changes Nov 4, 2025
Copy link
Contributor

@developerkunal developerkunal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@developerkunal developerkunal changed the title feat: Add custom fetch support and fix header merging issue fix: Fix header merging case-sensitivity issue Nov 4, 2025
@developerkunal developerkunal merged commit b10fdde into master Nov 6, 2025
10 checks passed
@developerkunal developerkunal deleted the fern-bot/2025-11-04T12-18Z branch November 6, 2025 02:33
@developerkunal developerkunal mentioned this pull request Nov 6, 2025
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.

Small header merging issue

4 participants