Skip to content

fix(security): harden option maps against prototype pollution - #93

Merged
ghiscoding merged 1 commit into
mainfrom
bugfix/security-audit
Aug 22, 2026
Merged

fix(security): harden option maps against prototype pollution#93
ghiscoding merged 1 commit into
mainfrom
bugfix/security-audit

Conversation

@ghiscoding

@ghiscoding ghiscoding commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Normalize API options with Object.create(null).
  • Harden getDestinationPath against inherited properties.
  • Use a null-prototype CLI option map.
  • Add regression tests for prototype-polluted options.

Validation

  • Biome checks passed
  • TypeScript build passed
  • 61 tests passed

LLM model

Implemented and reviewed with OpenAI GPT-5.6 Luna

@codecov

codecov Bot commented Aug 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0ea37a8) to head (8151e66).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #93   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          200       206    +6     
  Branches        68        68           
=========================================
+ Hits           200       206    +6     

☔ View full report in Codecov by Harness.
📢 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.

@ghiscoding
ghiscoding merged commit 70d71ec into main Aug 22, 2026
6 checks passed
@ghiscoding
ghiscoding deleted the bugfix/security-audit branch August 22, 2026 05:16
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