Skip to content

fix prototype pollution caused by a malicious csv file#248

Open
chluo1997 wants to merge 1 commit intomafintosh:masterfrom
chluo1997:fix-pp
Open

fix prototype pollution caused by a malicious csv file#248
chluo1997 wants to merge 1 commit intomafintosh:masterfrom
chluo1997:fix-pp

Conversation

@chluo1997
Copy link
Copy Markdown

This PR contains:

  • bugfix
  • feature
  • refactor
  • tests
  • documentation
  • metadata

Breaking Changes?

  • yes
  • no

If yes, please describe the breakage.

Please Describe Your Changes

This PR fixes a prototype pollution issue by preventing unsafe dynamic property assignment with special keys such as __proto__, constructor, and prototype.

This change improves robustness and prevents unsafe behavior in cases where malicious CSV headers introduce unexpected object keys.

This PR does not introduce breaking changes and only adds validation for unsafe keys.

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